fix: Translation string (#15561)
This commit is contained in:
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);
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user