mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 10:14:59 +00:00
fix: reference error while using exchange rate revaluation
(cherry picked from commit cd538e138a)
This commit is contained in:
@@ -36,7 +36,7 @@ frappe.ui.form.on('Exchange Rate Revaluation', {
|
|||||||
},
|
},
|
||||||
|
|
||||||
validate_rounding_loss: function(frm) {
|
validate_rounding_loss: function(frm) {
|
||||||
allowance = frm.doc.rounding_loss_allowance;
|
let allowance = frm.doc.rounding_loss_allowance;
|
||||||
if (!(allowance > 0 && allowance < 1)) {
|
if (!(allowance > 0 && allowance < 1)) {
|
||||||
frappe.throw(__("Rounding Loss Allowance should be between 0 and 1"));
|
frappe.throw(__("Rounding Loss Allowance should be between 0 and 1"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user