From e1cf3453b4df7d6eaf3c6f094fef94f42a967c0f Mon Sep 17 00:00:00 2001 From: Akhilesh Darjee Date: Tue, 12 Nov 2013 19:49:10 +0530 Subject: [PATCH] [fix] [minor] conversion rate validation message update --- public/js/transaction.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/public/js/transaction.js b/public/js/transaction.js index 4b941e33b1..664bbe2f9e 100644 --- a/public/js/transaction.js +++ b/public/js/transaction.js @@ -502,15 +502,13 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({ 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)); + }); } },