From cc2277c9b7e167807c15fcd7af069ca72fde24ce Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 1 Jun 2021 00:08:42 +0200 Subject: [PATCH] Fix typo --- module/dialog-item-achat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);