diff --git a/module/dialog-item-achat.js b/module/dialog-item-achat.js index a6948347..ae1f0e5e 100644 --- a/module/dialog-item-achat.js +++ b/module/dialog-item-achat.js @@ -76,10 +76,10 @@ export class DialogItemAchat extends Dialog { activateListeners(html) { super.activateListeners(html); - html.find(".nombreLots").change(event => this.setnombreLots(Number(event.currentTarget.value))); + html.find(".nombreLots").change(event => this.setNombreLots(Number(event.currentTarget.value))); } - setnombreLots(nombreLots) { + setNombreLots(nombreLots) { this.venteData.nombreLots = nombreLots; this.venteData.prixTotal = (nombreLots * this.venteData.prixLot).toFixed(2); $(".prixTotal").text(this.venteData.prixTotal);