1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00

bug fixes on API Dashboard

This commit is contained in:
David Bomba 2016-05-31 20:03:52 +10:00
parent 47d31b24fd
commit 3a98f6ffdc

View File

@ -158,7 +158,7 @@ class DashboardApiController extends BaseAPIController
$hasQuotes = false; $hasQuotes = false;
foreach ([$upcoming, $pastDue] as $data) { foreach ([$upcoming, $pastDue] as $data) {
foreach ($data as $invoice) { foreach ($data as $invoice) {
if ($invoice->isType(INVOICE_TYPE_QUOTE)) { if ($invoice->invoice_type_id == INVOICE_TYPE_QUOTE) {
$hasQuotes = true; $hasQuotes = true;
} }
} }