This commit is contained in:
Vincent Vandemeulebrouck 2021-06-01 00:08:42 +02:00
parent 43274ca6b7
commit cc2277c9b7

View File

@ -76,10 +76,10 @@ export class DialogItemAchat extends Dialog {
activateListeners(html) { activateListeners(html) {
super.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.nombreLots = nombreLots;
this.venteData.prixTotal = (nombreLots * this.venteData.prixLot).toFixed(2); this.venteData.prixTotal = (nombreLots * this.venteData.prixLot).toFixed(2);
$(".prixTotal").text(this.venteData.prixTotal); $(".prixTotal").text(this.venteData.prixTotal);