mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
fix item reports issue
This commit is contained in:
@ -83,8 +83,7 @@ class ReportController extends Controller
|
||||
{
|
||||
$company = Company::where('unique_hash', $hash)->first();
|
||||
|
||||
$items = InvoiceItem::with('item')
|
||||
->whereCompany($company->id)
|
||||
$items = InvoiceItem::whereCompany($company->id)
|
||||
->applyInvoiceFilters($request->only(['from_date', 'to_date']))
|
||||
->itemAttributes()
|
||||
->get();
|
||||
|
||||
Reference in New Issue
Block a user