mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 09:54:47 +00:00
Merge pull request #50142 from frappe/mergify/bp/version-15-hotfix/pr-50141
fix(point-of-sale): render payment methods only when payment component is visible (backport #50141)
This commit is contained in:
@@ -394,6 +394,10 @@ erpnext.PointOfSale.Payment = class {
|
|||||||
const payments = doc.payments;
|
const payments = doc.payments;
|
||||||
const currency = doc.currency;
|
const currency = doc.currency;
|
||||||
|
|
||||||
|
if (!this.$payment_modes.is(":visible")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.$payment_modes.html(
|
this.$payment_modes.html(
|
||||||
`${payments
|
`${payments
|
||||||
.map((p, i) => {
|
.map((p, i) => {
|
||||||
@@ -612,6 +616,10 @@ erpnext.PointOfSale.Payment = class {
|
|||||||
const currency = doc.currency;
|
const currency = doc.currency;
|
||||||
const label = __("Change Amount");
|
const label = __("Change Amount");
|
||||||
|
|
||||||
|
if (!this.$totals.is(":visible")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.$totals.html(
|
this.$totals.html(
|
||||||
`<div class="col">
|
`<div class="col">
|
||||||
<div class="total-label">${__("Grand Total")}</div>
|
<div class="total-label">${__("Grand Total")}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user