Enforced relationships between activities and indicators, fixed actuals recording

This commit is contained in:
2026-10-22 13:47:54 +02:00
parent 4dd0899209
commit 9835121fd9
23 changed files with 3496 additions and 270 deletions
@@ -173,9 +173,14 @@ export const ProjectExpandedRow: React.FC<ProjectExpandedRowProps> = ({
{sBadge.label}
</span>
</div>
<div className="text-[10px] text-slate-400 flex items-center gap-1 font-mono">
<Clock className="w-3 h-3 text-slate-500" />
Due: {formatDate(m.dueAt)}
<div className="flex items-center justify-between text-[10px] text-slate-400 font-mono">
<span className="flex items-center gap-1">
<Clock className="w-3 h-3 text-slate-500" />
Due: {formatDate(m.dueAt)}
</span>
<span className="text-blue-400 font-bold">
{formatZAR(activities.filter(a => String(a.milestoneId) === String(m.id)).reduce((s, a) => s + (Number(a.amount) || 0), 0))}
</span>
</div>
</div>
);