fix(point-of-sale): render payment methods only payment component is visible

(cherry picked from commit 7dc4306640)
This commit is contained in:
diptanilsaha
2025-10-17 01:26:31 +05:30
committed by Mergify
parent 03766e8980
commit 2b0281c510

View File

@@ -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(
`<div class="col">
<div class="total-label">${__("Grand Total")}</div>