discount percentage should not be reset to zero on applying price list

This commit is contained in:
Nabin Hait 2015-08-11 18:15:16 +05:30
parent ba1f4263dd
commit 4a91c49e0d

View File

@ -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