Merge pull request #3855 from nabinhait/discount
discount percentage should not be reset to zero on applying price list
This commit is contained in:
commit
92e7d1f41d
@ -401,7 +401,6 @@ def apply_price_list_on_item(args):
|
|||||||
item_details = frappe._dict()
|
item_details = frappe._dict()
|
||||||
item_doc = frappe.get_doc("Item", args.item_code)
|
item_doc = frappe.get_doc("Item", args.item_code)
|
||||||
get_price_list_rate(args, item_doc, item_details)
|
get_price_list_rate(args, item_doc, item_details)
|
||||||
item_details.discount_percentage = 0.0
|
|
||||||
item_details.update(get_pricing_rule_for_item(args))
|
item_details.update(get_pricing_rule_for_item(args))
|
||||||
return item_details
|
return item_details
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user