Prevent relinking of payments with transactions

This commit is contained in:
David Bomba 2022-12-16 10:02:29 +11:00
parent e2439b60c3
commit 93f836761d

View File

@ -84,13 +84,11 @@ class PaymentFilters extends QueryFilters
/** /**
* Returns a list of payments that can be matched to bank transactions * 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->where('is_deleted',0)->whereNull('transaction_id');
}
return $this->builder; return $this->builder;
} }