mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-08-05 07:32:14 +00:00
feat(expenses): add tax tracking and reporting (#737)
This commit is contained in:
committed by
GitHub
parent
3455ceb594
commit
885042f13a
@@ -38,7 +38,10 @@ class ItemsController extends Controller
|
||||
|
||||
return ItemResource::collection($items)
|
||||
->additional(['meta' => [
|
||||
'tax_types' => TaxType::whereCompany()->latest()->get(),
|
||||
'tax_types' => TaxType::whereCompany()
|
||||
->whereTransactionType(TaxType::TRANSACTION_TYPE_SALES)
|
||||
->latest()
|
||||
->get(),
|
||||
'item_total_count' => Item::whereCompany()->count(),
|
||||
]]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user