Files
petriandClaude Sonnet 5.5 bc3dbf16a4 Show a monthly fee job's billed periods on a page of its own
The new billing::job-months page lists the months that created billing
materials have billed for a monthly fee job, with links to the materials
and the total, and the months still to bill up to the current month,
counted the same way as a new material counts them. The job page links
to it next to the payment basis for those who manage billing.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-25 15:56:15 +02:00

228 lines
10 KiB
PHP

<?php
return [
'expense_line' => ':category :day: :what',
'csv' => [
'file' => 'billing-material-:number.csv',
'download' => 'Download CSV',
'download_short' => 'CSV',
'download_named' => 'Download CSV: Material :number',
'sensitive' => 'The file may contain consumer customers\' personal identity codes. Handle it as confidential and delete it once the data has been transferred to billing.',
'company' => 'Company',
'consumer' => 'Consumer',
'units' => [
'hours' => 'h',
'month' => 'mo',
'piece' => 'pcs',
],
'columns' => [
'Invoice', 'Customer', 'Customer type', 'Business ID', 'Personal identity code', 'Billing unit', 'Billing address',
'E-invoice address', 'Operator', 'Reference', 'Job', 'Job name', 'Line type', 'Description', 'Recorded h',
'Quantity', 'Unit', 'Unit price (c)', 'VAT (‰)', 'Excl. VAT (c)', 'VAT (c)', 'Incl. VAT (c)',
],
],
'statuses' => [
'draft' => 'Draft',
'created' => 'Created',
],
'modes' => [
'hours' => 'Hourly work',
'fixed_price' => 'Fixed price',
'monthly_fee' => 'Monthly fee',
'none' => 'Not billed through billing material',
],
'kinds' => [
'hours' => 'Hours',
'fixed_price' => 'Fixed price',
'expense' => 'Expense',
'monthly_fee' => 'Monthly fee',
],
'reasons' => [
'wrong_status' => 'The job is not done.',
'not_billable_basis' => 'The job is not billed through billing material (not billable, or an internal customer).',
'missing_monthly_fee' => 'The monthly billing job has no monthly fee.',
'missing_identity_code' => 'The customer\'s personal identity code is missing.',
'missing_hourly_rate' => 'Hourly rate missing: :names',
'missing_quoted_amount' => 'The fixed-price job has no quote amount.',
'nothing_to_bill' => 'Nothing to bill: no approved hours, unbilled months or billable expenses.',
],
'merge_refusals' => [
'different_customer' => 'The jobs have different customers.',
'different_billing_unit' => 'The jobs have different billing units.',
'different_reference' => 'The jobs have different customer references.',
'monthly_fee_alone' => 'A monthly billing job is billed on an invoice of its own.',
],
'index' => [
'title' => 'Billing',
'intro' => 'Once a month, the approved hours and billable expenses of done jobs are collected into billing material. The material is worked on as a draft, and creating it marks the lines as billed and moves the jobs to the status Invoice created.',
'new' => 'New material',
'continue' => 'Continue draft',
'none' => 'There is no billing material yet.',
'table' => 'Billing material',
'columns' => [
'number' => 'Material',
'status' => 'Status',
'created' => 'Started',
'finalized' => 'Created',
'invoices' => 'Invoices',
'jobs' => 'Jobs',
'net' => 'Amount excl. VAT',
'file' => 'File',
],
'export_label' => 'Material :number',
'draft_label' => 'Draft',
],
'job_months' => [
'title' => 'Billed periods: :job',
'back' => 'Back to the customer job',
'intro' => 'A monthly fee job is billed for every month from its start month. Created billing materials mark the months billed, and no month is billed twice.',
'summary' => 'Monthly billing details',
'customer' => 'Customer',
'monthly_fee' => 'Monthly fee',
'no_fee' => 'Not set: the job is not billed until a monthly fee is given.',
'vat_excluded' => '(excl. VAT)',
'starts' => 'Billing starts',
'ends' => 'Billing ends',
'no_end' => 'Until further notice',
'billing_unit' => 'Billing unit',
'not_running' => 'The job is not in Order, In production, On hold or Done, so new billing materials do not bill its months.',
'billed_title' => 'Billed months (:count)',
'none_billed' => 'No month has been billed yet.',
'billed_total' => 'Billed in total :net (excl. VAT).',
'columns' => [
'month' => 'Period',
'export' => 'Billing material',
'finalized' => 'Created',
'net' => 'Net',
],
'unbilled_title' => 'Unbilled up to :month',
'unbilled_list' => 'Unbilled months',
'none_unbilled' => 'Every month up to this month has been billed.',
'unbilled_help' => 'These months go on the next billing material whose billing month is at or after them.',
],
'export' => [
'title' => 'Billing material :number',
'draft_title' => 'Billing material draft',
'back' => 'All billing material',
'draft_info' => 'Draft, started by :name :at. Changes are saved immediately.',
'created_info' => 'Created :at by :name.',
'summary' => ':invoices invoices, :jobs jobs, total excl. VAT :net.',
'finalize' => 'Create material',
'finalize_title' => 'Create the billing material?',
'finalize_text' => 'The material will have :invoices invoices, total excl. VAT :net. Creating it marks the hours and expenses as billed and moves the jobs to the status Invoice created. Created material can no longer be changed.',
'finalized' => 'Billing material created: :invoices invoices.',
'discard' => 'Discard draft',
'discard_title' => 'Discard the draft?',
'discard_text' => 'The draft is deleted. Nothing has been billed yet, so the jobs stay as they are.',
'discarded' => 'Draft discarded.',
'problems' => 'Not all jobs can be billed. Fix or remove the marked jobs before creating the material.',
'period' => 'Billing month',
'period_help' => 'Monthly billing jobs are billed up to this month, including any skipped months.',
'period_saved' => 'The billing month is now :month.',
],
'invoices' => [
'title' => 'Invoices',
'none' => 'The draft has no jobs yet. Add done jobs below.',
'heading' => 'Invoice :number: :customer',
'billing_unit' => 'Billing unit',
'reference' => 'Customer reference',
'no_billing_unit' => 'No billing unit',
'no_reference' => 'No reference',
'totals' => 'Invoice totals',
'net' => 'Excl. VAT',
'vat' => 'VAT :rate',
'gross' => 'Incl. VAT',
'export_totals' => 'Material totals',
],
'jobs' => [
'open_job' => 'Open job :job',
'mode' => 'Billing method: :mode',
'unapproved' => 'Unapproved hours :hours h. They are not included in the material, and because the job moves to the status Invoice created, they will remain unbilled.',
'approvals_link' => 'Hour approval',
'hours_caption' => 'Hours by work type: :job',
'work_type' => 'Work type',
'approved_hours' => 'Approved h',
'billable_hours' => 'Billable h',
'billable_label' => 'Billable hours: :work_type',
'adjusted' => 'changed',
'rate' => 'Hourly rate',
'net' => 'Excl. VAT',
'no_rate' => 'Missing',
'billable_help' => 'By default the billable hours are the sum of the approved hours. An empty field restores the default.',
'fixed_price' => 'Fixed price: :amount',
'fixed_price_billed' => 'The fixed price has already been billed in earlier billing material.',
'fixed_hours' => 'The approved hours :hours h are shown for information and marked as billed.',
'monthly_hours' => 'The approved hours :hours h are included in the monthly fee and are marked as billed.',
'months_caption' => 'Billable months: :job',
'month' => 'Month',
'no_months' => 'No unbilled months.',
'no_hours' => 'No approved unbilled hours.',
'expenses_caption' => 'Expenses: :job',
'expense' => 'Expense',
'amount' => 'Excl. VAT',
'move_label' => 'Move to invoice: :job',
'move_placeholder' => 'Choose an invoice',
'move' => 'Move',
'move_named' => 'Move job :job',
'moved' => 'Job :job moved to the invoice.',
'separate' => 'Own invoice',
'separate_named' => 'Make job :job an invoice of its own',
'separated' => 'Job :job was made an invoice of its own.',
'remove' => 'Remove from material',
'remove_named' => 'Remove from material: :job',
'removed' => 'Job :job removed from the material.',
'hours_saved' => 'Billable hours saved: :job, :work_type.',
],
'lines' => [
'caption' => 'Invoice lines: :job',
'description' => 'Line',
'recorded' => 'Recorded h',
'quantity' => 'Billed h',
'unit_price' => 'Unit price',
'net' => 'Excl. VAT',
],
'available' => [
'title' => 'Billable jobs',
'intro' => 'Done jobs and monthly billing jobs that are not in the draft. Each added job is at first an invoice of its own.',
'none' => 'No other billable jobs.',
'columns' => [
'job' => 'Job',
'customer' => 'Customer',
'mode' => 'Billing method',
'hours' => 'Approved h',
'expenses' => 'Expenses',
'notes' => 'Notes',
'actions' => 'Actions',
],
'add' => 'Add to material',
'add_named' => 'Add to material: :job',
'added' => 'Job :job added to the material.',
'unapproved' => 'Not approved: :hours h',
],
'errors' => [
'draft_open' => 'A draft is already open. Continue it.',
'not_draft' => 'The material has already been created and cannot be changed.',
'not_found' => 'The billing material was not found.',
'empty' => 'The material has no jobs.',
'already_in_draft' => 'The job is already in the material.',
'not_in_draft' => 'The job is not in the material.',
'not_billable' => 'Job :job cannot be billed: :reason',
'hours' => 'Enter the hours in quarter hours, for example 12,5 or 3,25.',
'period' => 'Choose a month.',
],
];