Further corrections to Currency Exchange table

This commit is contained in:
Chude Osiegbu
2016-09-07 03:06:08 +01:00
parent 10024e13ec
commit fbf27b5031
11 changed files with 40 additions and 22 deletions

View File

@@ -473,7 +473,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
var company_currency = this.get_company_currency();
// Added `ignore_pricing_rule` to determine if document is loading after mapping from another doc
if(this.frm.doc.price_list_currency !== company_currency && !this.frm.doc.ignore_pricing_rule) {
this.get_exchange_rate(this.frm.doc.price_list_currency, company_currency,
this.get_exchange_rate(this.frm.doc.posting_date, this.frm.doc.price_list_currency, company_currency,
function(exchange_rate) {
me.frm.set_value("plc_conversion_rate", exchange_rate);
});