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
06d796a318
commit
7bc703e5dd
@ -160,9 +160,9 @@ class DashboardApiController extends BaseAPIController
|
||||
|
||||
$data = [
|
||||
'id' => 1,
|
||||
'paidToDate' => $paidToDate['value'],
|
||||
'balances' => $balances['value'],
|
||||
'averageInvoice' => $averageInvoice['invoice_avg'],
|
||||
'paidToDate' => $paidToDate[0]['value'],
|
||||
'balances' => $balances[0]['value'],
|
||||
'averageInvoice' => $averageInvoice[0]['invoice_avg'],
|
||||
'invoicesSent' => $metrics ? $metrics->invoices_sent : 0,
|
||||
'activeClients' => $metrics ? $metrics->active_clients : 0,
|
||||
'pastDue' => $pastDue,
|
||||
|
Loading…
Reference in New Issue
Block a user