timesheetRevertedDataSchema
@mineflow/contracts / timesheetRevertedDataSchema
Variable: timesheetRevertedDataSchema
const timesheetRevertedDataSchema: ZodObject<{
actorId: ZodUUID;
personnelId: ZodUUID;
previousDowntimeHours: ZodNumber;
previousHoursWorked: ZodNumber;
shiftId: ZodUUID;
shiftReportId: ZodUUID;
timesheetEntryId: ZodUUID;
}, $strip>;
Defined in: events/hr/timesheet.ts:62
hr.timesheet.reverted — confirmed/adjusted → reverted после
shift-report.rejected-after-approve. Часы обнуляются.
previousHoursWorked/previousDowntimeHours сохраняем для возможного
повторного approve (revert → confirm).