mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-21 00:41:34 +02:00
Updates for payment filters
This commit is contained in:
parent
93f836761d
commit
c95384fe0c
@ -84,10 +84,10 @@ class PaymentFilters extends QueryFilters
|
||||
/**
|
||||
* Returns a list of payments that can be matched to bank transactions
|
||||
*/
|
||||
public function match_transactions($value)
|
||||
public function match_transactions($value = 'true')
|
||||
{
|
||||
|
||||
if($value)
|
||||
if($value == 'true')
|
||||
return $this->builder->where('is_deleted',0)->whereNull('transaction_id');
|
||||
|
||||
return $this->builder;
|
||||
|
@ -226,12 +226,6 @@ abstract class QueryFilters
|
||||
return $this->builder->where('is_deleted', 0);
|
||||
}
|
||||
|
||||
// if($value == 'true'){
|
||||
|
||||
// $this->builder->withTrashed();
|
||||
|
||||
// }
|
||||
|
||||
return $this->builder;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user