[UPDT] OFFBOARDING: Added the notice period end date from settings.

This commit is contained in:
Horilla
2024-03-21 14:22:49 +05:30
parent 27ef653877
commit d47a55c860
6 changed files with 38 additions and 18 deletions

View File

@@ -136,7 +136,7 @@ class ContractForm(ModelForm):
)
first = PayrollGeneralSetting.objects.first()
if first and self.instance.pk is None:
self.initial["notice_period_in_month"] = first.notice_period
self.initial["notice_period_in_days"] = first.notice_period
def as_p(self):
"""