added scope for collection export
This commit is contained in:
		@@ -9,13 +9,7 @@ class BillHistories extends Export
 | 
			
		||||
{
 | 
			
		||||
    public function collection()
 | 
			
		||||
    {
 | 
			
		||||
        $model = Model::bill()->with('document')->usingSearchString(request('search'));
 | 
			
		||||
 | 
			
		||||
        if (!empty($this->ids)) {
 | 
			
		||||
            $model->whereIn('document_id', (array) $this->ids);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return $model->cursor();
 | 
			
		||||
        return Model::with('document')->bill()->collectForExport($this->ids, null, 'document_id');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function map($model): array
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user