From 58203a89f13f8032aec15bfab5f78f99dea2e7ff Mon Sep 17 00:00:00 2001 From: ravibharathi656 Date: Sat, 11 Oct 2025 12:27:51 +0530 Subject: [PATCH] fix(deferred revenue): validate service stop date --- erpnext/accounts/deferred_revenue.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/deferred_revenue.py b/erpnext/accounts/deferred_revenue.py index 0ccf997e66f..cb34b172ab4 100644 --- a/erpnext/accounts/deferred_revenue.py +++ b/erpnext/accounts/deferred_revenue.py @@ -46,7 +46,8 @@ def validate_service_stop_date(doc): if ( old_stop_dates 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))