fix: Handle frozen books while handling

(cherry picked from commit 30a647ff80)
This commit is contained in:
Deepesh Garg
2022-01-07 19:52:38 +05:30
committed by mergify-bot
parent 38a330b55e
commit a4e897d30b
3 changed files with 12 additions and 4 deletions

View File

@@ -191,8 +191,6 @@ class AccountsController(TransactionBase):
frappe.throw(_("Row #{0}: Service Start Date cannot be greater than Service End Date").format(d.idx))
elif getdate(self.posting_date) > getdate(d.service_end_date):
frappe.throw(_("Row #{0}: Service End Date cannot be before Invoice Posting Date").format(d.idx))
elif getdate(self.posting_date) > getdate(d.service_start_date):
frappe.throw(_("Row #{0}: Service Start Date cannot be before Invoice Posting Date").format(d.idx))
def validate_invoice_documents_schedule(self):
self.validate_payment_schedule_dates()