improve filters
This commit is contained in:
		@@ -19,6 +19,11 @@ class Bills extends ModelFilter
 | 
			
		||||
        return $this->whereLike('vendor_name', $query);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function vendor($vendor)
 | 
			
		||||
    {
 | 
			
		||||
        return $this->where('vendor_id', $vendor);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function status($status)
 | 
			
		||||
    {
 | 
			
		||||
        return $this->where('bill_status_code', $status);
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,11 @@ class Payments extends ModelFilter
 | 
			
		||||
        return $this->whereLike('description', $query);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function vendor($vendor)
 | 
			
		||||
    {
 | 
			
		||||
        return $this->where('vendor_id', $vendor);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function category($category)
 | 
			
		||||
    {
 | 
			
		||||
        return $this->where('category_id', $category);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user