fix: Changing item prices on converting orders/receipts to invoices

(cherry picked from commit 66ca085e39)
(cherry picked from commit a9533ef814)
This commit is contained in:
Deepesh Garg
2022-03-22 23:03:41 +05:30
committed by mergify-bot
parent 5ab6e3fc85
commit c44231a432
5 changed files with 12 additions and 1 deletions

View File

@@ -1049,7 +1049,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
}
if(flt(this.frm.doc.conversion_rate)>0.0) {
if(this.frm.doc.ignore_pricing_rule) {
if(this.frm.doc.__onload.ignore_price_list) {
this.calculate_taxes_and_totals();
} else if (!this.in_apply_price_list){
this.apply_price_list();
@@ -1863,6 +1863,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
callback: function(r) {
if(!r.exc) {
item.item_tax_rate = r.message;
me.add_taxes_from_item_tax_template(item.item_tax_rate);
me.calculate_taxes_and_totals();
}
}