Skip to content

Commit

Permalink
fix: typo in format function
Browse files Browse the repository at this point in the history
  • Loading branch information
anandbaburajan committed Aug 16, 2023
1 parent 9d5886f commit 7884083
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def validate_against_charge_date(self):
def validate_restructure_date(self):
max_due_date = frappe.db.get_value("Loan Interest Accrual", {"loan": self.loan}, "max(due_date)")
if getdate(self.restructure_date) < getdate(max_due_date):
frappe.throw(_("Restructure Date cannot be before last due date {0}").fomrat(max_due_date))
frappe.throw(_("Restructure Date cannot be before last due date {0}").format(max_due_date))

def after_insert(self):
self.make_update_draft_loan_repayment_schedule()
Expand Down

0 comments on commit 7884083

Please sign in to comment.