fix: unable to create partial invoice with auto fetch terms enabled (#35285)
fix: fetch so/po terms if auto fetch is enabled
This commit is contained in:
parent
96e6014d12
commit
0da6c1688b
@ -1682,6 +1682,9 @@ class AccountsController(TransactionBase):
|
|||||||
d.base_payment_amount = flt(
|
d.base_payment_amount = flt(
|
||||||
d.payment_amount * self.get("conversion_rate"), d.precision("base_payment_amount")
|
d.payment_amount * self.get("conversion_rate"), d.precision("base_payment_amount")
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
self.fetch_payment_terms_from_order(po_or_so, doctype)
|
||||||
|
self.ignore_default_payment_terms_template = 1
|
||||||
|
|
||||||
def get_order_details(self):
|
def get_order_details(self):
|
||||||
if self.doctype == "Sales Invoice":
|
if self.doctype == "Sales Invoice":
|
||||||
|
Loading…
Reference in New Issue
Block a user