fix(employee-list): make last_updated change for pto when sick hours are changed

This commit is contained in:
Nicolas Drolet 2026-01-09 13:01:55 -05:00
parent 6ec05a00b8
commit ffe671376f
3 changed files with 11 additions and 1 deletions

View File

@ -65,3 +65,12 @@ input::-webkit-inner-spin-button {
input[type=number] {
-moz-appearance: textfield;
}
.q-field--dark .q-field__control::before {
border-color: #fff3;
}
.q-field--dark .q-field__control:hover::before, .q-field--outlined .q-field__control:hover::before {
border-color: var(--q-accent);
border-width: 2px;
}

View File

@ -145,6 +145,7 @@
v-model="employee_store.employee.paid_time_off.sick_hours"
:label="$t('employee_management.sick_hours')"
type="number"
@update:model-value="employee_store.employee.paid_time_off.last_updated = new Date().toISOString().slice(0, 10)"
/>
<AddModifyDialogFormInput

View File

@ -8,7 +8,7 @@ export interface PaidTimeOff {
sick_hours: number;
vacation_hours: number;
banked_hours: number;
last_updated: string;
last_updated?: string | null;
}
export class EmployeeProfile {