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:
parent
47d31b24fd
commit
3a98f6ffdc
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user