1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01: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;
foreach ([$upcoming, $pastDue] as $data) {
foreach ($data as $invoice) {
if ($invoice->isType(INVOICE_TYPE_QUOTE)) {
if ($invoice->invoice_type_id == INVOICE_TYPE_QUOTE) {
$hasQuotes = true;
}
}