chore: resolve conflicts and pass all parameters

This commit is contained in:
ruthra kumar
2025-05-06 14:08:22 +05:30
parent f73e99e9d2
commit 40faa7f7b9
2 changed files with 6 additions and 36 deletions

View File

@@ -779,17 +779,10 @@ class AccountsController(TransactionBase):
if not self.due_date:
frappe.throw(_("Due Date is mandatory"))
validate_due_date(
posting_date,
self.due_date,
self.payment_terms_template,
)
validate_due_date(posting_date, self.due_date, None, self.payment_terms_template, self.doctype)
elif self.doctype == "Purchase Invoice":
validate_due_date(
posting_date,
self.due_date,
self.bill_date,
self.payment_terms_template,
posting_date, self.due_date, self.bill_date, self.payment_terms_template, self.doctype
)
def set_price_list_currency(self, buying_or_selling):