Skip to content

Commit

Permalink
fix: calculate submitted payment entry as paid amount
Browse files Browse the repository at this point in the history
  • Loading branch information
Sugesh393 committed Nov 29, 2024
1 parent 8290767 commit 561a159
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/accounts/doctype/payment_request/payment_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 561a159

Please sign in to comment.