@@ -34,30 +35,22 @@ export function ClientRow({ client }: { client: ClientWithPayments }) {
)}
|
- €{parseFloat(client.ltv).toLocaleString("it-IT", { minimumFractionDigits: 2 })}
+ {fmt(parseFloat(client.ltv))}
|
-
- {acconto && (
-
- Acconto: {statusConfig[acconto.status]?.label ?? acconto.status}
-
+ |
+ {incassato > 0 ? (
+ {fmt(incassato)}
+ ) : (
+ —
)}
|
-
- {saldo && (
-
- Saldo: {statusConfig[saldo.status]?.label ?? saldo.status}
-
+ |
+ {daSaldare > 0 ? (
+ {fmt(daSaldare)}
+ ) : (
+ —
)}
|
-
-
- |
{
if (isRunning && activeEntryId) {
await stopTimer(activeEntryId);
+ } else if (projectId) {
+ await startTimer(projectId);
} else {
await startTimerForClient(clientId);
}
diff --git a/src/components/admin/tabs/TimerTab.tsx b/src/components/admin/tabs/TimerTab.tsx
index ab62396..c5a2d7a 100644
--- a/src/components/admin/tabs/TimerTab.tsx
+++ b/src/components/admin/tabs/TimerTab.tsx
@@ -26,6 +26,7 @@ export function TimerTab({
Timer
|