mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-12 17:51:20 +00:00
Merge pull request #23270 from kasgel/patch-1
fix(utils): pass stock_qty to get_pricing_rule_for_item
This commit is contained in:
@@ -82,6 +82,7 @@ def get_price(item_code, price_list, customer_group, company, qty=1):
|
|||||||
pricing_rule = get_pricing_rule_for_item(frappe._dict({
|
pricing_rule = get_pricing_rule_for_item(frappe._dict({
|
||||||
"item_code": item_code,
|
"item_code": item_code,
|
||||||
"qty": qty,
|
"qty": qty,
|
||||||
|
"stock_qty": qty,
|
||||||
"transaction_type": "selling",
|
"transaction_type": "selling",
|
||||||
"price_list": price_list,
|
"price_list": price_list,
|
||||||
"customer_group": customer_group,
|
"customer_group": customer_group,
|
||||||
|
|||||||
Reference in New Issue
Block a user