This commit is contained in:
jitendra 2019-10-14 09:18:15 +05:30
parent 373d313e84
commit 1dfe3a513d
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ class DownloadableProductDataGrid extends DataGrid
->addSelect(DB::raw('(downloadable_link_purchased.download_bought - downloadable_link_purchased.download_used) as remaining_downloads')) ->addSelect(DB::raw('(downloadable_link_purchased.download_bought - downloadable_link_purchased.download_used) as remaining_downloads'))
->where('downloadable_link_purchased.customer_id', auth()->guard('customer')->user()->id); ->where('downloadable_link_purchased.customer_id', auth()->guard('customer')->user()->id);
$this->addFilter('status', 'downloadable_link_purchased.status');
$this->setQueryBuilder($queryBuilder); $this->setQueryBuilder($queryBuilder);
} }