mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Updates for payment filters
This commit is contained in:
parent
5864027243
commit
b964f5d482
@ -87,8 +87,15 @@ class PaymentFilters extends QueryFilters
|
||||
public function match_transactions($value = 'true') :Builder
|
||||
{
|
||||
|
||||
if($value == 'true')
|
||||
return $this->builder->where('is_deleted',0)->whereNull('transaction_id')->orWhere("transaction_id","");
|
||||
if($value == 'true'){
|
||||
return $this->builder
|
||||
->where('is_deleted',0)
|
||||
->where(function ($query){
|
||||
$query->whereNull('transaction_id')
|
||||
->orWhere("transaction_id","");
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
return $this->builder;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user