fix: advance paid amount and ledger entries against SO/PO

(cherry picked from commit d9a0494fc3)

# Conflicts:
#	erpnext/accounts/utils.py
This commit is contained in:
ruthra kumar
2024-03-04 10:28:43 +05:30
committed by Mergify
parent 9317adfa33
commit 6a5a941a5a
3 changed files with 34 additions and 8 deletions

View File

@@ -1857,7 +1857,7 @@ class AccountsController(TransactionBase):
(ple.against_voucher_type == self.doctype)
& (ple.against_voucher_no == self.name)
& (ple.party == party)
& (ple.docstatus == 1)
& (ple.delinked == 0)
& (ple.company == self.company)
)
.run(as_dict=True)