fix: Dashboard'da sadece onaylı yakıt fişlerini göster
Yakıt özeti hesaplamasında sadece 'approved' durumundaki fişleri dikkate alacak şekilde güncellendi. Bu değişiklik ile bekleyen veya reddedilen fişler toplama dahil edilmiyor. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user