mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-23 04:04:52 +00:00
@@ -244,7 +244,7 @@ def get_other_conditions(conditions, values, args):
|
|||||||
conditions += " and " + group_condition
|
conditions += " and " + group_condition
|
||||||
|
|
||||||
date = args.get("transaction_date") or frappe.get_value(
|
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:
|
if date:
|
||||||
conditions += """ and %(transaction_date)s between ifnull(`tabPricing Rule`.valid_from, '2000-01-01')
|
conditions += """ and %(transaction_date)s between ifnull(`tabPricing Rule`.valid_from, '2000-01-01')
|
||||||
|
|||||||
Reference in New Issue
Block a user