from django import forms

class FinalSettlementForm(forms.Form):
    leave_encashment = forms.DecimalField(max_digits=14, decimal_places=2, required=False, initial=0, min_value=0)
    other_earnings = forms.DecimalField(max_digits=14, decimal_places=2, required=False, initial=0, min_value=0)
    other_deductions = forms.DecimalField(max_digits=14, decimal_places=2, required=False, initial=0, min_value=0)

class OverrideClearanceForm(forms.Form):
    reason = forms.CharField(widget=forms.Textarea(attrs={"rows": 3}))

class SettlementPaymentForm(forms.Form):
    payment_reference = forms.CharField(max_length=120)

class FinalWorkingDayForm(forms.Form):
    final_working_day = forms.DateField(widget=forms.DateInput(attrs={"type": "date"}))
    reason = forms.CharField(required=False, widget=forms.Textarea(attrs={"rows": 2}))
