diff --git a/erpnext/selling/page/point_of_sale/pos_payment.js b/erpnext/selling/page/point_of_sale/pos_payment.js index 92e9ad060df..165066a151a 100644 --- a/erpnext/selling/page/point_of_sale/pos_payment.js +++ b/erpnext/selling/page/point_of_sale/pos_payment.js @@ -394,6 +394,10 @@ erpnext.PointOfSale.Payment = class { const payments = doc.payments; const currency = doc.currency; + if (!this.$payment_modes.is(":visible")) { + return; + } + this.$payment_modes.html( `${payments .map((p, i) => { @@ -612,6 +616,10 @@ erpnext.PointOfSale.Payment = class { const currency = doc.currency; const label = __("Change Amount"); + if (!this.$totals.is(":visible")) { + return; + } + this.$totals.html( `