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