mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
fix: Translation string (#15561)
This commit is contained in:
committed by
Rushabh Mehta
parent
04e4af8d59
commit
e0a148474d
@@ -73,15 +73,13 @@ erpnext.taxes_and_totals = erpnext.payments.extend({
|
|||||||
if(this.frm.doc.currency == company_currency) {
|
if(this.frm.doc.currency == company_currency) {
|
||||||
this.frm.set_value("conversion_rate", 1);
|
this.frm.set_value("conversion_rate", 1);
|
||||||
} else {
|
} else {
|
||||||
frappe.throw(repl('%(conversion_rate_label)s' +
|
const err_message = __('{0} is mandatory. Maybe Currency Exchange record is not created for {1} to {2}', [
|
||||||
__(' is mandatory. Maybe Currency Exchange record is not created for ') +
|
conversion_rate_label,
|
||||||
'%(from_currency)s' + __(" to ") + '%(to_currency)s', {
|
this.frm.doc.currency,
|
||||||
"conversion_rate_label": conversion_rate_label,
|
company_currency
|
||||||
"from_currency": this.frm.doc.currency,
|
]);
|
||||||
"to_currency": company_currency
|
frappe.throw(err_message);
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user