fix: Auto advance allocation against partial invoices
This commit is contained in:
parent
62ae329be3
commit
181df2fe63
@ -804,9 +804,6 @@ class AccountsController(TransactionBase):
|
|||||||
self.set("advances", [])
|
self.set("advances", [])
|
||||||
advance_allocated = 0
|
advance_allocated = 0
|
||||||
for d in res:
|
for d in res:
|
||||||
if d.against_order:
|
|
||||||
allocated_amount = flt(d.amount)
|
|
||||||
else:
|
|
||||||
if self.get("party_account_currency") == self.company_currency:
|
if self.get("party_account_currency") == self.company_currency:
|
||||||
amount = self.get("base_rounded_total") or self.base_grand_total
|
amount = self.get("base_rounded_total") or self.base_grand_total
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user