[fix] Cur_frm breaking offline pos (#11955)

This commit is contained in:
rohitwaghchaure 2017-12-12 14:16:03 +05:30 committed by Nabin Hait
parent 6a415bd32d
commit 47749f4635

View File

@ -10,7 +10,7 @@ erpnext.taxes_and_totals = erpnext.payments.extend({
+ flt(item.price_list_rate) * ( flt(item.margin_rate_or_amount) / 100);
} else {
item.rate_with_margin = flt(item.price_list_rate) + flt(item.margin_rate_or_amount);
item.base_rate_with_margin = flt(item.rate_with_margin) * flt(cur_frm.doc.conversion_rate);
item.base_rate_with_margin = flt(item.rate_with_margin) * flt(this.frm.doc.conversion_rate);
}
item.rate = flt(item.rate_with_margin , precision("rate", item));