Skip to content

Commit

Permalink
fix: calculate submitted payment entry as paid amount
Browse files Browse the repository at this point in the history
(cherry picked from commit 561a159)
  • Loading branch information
Sugesh393 authored and mergify[bot] committed Dec 3, 2024
1 parent 0c28726 commit ebdacc0
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 @@ -778,6 +778,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 ebdacc0

Please sign in to comment.