Prevent relinking of payments with transactions
This commit is contained in:
parent
e2439b60c3
commit
93f836761d
1 changed files with 2 additions and 4 deletions
|
|
@ -84,13 +84,11 @@ 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)
|
||||
{
|
||||
|
||||
if($value == 'true')
|
||||
{
|
||||
if($value)
|
||||
return $this->builder->where('is_deleted',0)->whereNull('transaction_id');
|
||||
}
|
||||
|
||||
return $this->builder;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue