Merge pull request #2519 from nabinhait/fix1

Dont reset pricing if ignore pricing rule
diff --git a/erpnext/public/js/transaction.js b/erpnext/public/js/transaction.js
index ae4699e..5a56a6d 100644
--- a/erpnext/public/js/transaction.js
+++ b/erpnext/public/js/transaction.js
@@ -411,7 +411,7 @@
 				}
 			});
 			// 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));
 			}
 		});