From 2e9a0cb01c22fe682cade44ada4d4ca2cf6981b2 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Sun, 23 Nov 2025 19:16:39 +0530 Subject: [PATCH] fix: unknown column error (cherry picked from commit 3b7d7aed4c8091033bdea02fcb806c0b4e0b9d18) --- erpnext/accounts/doctype/pricing_rule/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/pricing_rule/utils.py b/erpnext/accounts/doctype/pricing_rule/utils.py index 2d841b75519..c6875b53ed8 100644 --- a/erpnext/accounts/doctype/pricing_rule/utils.py +++ b/erpnext/accounts/doctype/pricing_rule/utils.py @@ -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')