mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
fix(pricing rule): consider child tables in condition (#33469)
This commit is contained in:
@@ -252,10 +252,15 @@ def get_other_conditions(conditions, values, args):
|
|||||||
|
|
||||||
if args.get("doctype") in [
|
if args.get("doctype") in [
|
||||||
"Quotation",
|
"Quotation",
|
||||||
|
"Quotation Item",
|
||||||
"Sales Order",
|
"Sales Order",
|
||||||
|
"Sales Order Item",
|
||||||
"Delivery Note",
|
"Delivery Note",
|
||||||
|
"Delivery Note Item",
|
||||||
"Sales Invoice",
|
"Sales Invoice",
|
||||||
|
"Sales Invoice Item",
|
||||||
"POS Invoice",
|
"POS Invoice",
|
||||||
|
"POS Invoice Item",
|
||||||
]:
|
]:
|
||||||
conditions += """ and ifnull(`tabPricing Rule`.selling, 0) = 1"""
|
conditions += """ and ifnull(`tabPricing Rule`.selling, 0) = 1"""
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user