[fix] [minor] conversion rate validation message update
diff --git a/public/js/transaction.js b/public/js/transaction.js
index 4b941e3..664bbe2 100644
--- a/public/js/transaction.js
+++ b/public/js/transaction.js
@@ -502,15 +502,13 @@
var company_currency = this.get_company_currency();
if(!this.frm.doc.conversion_rate) {
- var msg = $(repl('%(conversion_rate_label)s is mandatory. Maybe Currency Exchange \
- record is not created for %(from_currency)s to %(to_currency)s',
+ wn.throw(wn._('%(conversion_rate_label)s is mandatory. Maybe Currency Exchange \
+ record is not created for %(from_currency)s to %(to_currency)s'),
{
"conversion_rate_label": conversion_rate_label,
"from_currency": self.doc.currency,
"to_currency": company_currency
- }));
-
- wn.throw(wn._(msg));
+ });
}
},