Make it work with decimal discount values

This commit is contained in:
Dennis Reimann 2022-07-21 13:50:35 +02:00 committed by Andrew Camilleri
parent a7c22399d8
commit 8dd3c76fa4

View File

@ -133,7 +133,7 @@ document.addEventListener("DOMContentLoaded",function () {
// Remove tip if we are changing discount % as it won't be the right number anymore
this.removeTip();
const discountPercent = parseInt(e.target.value, 10);
const discountPercent = parseFloat(e.target.value);
const { divisibility } = this.srvModel.currencyInfo;
this.payTotalNumeric += this.discountTotalNumeric;