[fix] removed client side validation for conversion rate

This commit is contained in:
Akhilesh Darjee 2013-09-16 12:25:00 +05:30
parent cb45b8f631
commit 4a0cae8b41

View File

@ -418,10 +418,10 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({
(this.frm.doc.currency != company_currency && this.frm.doc.conversion_rate != 1.0)) : (this.frm.doc.currency != company_currency && this.frm.doc.conversion_rate != 1.0)) :
false; false;
if(!valid_conversion_rate) { // if(!valid_conversion_rate) {
wn.throw(wn._("Please enter valid") + " " + wn._(conversion_rate_label) + // wn.throw(wn._("Please enter valid") + " " + wn._(conversion_rate_label) +
" 1 " + this.frm.doc.currency + " = [?] " + company_currency); // " 1 " + this.frm.doc.currency + " = [?] " + company_currency);
} // }
}, },
calculate_taxes_and_totals: function() { calculate_taxes_and_totals: function() {