From ba35467133bdc86206e1aac762f61fe68006cd32 Mon Sep 17 00:00:00 2001 From: lizerk Date: Wed, 22 Apr 2026 19:45:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20frontend/src/app/attendance/page.tsx=20(line=20734):?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B8=20=D0=BC=D0=B0=D1=81=D1=81=D0=BE=D0=B2?= =?UTF-8?q?=D0=BE=D0=BC=20=D0=B0=D0=BD=D0=B0=D0=BB=D0=B8=D0=B7=D0=B5=20?= =?UTF-8?q?=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D0=BE=D1=82=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D1=8F=D1=8E=D1=82=D1=81=D1=8F=20=D1=82=D0=BE?= =?UTF-8?q?=D0=BB=D1=8C=D0=BA=D0=BE=20employee=5Fid,=20period=5Fstart,=20p?= =?UTF-8?q?eriod=5Fend.=20=D0=A2=D0=BE=D0=B3=D0=B4=D0=B0=20backend=20?= =?UTF-8?q?=D1=81=D0=B0=D0=BC=20=D0=BF=D1=80=D0=B8=D0=BC=D0=B5=D0=BD=D1=8F?= =?UTF-8?q?=D0=B5=D1=82=20=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D1=83=D1=8E=20=D1=86=D0=B5=D0=BF=D0=BE=D1=87=D0=BA=D1=83:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/app/attendance/page.tsx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/frontend/src/app/attendance/page.tsx b/frontend/src/app/attendance/page.tsx index faa020c4..9cda8027 100644 --- a/frontend/src/app/attendance/page.tsx +++ b/frontend/src/app/attendance/page.tsx @@ -35,7 +35,6 @@ import type { MonthlyAttendanceMatrixCell, MonthlyAttendanceMatrixEmployee, MonthlyAttendanceMatrixRow, - AttendanceSchedulePayload, AttendanceRecord, AttendanceAutoSyncSettings, } from "@/lib/api/attendance"; @@ -597,17 +596,6 @@ export default function AttendancePage() { } } - function getSchedulePayload(): AttendanceSchedulePayload | undefined { - return { - start_time: scheduleStart, - end_time: scheduleEnd, - expected_hours: Number(expectedHours), - workdays, - // TODO: Send date_overrides from EUSRR when schedule UI can store working/weekend days. - date_overrides: [], - }; - } - async function saveStandardSchedule() { const hours = Number(expectedHours); if (!scheduleStart || !scheduleEnd || !Number.isFinite(hours) || hours <= 0 || hours > 24) { @@ -746,7 +734,6 @@ export default function AttendancePage() { try { setLoadingStats(true); - const schedule = getSchedulePayload(); const employeeIds = selectedEmployees.map((employee) => employee.id).join(","); for (const employee of selectedEmployees) { @@ -755,7 +742,6 @@ export default function AttendancePage() { employee_id: employee.id, period_start: periodStart, period_end: periodEnd, - schedule, }); } }