Management downloads a created billing material as a semicolon CSV with decimal commas and a UTF-8 BOM for Excel: one row per invoice line with the invoice's customer, billing unit, e-invoice details and reference, the job, the line and its net, VAT and gross amounts. Consumers' full personal identity codes are included only for those who may see them, the response is not cached, and cells Excel would read as formulas are escaped. The columns follow Fennoa's import format once a sample exists. Co-Authored-By: Claude Opus 5.5 <[email protected]>
14 lines
517 B
PHP
14 lines
517 B
PHP
<?php
|
|
|
|
use App\Modules\Billing\Presentation\Http\Controllers\DownloadBillingCsv;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::middleware(['web', 'auth', 'can:billing.manage'])
|
|
->prefix('billing')
|
|
->name('billing.')
|
|
->group(function () {
|
|
Route::livewire('/', 'billing::index')->name('index');
|
|
Route::livewire('/{export}', 'billing::export')->whereNumber('export')->name('export');
|
|
Route::get('/{export}/csv', DownloadBillingCsv::class)->whereNumber('export')->name('csv');
|
|
});
|