Dont reset pricing if ignore pricing rule

This commit is contained in:
Nabin Hait 2014-12-22 10:42:48 +05:30
parent 2f6a20a93a
commit cfe3c54ca0

View File

@ -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));
}
});