feat(expenses): add tax tracking and reporting (#737)

This commit is contained in:
Darko Gjorgjijoski
2026-08-02 13:01:01 +02:00
committed by GitHub
parent 3455ceb594
commit 885042f13a
38 changed files with 1466 additions and 78 deletions

View File

@@ -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(),
]]);
}