fix(deferred revenue): validate service stop date

(cherry picked from commit 58203a89f1)
This commit is contained in:
ravibharathi656
2025-10-11 12:27:51 +05:30
committed by Mergify
parent d7bf7d0f4d
commit 557d53a953

View File

@@ -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))