|
|
@ -75,7 +75,9 @@ class DashboardBoDController extends Controller |
|
|
|
if($project->kode_sortname != ""){ |
|
|
|
if($project->kode_sortname != ""){ |
|
|
|
$resp = $this->getInvoiceIntegration($project->kode_sortname); |
|
|
|
$resp = $this->getInvoiceIntegration($project->kode_sortname); |
|
|
|
/* $resp = $project->kode_sortname; */ |
|
|
|
/* $resp = $project->kode_sortname; */ |
|
|
|
$totalExpenditure+= $resp->data->total_invoice_amount ?? 0; |
|
|
|
$cost = $resp->data->total_cost ?? 0; |
|
|
|
|
|
|
|
$cost = substr($cost, 0, strpos($cost, ".")); |
|
|
|
|
|
|
|
$totalExpenditure+= (int) $cost; |
|
|
|
$totalInvoice += $resp->data->total_invoice_amount ?? 0; |
|
|
|
$totalInvoice += $resp->data->total_invoice_amount ?? 0; |
|
|
|
$totalPaidInvoice += $resp->data->total_invoice_paid_amount ?? 0; |
|
|
|
$totalPaidInvoice += $resp->data->total_invoice_paid_amount ?? 0; |
|
|
|
} |
|
|
|
} |
|
|
|