fix: March card header shows prorated fund (136h/17 dnů) matching the +/- values

Card header, per-user +/-, progress bar, and yearly table all now
use the same prorated fund_to_date for the current month.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-03-24 19:15:53 +01:00
parent 03e830f97b
commit c3bb0a6782

View File

@@ -451,7 +451,7 @@ export default function AttendanceBalances() {
)} )}
</h3> </h3>
<span className="text-secondary" style={{ fontSize: '12px' }}> <span className="text-secondary" style={{ fontSize: '12px' }}>
{monthData.fund}h ({monthData.business_days} dnů) {(monthData as any).fund_to_date ?? monthData.fund}h ({Math.round(((monthData as any).fund_to_date ?? monthData.fund) / 8)} dnů)
</span> </span>
</div> </div>
<div style={{ display: 'flex', flexDirection: 'column', gap: '0.375rem' }}> <div style={{ display: 'flex', flexDirection: 'column', gap: '0.375rem' }}>