Merge pull request #50707 from mihir-kandoi/pricing-rule-error

This commit is contained in:
Mihir Kandoi
2025-11-23 19:37:44 +05:30
committed by GitHub

View File

@@ -244,7 +244,7 @@ def get_other_conditions(conditions, values, args):
conditions += " and " + group_condition
date = args.get("transaction_date") or frappe.get_value(
args.get("doctype"), args.get("name"), "posting_date"
args.get("doctype"), args.get("name"), "posting_date", ignore=True
)
if date:
conditions += """ and %(transaction_date)s between ifnull(`tabPricing Rule`.valid_from, '2000-01-01')