fix(pricing rule): consider child tables in condition (#33469)

This commit is contained in:
Dany Robert
2022-12-28 18:05:55 +05:30
committed by GitHub
parent 882f92e732
commit cabaed9ed2

View File

@@ -252,10 +252,15 @@ def get_other_conditions(conditions, values, args):
if args.get("doctype") in [
"Quotation",
"Quotation Item",
"Sales Order",
"Sales Order Item",
"Delivery Note",
"Delivery Note Item",
"Sales Invoice",
"Sales Invoice Item",
"POS Invoice",
"POS Invoice Item",
]:
conditions += """ and ifnull(`tabPricing Rule`.selling, 0) = 1"""
else: