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

This commit is contained in:
ruthra kumar
2024-03-04 10:28:43 +05:30
parent cb2529cec8
commit d9a0494fc3
3 changed files with 20 additions and 12 deletions

View File

@@ -1864,7 +1864,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)