fix: unknown column error

(cherry picked from commit 3b7d7aed4c)
This commit is contained in:
Mihir Kandoi
2025-11-23 19:16:39 +05:30
committed by Mergify
parent 60ec7d0fb8
commit 2e9a0cb01c

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')