From cfe3c54ca0c3becdc4888dd429f76c1bedde6d4d Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 22 Dec 2014 10:42:48 +0530 Subject: [PATCH] Dont reset pricing if ignore pricing rule --- erpnext/public/js/transaction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/transaction.js b/erpnext/public/js/transaction.js index ae4699efd8..5a56a6dc53 100644 --- a/erpnext/public/js/transaction.js +++ b/erpnext/public/js/transaction.js @@ -411,7 +411,7 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({ } }); // if pricing rule set as blank from an existing value, apply price_list - if(existing_pricing_rule && !d.pricing_rule) { + if(!me.frm.doc.ignore_pricing_rule && existing_pricing_rule && !d.pricing_rule) { me.apply_price_list(frappe.get_doc(d.doctype, d.name)); } });