From 006be9da232c652a9e35ce1fab1bb8a38d4a7833 Mon Sep 17 00:00:00 2001 From: wahyun Date: Tue, 30 Jul 2024 15:32:36 +0700 Subject: [PATCH] fix: anggaran biaya <-> nilai kontrak --- app/Http/Controllers/DashboardBoDController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/DashboardBoDController.php b/app/Http/Controllers/DashboardBoDController.php index c458ac3..6f30cff 100644 --- a/app/Http/Controllers/DashboardBoDController.php +++ b/app/Http/Controllers/DashboardBoDController.php @@ -66,11 +66,11 @@ class DashboardBoDController extends Controller return response()->json([ 'data' => [ - 'total_budget' => (int) ($totalBudgets->total_rencana_biaya ?? 0), + 'total_budget' => $totalBudgets->total_value_proyek ?? 0, 'total_expenditure' => $totalExpenditure, 'total_invoice' => $totalInvoice, 'total_paid_invoice' => $totalPaidInvoice, - 'total_value_proyek' => $totalBudgets->total_value_proyek ?? 0, + 'total_value_proyek' => (int) ($totalBudgets->total_rencana_biaya ?? 0), 'total_income_year' => $totalBudgets->total_income_year ?? 0 ] ], 200);