Перейти к основному содержимому

useAdjustTimesheet

@mineflow/client-react


@mineflow/client-react / HR / useAdjustTimesheet

Function: useAdjustTimesheet()

function useAdjustTimesheet(): UseMutationResult<{
adjustedAt: string | null;
adjustedBy: string | null;
adjustmentReason: string | null;
confirmedFromShiftReport: boolean;
downtimeHours: number;
hoursWorked: number;
id: string;
personnelId: string;
shiftId: string;
shiftReportId: string | null;
status: TimesheetEntryResponse_OutputStatus;
}, Error, {
body: {
downtimeHours: number;
hoursWorked: number;
reason: string;
};
id: string;
}>;

Defined in: client-react/src/domain-hooks/hr.ts:831

Корректировка строки табеля. Инвалидирует раздел табеля.

Returns​

UseMutationResult<{ adjustedAt: string | null; adjustedBy: string | null; adjustmentReason: string | null; confirmedFromShiftReport: boolean; downtimeHours: number; hoursWorked: number; id: string; personnelId: string; shiftId: string; shiftReportId: string | null; status: TimesheetEntryResponse_OutputStatus; }, Error, { body: { downtimeHours: number; hoursWorked: number; reason: string; }; id: string; }>