diff --git a/app/Filters/PaymentFilters.php b/app/Filters/PaymentFilters.php index e09c49e35557..c61c724dadf1 100644 --- a/app/Filters/PaymentFilters.php +++ b/app/Filters/PaymentFilters.php @@ -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; }