refactor: translatable label on pos payments (#42081)

* Use better description in pos_payment.js

Use Change Amount instead of Change and To Be Paid in pos_payment.js and be consistent with other strings

* change_amount_pos_payment.js

(cherry picked from commit 138ffc4e93)
This commit is contained in:
mahsem
2024-12-05 05:29:43 +01:00
committed by Mergify
parent c502b562db
commit e1d288321f

View File

@@ -584,7 +584,7 @@ erpnext.PointOfSale.Payment = class {
const remaining = grand_total - doc.paid_amount;
const change = doc.change_amount || remaining <= 0 ? -1 * remaining : undefined;
const currency = doc.currency;
const label = change ? __("Change") : __("To Be Paid");
const label = __("Change Amount");
this.$totals.html(
`<div class="col">