1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Fix status filter on product report

This commit is contained in:
Hillel Coren 2017-10-06 16:42:39 +03:00
parent 0b3b349007
commit 424b99cdba

View File

@ -43,6 +43,11 @@ class ProductReport extends AbstractReport
foreach ($clients->get() as $client) {
foreach ($client->invoices as $invoice) {
if (! $invoice->isPaid() && $status == 'paid') {
continue;
} elseif ($invoice->isPaid() && $status == 'unpaid') {
continue;
}
foreach ($invoice->invoice_items as $item) {
$this->data[] = [
$this->isExport ? $client->getDisplayName() : $client->present()->link,