fix: calculate submitted payment entry as paid amount

This commit is contained in:
Sugesh393
2024-11-29 17:39:40 +05:30
parent 82907672d9
commit 561a159aec

View File

@@ -783,6 +783,8 @@ def get_existing_paid_amount(doctype, name):
.where(PL.against_voucher_type.eq(doctype))
.where(PL.against_voucher_no.eq(name))
.where(PL.amount < 0)
.where(PL.delinked == 0)
.where(PER.docstatus == 1)
.where(PER.payment_request.isnull())
)
response = query.run()