fix: do not include advances for tds vouchers

(cherry picked from commit 7ef918421e)
This commit is contained in:
ljain112
2024-09-26 19:52:57 +05:30
committed by Mergify
parent 0336e7ac45
commit 9d950a9b77

View File

@@ -382,6 +382,9 @@ def get_advance_vouchers(parties, company=None, from_date=None, to_date=None, pa
Use Payment Ledger to fetch unallocated Advance Payments
"""
if party_type == "Supplier":
return []
ple = qb.DocType("Payment Ledger Entry")
conditions = []