mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 22:22:32 +01:00
Dashboard API
This commit is contained in:
parent
06d796a318
commit
7bc703e5dd
@ -160,9 +160,9 @@ class DashboardApiController extends BaseAPIController
|
|||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'id' => 1,
|
'id' => 1,
|
||||||
'paidToDate' => $paidToDate['value'],
|
'paidToDate' => $paidToDate[0]['value'],
|
||||||
'balances' => $balances['value'],
|
'balances' => $balances[0]['value'],
|
||||||
'averageInvoice' => $averageInvoice['invoice_avg'],
|
'averageInvoice' => $averageInvoice[0]['invoice_avg'],
|
||||||
'invoicesSent' => $metrics ? $metrics->invoices_sent : 0,
|
'invoicesSent' => $metrics ? $metrics->invoices_sent : 0,
|
||||||
'activeClients' => $metrics ? $metrics->active_clients : 0,
|
'activeClients' => $metrics ? $metrics->active_clients : 0,
|
||||||
'pastDue' => $pastDue,
|
'pastDue' => $pastDue,
|
||||||
|
Loading…
Reference in New Issue
Block a user