[FIX] OFFBOARDING: Fixed offboarding end date change not affecting issue

This commit is contained in:
Horilla
2025-05-31 10:35:51 +05:30
parent f1bf524b11
commit d466d39e5a
2 changed files with 4 additions and 0 deletions

View File

@@ -144,6 +144,7 @@
success: function (response) { success: function (response) {
end_date = response.end_date; end_date = response.end_date;
$(elem).val(end_date); $(elem).val(end_date);
$(elem).change();
} }
}) })
} }

View File

@@ -907,6 +907,9 @@ def update_status(request):
notice_period_ends = notice_period_starts + timedelta( notice_period_ends = notice_period_starts + timedelta(
days=contract_notice_end_date.notice_period_in_days days=contract_notice_end_date.notice_period_in_days
) )
else:
notice_period_ends = None
if not notice_period_starts: if not notice_period_starts:
notice_period_starts = today notice_period_starts = today