mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 15:12:51 +00:00
fix: validate only if service stop date
This commit is contained in:
@@ -546,6 +546,7 @@ class SalesInvoice(SellingController):
|
||||
|
||||
for item in self.items:
|
||||
if item.enable_deferred_revenue:
|
||||
if item.service_stop_date:
|
||||
if date_diff(item.service_stop_date, item.service_start_date) < 0:
|
||||
frappe.throw(_("Service Stop Date cannot be before Service Start Date"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user