mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fix status filter on product report
This commit is contained in:
parent
0b3b349007
commit
424b99cdba
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user