- Dark theme page background is #5a5e60; text on it is lifted to zinc-200 / primary-100 and TallStackUI's dark labels, hints and checkbox labels are lightened so everything stays at 4.5:1. - Shared HexColor picks white or black text by the higher WCAG contrast; a native-dialog colour picker and a large work dialog component. - Customers get a header colour (customers.header_color), set on the customer page. - New job status Jatkuvat / Kausi (ongoing): open, never late, billed monthly like running jobs. - Kanban model: board columns and views, urgent threshold, per-user board preferences (density, column colours and sort), card positions, tasks of continuing jobs pinned to the board, MoveBoardCard and board queries with logged hours from TimeTracking. Co-Authored-By: Claude Opus 5.5 <[email protected]>
129 lines
6.8 KiB
PHP
129 lines
6.8 KiB
PHP
<?php
|
||
|
||
return [
|
||
'title' => 'Customers',
|
||
'create_title' => 'New customer',
|
||
'edit_title' => 'Edit customer',
|
||
|
||
'new' => 'New customer',
|
||
'edit' => 'Edit',
|
||
'actions' => 'Actions',
|
||
'save' => 'Save',
|
||
'cancel' => 'Cancel',
|
||
'search' => 'Search customers',
|
||
'search_description' => 'Search by name or business ID.',
|
||
'empty' => 'No customers found.',
|
||
'result_count' => '{0} No customers|{1} :count customer|[2,*] :count customers',
|
||
|
||
'created' => 'Customer :name added. You can now add contacts and billing units.',
|
||
'updated' => 'Details of :name saved.',
|
||
'edit_details' => 'Edit details',
|
||
'remove' => 'Remove',
|
||
'remove_customer' => 'Remove customer',
|
||
'customer_label' => 'Customer',
|
||
'internal' => 'Internal',
|
||
'internal_description' => 'Our own company. Internal work, such as administration, sales and training, is recorded on its customer jobs.',
|
||
|
||
'contacts' => [
|
||
'title' => 'Contacts',
|
||
'new' => 'Add contact',
|
||
'empty' => 'No contacts have been added for this customer yet.',
|
||
'create_title' => 'New contact',
|
||
'edit_title' => 'Edit contact',
|
||
'edit_named' => 'Edit contact :name',
|
||
'remove_named' => 'Remove contact :name',
|
||
'created' => 'Contact :name added.',
|
||
'updated' => 'Details of contact :name saved.',
|
||
'fields' => [
|
||
'name' => 'Name',
|
||
'title' => 'Title or role',
|
||
'title_description' => 'For example marketing manager or invoice approver.',
|
||
'phone' => 'Phone',
|
||
'email' => 'Email',
|
||
'note' => 'Note',
|
||
],
|
||
],
|
||
|
||
'billing_units' => [
|
||
'title' => 'Billing units',
|
||
'new' => 'Add billing unit',
|
||
'empty' => 'No billing units have been added for this customer yet.',
|
||
'create_title' => 'New billing unit',
|
||
'edit_title' => 'Edit billing unit',
|
||
'edit_named' => 'Edit billing unit :name',
|
||
'remove_named' => 'Remove billing unit :name',
|
||
'created' => 'Billing unit :name added.',
|
||
'updated' => 'Details of billing unit :name saved.',
|
||
'fields' => [
|
||
'name' => 'Name',
|
||
'name_description' => 'Each billing unit gets its own invoices.',
|
||
'billing_address' => 'Billing address',
|
||
'billing_address_description' => 'Postal address for a paper invoice, or a billing email address.',
|
||
'e_invoice_address' => 'E-invoice address',
|
||
'e_invoice_address_description' => 'For example the OVT code 003712345678. Optional.',
|
||
'e_invoice_operator' => 'Operator ID',
|
||
'e_invoice_operator_description' => 'The e-invoice operator\'s ID, for example 003721291126. Required if an e-invoice address is given.',
|
||
'reference' => 'Reference',
|
||
'reference_description' => 'A reference requested by the customer, printed on the invoice.',
|
||
],
|
||
],
|
||
|
||
'removal' => [
|
||
'title' => 'Confirm removal',
|
||
'question_customer' => 'Remove customer :name? This cannot be undone.',
|
||
'question_contact' => 'Remove contact :name? This cannot be undone.',
|
||
'question_billing_unit' => 'Remove billing unit :name? This cannot be undone.',
|
||
'removed_customer' => 'Customer :name removed.',
|
||
'removed_contact' => 'Contact :name removed.',
|
||
'removed_billing_unit' => 'Billing unit :name removed.',
|
||
'already_removed' => 'The row was not found. It may already have been removed.',
|
||
'in_use_customer' => 'Customer :name was not removed because it has contacts, billing units, customer jobs, sales or invoices. A customer can be removed only when nothing is linked to it.',
|
||
'internal_customer' => 'The internal customer cannot be removed.',
|
||
'in_use_contact' => 'Contact :name was not removed because it is selected on a customer job. First choose another contact for the customer job.',
|
||
'in_use_billing_unit' => 'Billing unit :name was not removed because it is selected on a customer job. First choose another billing unit for the customer job.',
|
||
],
|
||
|
||
'header_color_title' => 'Colour of customer :name',
|
||
'header_color_saved' => 'Customer colour saved.',
|
||
'fields' => [
|
||
'name' => 'Name',
|
||
'header_color' => 'Colour',
|
||
'type' => 'Customer type',
|
||
'business_id' => 'Business ID',
|
||
'business_id_description' => 'In the format 1234567-8. Optional.',
|
||
'personal_identity_code' => 'Personal identity code',
|
||
'personal_identity_code_description' => 'Needed when an invoice is sent to a consumer. In the format 131052-308T. Optional.',
|
||
'personal_identity_code_stored' => 'Saved: :code. Leave empty if you do not change it.',
|
||
'personal_identity_code_missing' => 'Not given – needed for billing',
|
||
'remove_personal_identity_code' => 'Remove the saved personal identity code',
|
||
],
|
||
|
||
'types' => [
|
||
'company' => 'Company',
|
||
'consumer' => 'Consumer',
|
||
],
|
||
|
||
'errors' => [
|
||
'invalid_header_color' => 'The colour is not valid. Choose a colour in the picker.',
|
||
'name_required' => 'Enter the customer\'s name.',
|
||
'invalid_name' => 'The name may be at most 255 characters.',
|
||
'type_required' => 'Choose a customer type.',
|
||
'invalid_business_id' => 'The business ID is not valid. Check the digits and the format 1234567-8.',
|
||
'consumer_business_id' => 'A consumer customer cannot have a business ID.',
|
||
'business_id_taken' => 'There is already a customer with this business ID.',
|
||
'invalid_personal_identity_code' => 'The personal identity code is not valid. Check the date, the separator and the check character, for example 131052-308T.',
|
||
'company_personal_identity_code' => 'A company customer cannot have a personal identity code.',
|
||
'internal_must_be_company' => 'The internal customer is our own company, so it cannot be a consumer.',
|
||
'personal_identity_code_taken' => 'There is already a customer with this personal identity code. Search for the customer in the list by name.',
|
||
'personal_identity_code_throttled' => 'You have saved personal identity codes too many times within an hour. Try again later or ask management to save the code.',
|
||
'contact_name_required' => 'Enter the contact\'s name.',
|
||
'invalid_contact_name' => 'The name may be at most 255 characters.',
|
||
'invalid_email' => 'The email address is not valid.',
|
||
'billing_unit_name_required' => 'Enter the billing unit\'s name.',
|
||
'invalid_billing_unit_name' => 'The name may be at most 255 characters.',
|
||
'invalid_e_invoice_address' => 'The e-invoice address must have 12–35 letters or digits, for example 003712345678.',
|
||
'e_invoice_operator_required' => 'Enter the operator ID, because an e-invoice address is given.',
|
||
'too_long' => 'The text may be at most :max characters.',
|
||
],
|
||
];
|