Skip to content

Commit

Permalink
fix: unable to create partial invoice with auto fetch terms enabled (f…
Browse files Browse the repository at this point in the history
…rappe#35285)

fix: fetch so/po terms if auto fetch is enabled
  • Loading branch information
ruthra-kumar authored May 16, 2023
1 parent 96e6014 commit 0da6c16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/controllers/accounts_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1682,6 +1682,9 @@ def set_payment_schedule(self):
d.base_payment_amount = flt(
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):
if self.doctype == "Sales Invoice":
Expand Down

0 comments on commit 0da6c16

Please sign in to comment.