1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Dashboard API

This commit is contained in:
David Bomba 2016-03-22 20:50:11 +11:00
parent 06d796a318
commit 7bc703e5dd

View File

@ -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,