diff --git a/src/routes/dashboard/+page.svelte b/src/routes/dashboard/+page.svelte index 21b4189..eae4724 100644 --- a/src/routes/dashboard/+page.svelte +++ b/src/routes/dashboard/+page.svelte @@ -148,7 +148,9 @@ const data = await slipsResponse.json(); const allSlips = data.fuelSlips || []; - fuelSummary = allSlips.reduce( + // Sadece onaylı fişleri topla + const approvedSlips = allSlips.filter(slip => slip.status === 'approved'); + fuelSummary = approvedSlips.reduce( (summary, slip) => { if (slip.fuel_type === 'benzin') { summary.benzin += slip.liters || 0;