Files
Toiminnanohjaus/lang/en/sales.php
T
petriandClaude Sonnet 5.5 701f05780f Change a quick sale order before making starts
An unpaid order whose lines have no completed step can be reopened in the
cart from the open orders list; saving replaces its lines with current
prices and processes, moves the machine work list rows and keeps the
pickup number. Keyboard browser tests cover changing and cancelling an
order and moving production steps.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-29 09:11:36 +02:00

226 lines
11 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
return [
'job_name' => 'Quick sales :year',
'hours_note' => 'Quick sale #:number',
'payment_methods' => [
'cash' => 'Cash',
'card' => 'Debit card',
],
'sell' => [
'title' => 'Quick sale',
'intro' => 'Cash and card sales of consumer products. Prices include VAT. The duration of the products is recorded as your hours.',
'products' => 'Products',
'products_help' => 'Each press adds one to the sale. You can also type the quantity; 0 removes the line.',
'quantity' => 'Quantity',
'quantity_named' => 'Quantity: :product',
'add_named' => 'Add :product, :price / :unit',
'cart' => 'Sale',
'cart_empty' => 'The sale has no products yet.',
'line' => ':quantity × :price = :total',
'line_hours' => 'Records :hours h as your hours.',
'decrease_named' => 'Remove one: :product',
'increase_named' => 'Add one: :product',
'remove_named' => 'Remove from the sale: :product',
'changed' => ':product: :quantity. Total :total.',
'removed' => ':product removed. Total :total.',
'no_products' => 'The price list has no consumer products in use.',
'total' => 'Total :total (incl. VAT)',
'payment_method' => 'Payment method',
'customer' => 'Customer (optional)',
'customer_search' => 'Search customers',
'customer_search_description' => 'Leave empty if the customer is an anonymous consumer.',
'customer_results' => '{0} No customers found.|{1} 1 customer found.|[2,*] :count customers found.',
'choose_customer' => 'Choose customer :name',
'change_customer' => 'Remove customer',
'save' => 'Record sale',
'receipt_email' => 'Email the receipt',
'receipt_email_hint' => 'Optional. The PDF receipt is sent to this address after the sale. The address is not added to the customer register.',
'receipt_queued' => 'The receipt is being sent to :email.',
'saved' => 'Sale #:number recorded: :total, :method.',
'hours_booked' => ':hours h were recorded as your hours.',
'hours_not_booked' => 'The hours (:hours h) could not be recorded, because the day\'s hours have already been approved or the day would exceed 24 h. Enter them in the week view or ask management to cancel the approval.',
'to_list' => 'The day\'s sales and cash day',
],
'index' => [
'title' => 'Quick sales',
'day_navigation' => 'Day selection',
'previous' => 'Previous day',
'today' => 'Today',
'next' => 'Next day',
'new_sale' => 'New sale',
'sales' => 'Sales',
'own_only' => 'You see your own sales. The cash day balance includes everyone\'s sales.',
'seller' => 'Seller',
'all_sellers' => 'All sellers',
'none' => 'No sales on this day.',
'unclosed' => 'Cash days not closed:',
],
'columns' => [
'time' => 'Time',
'number' => 'Number',
'seller' => 'Seller',
'customer' => 'Customer',
'products' => 'Products',
'payment_method' => 'Payment method',
'total' => 'Amount',
'actions' => 'Actions',
],
'anonymous' => 'Anonymous',
'line' => ':quantity × :product at :price',
'credit_of' => 'Credit for sale #:number',
'credited_by' => 'Credited (#:number)',
'credit' => 'Credit',
'credit_named' => 'Credit sale #:number',
'credit_title' => 'Credit the sale?',
'credit_text' => 'A credit is recorded for sale #:number (:total) on this day, with the same products as negative amounts. Refund the customer with the same payment method (:method). The sale\'s hours do not change: correct them in the week view if needed.',
'credit_confirm' => 'Record credit',
'receipt_link' => 'Receipt',
'receipt' => [
'open' => 'Open receipt #:number (PDF, opens in a new tab)',
'open_named' => 'Receipt #:number (PDF, opens in a new tab)',
'title' => 'Receipt',
'credit_title' => 'Credit receipt',
'file' => 'receipt-:number.pdf',
'number' => 'Receipt no.',
'date' => 'Date',
'seller' => 'Seller',
'customer' => 'Customer',
'payment_method' => 'Payment method',
'credits' => 'Credits receipt no. :number',
'business_id' => 'Business ID',
'vat_number' => 'VAT number',
'product' => 'Product',
'quantity' => 'Quantity',
'unit_price' => 'Unit price',
'line_total' => 'Total',
'total' => 'Total (incl. VAT)',
'vat_heading' => 'Value added tax',
'vat_rate' => 'VAT %',
'net' => 'Excl. VAT',
'vat' => 'VAT',
'gross' => 'Incl. VAT',
'thanks' => 'Thank you for your visit!',
'company_missing' => 'Company details are missing: the admin fills them in under Company details.',
],
'credited' => 'Credit #:credit was recorded for sale #:number.',
'receipt_mail' => [
'subject' => 'Receipt :number – :company',
'credit_subject' => 'Credit receipt :number – :company',
'greeting' => 'Hello,',
'body' => 'attached is the receipt for your purchase on :date (receipt no. :number).',
'credit_body' => 'attached is the credit receipt of :date (receipt no. :number).',
'status_pending' => 'Receipt being sent',
'status_sent' => 'Receipt sent',
'status_failed' => 'Sending the receipt failed',
'send' => 'Email receipt',
'send_named' => 'Email receipt #:number',
'send_title' => 'Email the receipt?',
'send_text' => 'Receipt #:number is sent as a PDF attachment to the address below. You can correct the address before sending.',
'send_confirm' => 'Send',
'resent' => 'Receipt #:number is being sent to :email.',
],
'cash_day' => [
'title' => 'Cash day',
'open' => 'The cash day is open.',
'closed' => 'Cash day closed :at (:name).',
'reopened' => 'Reopened :at (:name).',
'balance' => 'Balance',
'preview' => 'Balance formed on closing',
'sale_count' => 'Sales (including credits)',
'cash' => 'Cash',
'card' => 'Debit card',
'total' => 'Total',
'vat_breakdown' => 'VAT breakdown',
'vat_rate' => 'VAT',
'gross' => 'Incl. VAT',
'net' => 'Excl. VAT',
'vat' => 'VAT',
'item' => 'Item',
'amount' => 'Amount',
'close' => 'Close cash day',
'close_title' => 'Close the cash day?',
'close_text' => 'A balance is formed from the day\'s sales, and no more sales can be recorded for the day.',
'closed_message' => 'Cash day :day closed.',
'reopen' => 'Reopen cash day',
'reopen_title' => 'Reopen the cash day?',
'reopen_text' => 'The balance is removed, and it is formed again when the day is closed.',
'reopened_message' => 'Cash day :day reopened.',
],
'orders' => [
'title' => 'Open orders',
'refresh' => 'Refresh',
'refreshed' => 'Refreshed at :time.',
'none' => 'No open orders.',
'made' => 'Made before payment',
'order_note' => 'The sale has products that are made first: it is sent to production as an order, and the order is paid when it is ready (or in advance).',
'customer_name' => 'Customer name',
'customer_name_hint' => 'An optional name to call the customer by when the order is ready.',
'send' => 'Send to production',
'sent' => 'Order sent to production. Pickup number :number, total :total.',
'pickup' => 'No. :number',
'statuses' => [
'in_production' => 'Being made',
'ready' => 'Ready, to be paid',
'completed' => 'Ready and paid',
'cancelled' => 'Cancelled',
],
'is_paid' => 'paid',
'line_ready' => 'ready',
'line_no_production' => 'not made',
'line_step' => 'step :step/:steps: :where',
'by_hand' => 'by hand, completed on this page',
'complete_step' => 'Complete step',
'complete_step_named' => 'Complete step: order :number, :product',
'complete_title' => 'Step done: :product',
'complete_hint' => 'The materials are prefilled. A quantity over the plan is recorded as a write-off (reprint). The step\'s hours are recorded on you.',
'complete' => 'Mark done',
'open_console' => 'Open the machine console of :machine',
'step_done' => 'Step of :product in order :number completed; the next step is on a work list.',
'line_made' => ':product of order :number is ready.',
'became_ready' => '{1} Order :numbers is ready.|[2,*] Orders :numbers are ready.',
'pay' => 'Take payment',
'pay_named' => 'Take payment: order :number',
'pay_title' => 'Payment of order :number, total :total',
'take_payment' => 'Record payment',
'paid' => 'Order :number paid: :total, :method.',
'cancel' => 'Cancel order',
'cancel_named' => 'Cancel order :number',
'change' => 'Change',
'change_named' => 'Change order :number',
'editing' => 'You are changing order :number. Its products and customer are in the cart.',
'editing_notice' => 'You are changing order :number. The pickup number stays the same.',
'stop_editing' => 'Discard change',
'editing_stopped' => 'Order change discarded; the cart is empty.',
'save_change' => 'Save order change',
'changed' => 'Order :number changed, total :total.',
'cancel_title' => 'Cancel the order?',
'cancel_text' => 'The order leaves the machines\' work lists and no sale is made. Material and hours already recorded stay.',
'cancelled' => 'Order :number cancelled.',
'unpaid' => '{1} 1 order is unpaid; it stays open for the next day.|[2,*] :count orders are unpaid; they stay open for the next day.',
'hours_note' => 'Quick sale order :number',
'reasons' => [
'reprint' => 'reprint',
],
'errors' => [
'step' => 'The step could not be completed: the order has changed. Refresh the list.',
'closed' => 'The order is already paid or cancelled.',
'started' => 'The order can no longer be changed: making has started or it is paid or cancelled.',
'no_production' => 'An order needs at least one product that is made. Sell the other products as an ordinary sale.',
],
],
'errors' => [
'receipt_email' => 'Enter a valid email address, e.g. [email protected].',
'empty' => 'Enter a quantity for at least one product.',
'quantity' => 'Enter the quantity as a whole number 0–999.',
'product' => 'The product is no longer on sale. Refresh the page.',
'customer' => 'The customer was not found. Choose the customer again.',
'day_closed' => 'The cash day is closed; ask management to reopen it.',
'already_credited' => 'The sale has already been credited.',
'credit_of_credit' => 'A credit cannot be credited.',
'not_found' => 'The sale was not found.',
'future' => 'A future cash day cannot be closed.',
'not_closed' => 'The cash day is not closed.',
],
];