mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-15 08:17:15 +00:00
fix: calculate submitted payment entry as paid amount
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user