mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 15:12:51 +00:00
fix: Reapply pricing rule on qty change
This commit is contained in:
@@ -113,7 +113,7 @@ def get_item_details(args, doc=None, for_validate=False, overwrite_warehouse=Tru
|
||||
if args.get(key) is None:
|
||||
args[key] = value
|
||||
|
||||
data = get_pricing_rule_for_item(args, out.price_list_rate, doc, for_validate=for_validate)
|
||||
data = get_pricing_rule_for_item(args, doc, for_validate=for_validate)
|
||||
|
||||
out.update(data)
|
||||
|
||||
@@ -1305,7 +1305,7 @@ def apply_price_list_on_item(args):
|
||||
item_doc = frappe.db.get_value("Item", args.item_code, ["name", "variant_of"], as_dict=1)
|
||||
item_details = get_price_list_rate(args, item_doc)
|
||||
|
||||
item_details.update(get_pricing_rule_for_item(args, item_details.price_list_rate))
|
||||
item_details.update(get_pricing_rule_for_item(args))
|
||||
|
||||
return item_details
|
||||
|
||||
|
||||
Reference in New Issue
Block a user