commit | 937b63433df720dcc1488f2f2d1e309b2a3af167 | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Sun Sep 06 20:46:15 2020 +0530 |
committer | GitHub <noreply@github.com> | Sun Sep 06 20:46:15 2020 +0530 |
tree | 95507784a6db7c02246014d93a377697f70b9967 | |
parent | c0fb7cb18968776c789114e7d7b7bbfdb8f01c2e [diff] | |
parent | a59f8640d15006481ab1864c392ffe51877b7780 [diff] |
Merge pull request #23270 from kasgel/patch-1 fix(utils): pass stock_qty to get_pricing_rule_for_item
diff --git a/erpnext/utilities/product.py b/erpnext/utilities/product.py index c23c1f7..66d6cd3 100644 --- a/erpnext/utilities/product.py +++ b/erpnext/utilities/product.py
@@ -82,6 +82,7 @@ pricing_rule = get_pricing_rule_for_item(frappe._dict({ "item_code": item_code, "qty": qty, + "stock_qty": qty, "transaction_type": "selling", "price_list": price_list, "customer_group": customer_group,