mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 19:24:21 +00:00
fix(deferred revenue): validate service stop date
(cherry picked from commit 58203a89f1)
This commit is contained in:
@@ -46,7 +46,8 @@ def validate_service_stop_date(doc):
|
|||||||
if (
|
if (
|
||||||
old_stop_dates
|
old_stop_dates
|
||||||
and old_stop_dates.get(item.name)
|
and old_stop_dates.get(item.name)
|
||||||
and item.service_stop_date != old_stop_dates.get(item.name)
|
and item.service_stop_date
|
||||||
|
and getdate(item.service_stop_date) != getdate(old_stop_dates.get(item.name))
|
||||||
):
|
):
|
||||||
frappe.throw(_("Cannot change Service Stop Date for item in row {0}").format(item.idx))
|
frappe.throw(_("Cannot change Service Stop Date for item in row {0}").format(item.idx))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user