fix: payment allocation in invoice payment schedule (#36440)
* fix: payment allocation in invoice payment schedule * test: payment allocation for payment terms * chore: linting issues
This commit is contained in:
committed by
GitHub
parent
49be740736
commit
edbefee10c
@@ -1756,8 +1756,13 @@ class AccountsController(TransactionBase):
|
||||
)
|
||||
self.append("payment_schedule", data)
|
||||
|
||||
allocate_payment_based_on_payment_terms = frappe.db.get_value(
|
||||
"Payment Terms Template", self.payment_terms_template, "allocate_payment_based_on_payment_terms"
|
||||
)
|
||||
|
||||
if not (
|
||||
automatically_fetch_payment_terms
|
||||
and allocate_payment_based_on_payment_terms
|
||||
and self.linked_order_has_payment_terms(po_or_so, fieldname, doctype)
|
||||
):
|
||||
for d in self.get("payment_schedule"):
|
||||
|
||||
Reference in New Issue
Block a user