From 4a91c49e0d0e38747997ff2b68fa15f203f409b2 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 11 Aug 2015 18:15:16 +0530 Subject: [PATCH] discount percentage should not be reset to zero on applying price list --- erpnext/stock/get_item_details.py | 1 - 1 file changed, 1 deletion(-) diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index c45439a90b..a57dd59974 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -401,7 +401,6 @@ def apply_price_list_on_item(args): item_details = frappe._dict() item_doc = frappe.get_doc("Item", args.item_code) get_price_list_rate(args, item_doc, item_details) - item_details.discount_percentage = 0.0 item_details.update(get_pricing_rule_for_item(args)) return item_details