Merge pull request #35696 from frappe/mergify/bp/version-14/pr-35694

fix: reference error while using exchange rate revaluation (backport #35694)
This commit is contained in:
ruthra kumar
2023-06-14 20:50:16 +05:30
committed by GitHub

View File

@@ -36,7 +36,7 @@ frappe.ui.form.on('Exchange Rate Revaluation', {
},
validate_rounding_loss: function(frm) {
allowance = frm.doc.rounding_loss_allowance;
let allowance = frm.doc.rounding_loss_allowance;
if (!(allowance > 0 && allowance < 1)) {
frappe.throw(__("Rounding Loss Allowance should be between 0 and 1"));
}