fix: Translate 'mode of payments' in the 'point of sale'. (#39467)

- Due to a language change, the name of 'mode of payments' was not translated in the placeholder.
This commit is contained in:
Sajad Alimoradi 2024-02-27 10:45:20 +03:30 committed by GitHub
parent d6b29d1cd7
commit c310da7b29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -389,7 +389,7 @@ erpnext.PointOfSale.Payment = class {
df: {
label: p.mode_of_payment,
fieldtype: 'Currency',
placeholder: __('Enter {0} amount.', [p.mode_of_payment]),
placeholder: __('Enter {0} amount.', [__(p.mode_of_payment)]),
onchange: function() {
const current_value = frappe.model.get_value(p.doctype, p.name, 'amount');
if (current_value != this.value) {