Add a CSV download of created billing materials

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]>
This commit is contained in:
2026-11-24 13:32:46 +02:00
co-authored by Claude Opus 5.5
parent 5f9423a3c3
commit ae7b611126
16 changed files with 520 additions and 3 deletions
+21
View File
@@ -3,6 +3,26 @@
return [
'expense_line' => ':category :day: :what',
'csv' => [
'file' => 'laskuaineisto-:number.csv',
'download' => 'Lataa CSV',
'download_short' => 'CSV',
'download_named' => 'Lataa CSV: Aineisto :number',
'sensitive' => 'Tiedostossa voi olla kuluttaja-asiakkaiden henkilötunnuksia. Käsittele sitä luottamuksellisena ja poista se, kun tiedot on siirretty laskutukseen.',
'company' => 'Yritys',
'consumer' => 'Kuluttaja',
'units' => [
'hours' => 'h',
'month' => 'kk',
'piece' => 'kpl',
],
'columns' => [
'Lasku', 'Asiakas', 'Asiakastyyppi', 'Y-tunnus', 'Henkilötunnus', 'Laskutusyksikkö', 'Laskutusosoite',
'Verkkolaskuosoite', 'Välittäjä', 'Viite', 'Työ', 'Työn nimi', 'Rivin laji', 'Kuvaus', 'Kirjatut h',
'Määrä', 'Yksikkö', 'À-hinta', 'ALV %', 'Veroton', 'ALV', 'Verollinen',
],
],
'statuses' => [
'draft' => 'Luonnos',
'created' => 'Muodostettu',
@@ -54,6 +74,7 @@ return [
'invoices' => 'Laskuja',
'jobs' => 'Töitä',
'net' => 'Veroton summa',
'file' => 'Tiedosto',
],
'export_label' => 'Aineisto :number',
],