mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-31 10:52:41 +02:00
fix: calculate submitted payment entry as paid amount
(cherry picked from commit 561a159aec)
This commit is contained in:
@@ -778,6 +778,8 @@ def get_existing_paid_amount(doctype, name):
|
|||||||
.where(PL.against_voucher_type.eq(doctype))
|
.where(PL.against_voucher_type.eq(doctype))
|
||||||
.where(PL.against_voucher_no.eq(name))
|
.where(PL.against_voucher_no.eq(name))
|
||||||
.where(PL.amount < 0)
|
.where(PL.amount < 0)
|
||||||
|
.where(PL.delinked == 0)
|
||||||
|
.where(PER.docstatus == 1)
|
||||||
.where(PER.payment_request.isnull())
|
.where(PER.payment_request.isnull())
|
||||||
)
|
)
|
||||||
response = query.run()
|
response = query.run()
|
||||||
|
|||||||
Reference in New Issue
Block a user