Profitability by job and service unit from a period's hours, expenses and the created billing materials of its months. Hours are costed at one internal hourly cost, set on the price list maintenance page; a job of several service units is shared evenly between them. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
17 lines
769 B
PHP
17 lines
769 B
PHP
<?php
|
|
|
|
use App\Modules\Reports\Presentation\Http\Controllers\DownloadReport;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::middleware(['web', 'auth', 'can:reports.view'])
|
|
->prefix('reports')
|
|
->name('reports.')
|
|
->group(function () {
|
|
Route::livewire('/hours', 'reports::hours')->name('hours');
|
|
Route::livewire('/unbilled', 'reports::unbilled')->name('unbilled');
|
|
Route::livewire('/profitability', 'reports::profitability')->name('profitability');
|
|
Route::livewire('/sales', 'reports::sales')->name('sales');
|
|
Route::livewire('/reimbursements', 'reports::reimbursements')->name('reimbursements');
|
|
Route::get('/{report}/csv', DownloadReport::class)->whereIn('report', DownloadReport::REPORTS)->name('csv');
|
|
});
|