Browse Source

bugfix

pull/3/head
Muhammad Sulaiman Yusuf 2 years ago
parent
commit
179483abd7
  1. 4
      app/Http/Controllers/DashboardBoDController.php

4
app/Http/Controllers/DashboardBoDController.php

@ -75,7 +75,9 @@ class DashboardBoDController extends Controller
if($project->kode_sortname != ""){
$resp = $this->getInvoiceIntegration($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;
$totalPaidInvoice += $resp->data->total_invoice_paid_amount ?? 0;
}

Loading…
Cancel
Save