mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 10:04:34 -04:00
Invoice filter for expenses
This commit is contained in:
parent
d944351a86
commit
1ecce29e56
@ -106,6 +106,15 @@ class ExpenseFilters extends QueryFilters
|
|||||||
return $this->builder;
|
return $this->builder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function has_invoices(string $value = ''): Builder
|
||||||
|
{
|
||||||
|
if ($value == 'true') {
|
||||||
|
return $this->builder->whereNotNull('invoice_id')->select('expenses.invoice_id');
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->builder;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of expenses that can be matched to bank transactions
|
* Returns a list of expenses that can be matched to bank transactions
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user