fix: Auto advance allocation against partial invoices

(cherry picked from commit 181df2fe63)
This commit is contained in:
Deepesh Garg
2022-11-04 15:49:37 +05:30
committed by Mergify
parent 3bd024ca8f
commit b7763d953a

View File

@@ -804,9 +804,6 @@ class AccountsController(TransactionBase):
self.set("advances", [])
advance_allocated = 0
for d in res:
if d.against_order:
allocated_amount = flt(d.amount)
else:
if self.get("party_account_currency") == self.company_currency:
amount = self.get("base_rounded_total") or self.base_grand_total
else: