mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-21 07:38:29 +00:00
fix: test with None conditon in PE
This commit is contained in:
@@ -2217,6 +2217,9 @@ def get_advance_payment_entries(
|
|||||||
reference_condition = ""
|
reference_condition = ""
|
||||||
order_list = []
|
order_list = []
|
||||||
|
|
||||||
|
if not condition:
|
||||||
|
condition = ""
|
||||||
|
|
||||||
payment_entries_against_order = frappe.db.sql(
|
payment_entries_against_order = frappe.db.sql(
|
||||||
"""
|
"""
|
||||||
select
|
select
|
||||||
@@ -2236,7 +2239,7 @@ def get_advance_payment_entries(
|
|||||||
reference_condition,
|
reference_condition,
|
||||||
condition,
|
condition,
|
||||||
limit_cond,
|
limit_cond,
|
||||||
exchange_rate_field
|
exchange_rate_field,
|
||||||
),
|
),
|
||||||
[party_account, payment_type, party_type, party, order_doctype] + order_list,
|
[party_account, payment_type, party_type, party, order_doctype] + order_list,
|
||||||
as_dict=1,
|
as_dict=1,
|
||||||
|
|||||||
Reference in New Issue
Block a user