Merge pull request #50038 from frappe/mergify/bp/version-15-hotfix/pr-50017

fix(deferred revenue): validate service stop date (backport #50017)
This commit is contained in:
ruthra kumar
2025-10-13 12:54:39 +05:30
committed by GitHub

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