mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Dashboard API
This commit is contained in:
parent
6e7c19b38e
commit
0ec1fcbd23
@ -158,7 +158,7 @@ class DashboardApiController extends BaseAPIController
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
$data = [
|
||||
'id' => 1,
|
||||
'paidToDate' => $paidToDate[0]->value,
|
||||
@ -166,10 +166,12 @@ class DashboardApiController extends BaseAPIController
|
||||
'balances' => $balances[0]->value,
|
||||
'balancesCurrency' => $balances[0]->currency_id,
|
||||
'averageInvoice' => $averageInvoice[0]->invoice_avg,
|
||||
'averageInvoiceCurrency' => $averageInvoice[0]->currency_id,
|
||||
'invoicesSent' => $metrics ? $metrics->invoices_sent : 0,
|
||||
'activeClients' => $metrics ? $metrics->active_clients : 0,
|
||||
];
|
||||
*/
|
||||
|
||||
/*
|
||||
$data = [
|
||||
'id' => 1,
|
||||
'paidToDate' => $paidToDate,
|
||||
@ -178,7 +180,7 @@ class DashboardApiController extends BaseAPIController
|
||||
'invoicesSent' => $metrics ? $metrics->invoices_sent : 0,
|
||||
'activeClients' => $metrics ? $metrics->active_clients : 0,
|
||||
];
|
||||
|
||||
*/
|
||||
return $this->response($data);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user