mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-14 20:48:46 +00:00
Co-authored-by: barredterra <14891507+barredterra@users.noreply.github.com>
This commit is contained in:
@@ -2353,6 +2353,7 @@ class AccountsController(TransactionBase):
|
|||||||
return
|
return
|
||||||
|
|
||||||
for d in self.get("payment_schedule"):
|
for d in self.get("payment_schedule"):
|
||||||
|
d.validate_from_to_dates("discount_date", "due_date")
|
||||||
if self.doctype == "Sales Order" and getdate(d.due_date) < getdate(self.transaction_date):
|
if self.doctype == "Sales Order" and getdate(d.due_date) < getdate(self.transaction_date):
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_("Row {0}: Due Date in the Payment Terms table cannot be before Posting Date").format(
|
_("Row {0}: Due Date in the Payment Terms table cannot be before Posting Date").format(
|
||||||
|
|||||||
Reference in New Issue
Block a user