fix: Odpracováno column shows covered hours (worked + leave + holidays)

Was showing only worked hours, but +/- was calculated against covered.
Now both columns are consistent — Odpracováno includes vacation, sick,
and holiday hours so the numbers make sense with the +/- column.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-03-24 19:21:05 +01:00
parent bc2a14f637
commit 780a6db001

View File

@@ -369,7 +369,7 @@ export default function AttendanceBalances() {
</td> </td>
<td className="admin-mono">{balance.sick_used.toFixed(1)}</td> <td className="admin-mono">{balance.sick_used.toFixed(1)}</td>
<td className="admin-mono">{yf ? `${yf.fund}h` : '—'}</td> <td className="admin-mono">{yf ? `${yf.fund}h` : '—'}</td>
<td className="admin-mono">{yf ? `${yf.worked}h` : '—'}</td> <td className="admin-mono">{yf ? `${yf.covered}h` : '—'}</td>
<td className="admin-mono"> <td className="admin-mono">
{yf ? renderFundDiff(yf) : '—'} {yf ? renderFundDiff(yf) : '—'}
</td> </td>