mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-20 07:15:11 +00:00
fix: Unable to allocate advance against invoice (#35007)
fix: Unable to allocate advance against invoice (#35007)
(cherry picked from commit f7b50f2ade)
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
This commit is contained in:
@@ -1632,7 +1632,10 @@ class AccountsController(TransactionBase):
|
|||||||
)
|
)
|
||||||
self.append("payment_schedule", data)
|
self.append("payment_schedule", data)
|
||||||
|
|
||||||
if not automatically_fetch_payment_terms:
|
if not (
|
||||||
|
automatically_fetch_payment_terms
|
||||||
|
and self.linked_order_has_payment_terms(po_or_so, fieldname, doctype)
|
||||||
|
):
|
||||||
for d in self.get("payment_schedule"):
|
for d in self.get("payment_schedule"):
|
||||||
if d.invoice_portion:
|
if d.invoice_portion:
|
||||||
d.payment_amount = flt(
|
d.payment_amount = flt(
|
||||||
|
|||||||
Reference in New Issue
Block a user