Updates for payment filters

This commit is contained in:
David Bomba 2022-12-16 10:29:19 +11:00
parent 5864027243
commit b964f5d482

View File

@ -87,8 +87,15 @@ class PaymentFilters extends QueryFilters
public function match_transactions($value = 'true') :Builder public function match_transactions($value = 'true') :Builder
{ {
if($value == 'true') if($value == 'true'){
return $this->builder->where('is_deleted',0)->whereNull('transaction_id')->orWhere("transaction_id",""); return $this->builder
->where('is_deleted',0)
->where(function ($query){
$query->whereNull('transaction_id')
->orWhere("transaction_id","");
});
}
return $this->builder; return $this->builder;
} }