Report stock usage and value, add material cost to profitability, document phase 5
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -8,6 +8,8 @@ use App\Modules\Reports\Presentation\Csv\ProfitabilityCsv;
|
||||
use App\Modules\Reports\Presentation\Csv\ReimbursementsCsv;
|
||||
use App\Modules\Reports\Presentation\Csv\ReportCsv;
|
||||
use App\Modules\Reports\Presentation\Csv\SalesCsv;
|
||||
use App\Modules\Reports\Presentation\Csv\StockUsageCsv;
|
||||
use App\Modules\Reports\Presentation\Csv\StockValueCsv;
|
||||
use App\Modules\Reports\Presentation\Csv\UnbilledCsv;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
@@ -22,7 +24,7 @@ use Symfony\Component\HttpFoundation\StreamedResponse;
|
||||
class DownloadReport
|
||||
{
|
||||
/** The reports that have a CSV, by their URL key. */
|
||||
public const array REPORTS = ['hours', 'unbilled', 'profitability', 'sales', 'reimbursements'];
|
||||
public const array REPORTS = ['hours', 'unbilled', 'profitability', 'sales', 'reimbursements', 'stock-usage', 'stock-value'];
|
||||
|
||||
public function __invoke(string $report, Request $request): StreamedResponse
|
||||
{
|
||||
@@ -79,6 +81,8 @@ class DownloadReport
|
||||
'profitability' => app(ProfitabilityCsv::class),
|
||||
'sales' => app(SalesCsv::class),
|
||||
'reimbursements' => app(ReimbursementsCsv::class),
|
||||
'stock-usage' => app(StockUsageCsv::class),
|
||||
'stock-value' => app(StockValueCsv::class),
|
||||
default => abort(404),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user