Make quick sale products on machines as orders paid when ready

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 17:11:54 +02:00
co-authored by Claude Sonnet 5.5
parent 920fecdeb2
commit 38b8075a9c
58 changed files with 3435 additions and 26 deletions
+39
View File
@@ -222,6 +222,18 @@ return [
],
],
'console' => [
'ordered_at' => 'ordered at :time',
'order_step' => 'step :step/:steps',
'order_materials' => 'Materials of the step: check the quantities and confirm.',
'less_of' => 'Less: :item',
'more_of' => 'More: :item',
'confirm_order' => 'Confirm as done',
'order_finish_named' => 'Done: order :number',
'order_done' => ':product of order :number completed.',
'move_to' => 'Move to machine',
'move_to_named' => 'Move order :number to machine',
'move' => 'Move',
'order_moved' => 'Order :number moved to :machine.',
'title' => 'Machine console: :name',
'user' => 'User: :name',
'refresh' => 'Refresh',
@@ -264,6 +276,33 @@ return [
'counters_and_maintenance' => 'Counters and maintenance',
'latest' => 'Latest reading :reading',
],
'process' => [
'title' => 'Production process',
'intro' => 'A product with a production process is sold as an order: the order goes on the work list of the first step\'s machine, and the product is paid when it is ready. A step by hand (e.g. finishing) holds the auxiliary materials no machine needs. Changes do not touch orders already sent.',
'step' => 'Step :number',
'machine' => 'Machine',
'machine_of' => 'Machine of step :number',
'by_hand' => 'No machine (by hand)',
'duration' => 'Duration per piece (h)',
'work_type' => 'Work type',
'work_type_of' => 'Work type of step :number',
'materials' => 'Materials per piece',
'material' => 'Item',
'material_of' => 'Material :number of step :step',
'per_piece' => 'Quantity / pc',
'remove_material' => 'Remove material :number of step :step',
'add_step' => 'Add step',
'save' => 'Save production process',
'saved' => 'Production process saved.',
'removed' => 'Production process removed: the product is paid at once.',
'step_added' => 'Step :number added.',
'step_removed' => 'Step :number removed.',
'step_moved' => 'Step :from moved to :to.',
'errors' => [
'invalid' => 'Check the steps: a duration of 0–24 h in steps of 0.25 h, a work type and material quantities greater than zero.',
'machine' => 'A step\'s machine must be in use and in the service unit of the product\'s work type.',
],
],
'errors' => [
'name' => 'Enter a name (1–150 characters).',
'name_taken' => 'The name is already in use.',
+52
View File
@@ -147,6 +147,58 @@ return [
'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',
'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.',
],
],
'errors' => [
'receipt_email' => 'Enter a valid email address, e.g. [email protected].',
'empty' => 'Enter a quantity for at least one product.',
+39
View File
@@ -222,6 +222,18 @@ return [
],
],
'console' => [
'ordered_at' => 'tilattu klo :time',
'order_step' => 'vaihe :step/:steps',
'order_materials' => 'Vaiheen materiaalit: tarkista määrät ja vahvista.',
'less_of' => 'Vähemmän: :item',
'more_of' => 'Enemmän: :item',
'confirm_order' => 'Vahvista valmiiksi',
'order_finish_named' => 'Valmis: tilaus :number',
'order_done' => 'Tilauksen :number tuote :product kuitattu.',
'move_to' => 'Siirrä koneelle',
'move_to_named' => 'Siirrä tilaus :number koneelle',
'move' => 'Siirrä',
'order_moved' => 'Tilaus :number siirretty koneelle :machine.',
'title' => 'Konekäyttöliittymä: :name',
'user' => 'Käyttäjä: :name',
'refresh' => 'Päivitä',
@@ -264,6 +276,33 @@ return [
'counters_and_maintenance' => 'Laskurit ja huollot',
'latest' => 'Viimeisin lukema :reading',
],
'process' => [
'title' => 'Valmistusprosessi',
'intro' => 'Tuote, jolla on valmistusprosessi, myydään tilauksena: tilaus menee ensimmäisen vaiheen koneen työlistalle, ja tuote maksetaan, kun se on valmis. Koneettomassa vaiheessa (esim. viimeistely) kirjataan apumateriaalit, joita koneella ei tarvita. Muutos ei koske jo lähetettyjä tilauksia.',
'step' => 'Vaihe :number',
'machine' => 'Kone',
'machine_of' => 'Vaiheen :number kone',
'by_hand' => 'Ei konetta (käsin)',
'duration' => 'Kesto kappaleelta (h)',
'work_type' => 'Työtehtävä',
'work_type_of' => 'Vaiheen :number työtehtävä',
'materials' => 'Materiaalit kappaletta kohden',
'material' => 'Nimike',
'material_of' => 'Vaiheen :step materiaali :number',
'per_piece' => 'Määrä / kpl',
'remove_material' => 'Poista vaiheen :step materiaali :number',
'add_step' => 'Lisää vaihe',
'save' => 'Tallenna valmistusprosessi',
'saved' => 'Valmistusprosessi tallennettu.',
'removed' => 'Valmistusprosessi poistettu: tuote myydään heti maksettavana.',
'step_added' => 'Vaihe :number lisätty.',
'step_removed' => 'Vaihe :number poistettu.',
'step_moved' => 'Vaihe :from siirretty kohtaan :to.',
'errors' => [
'invalid' => 'Tarkista vaiheet: kesto 0–24 h 0,25 h tarkkuudella, työtehtävä ja materiaalien määrät nollaa suurempina.',
'machine' => 'Vaiheen koneen on oltava käytössä ja tuotteen työtehtävän palveluyksikössä.',
],
],
'errors' => [
'name' => 'Anna nimi (1–150 merkkiä).',
'name_taken' => 'Nimi on jo käytössä.',
+52
View File
@@ -147,6 +147,58 @@ return [
'reopen_text' => 'Saldo poistetaan, ja se muodostetaan uudelleen, kun päivä päätetään.',
'reopened_message' => 'Kassapäivä :day avattu uudelleen.',
],
'orders' => [
'title' => 'Avoimet tilaukset',
'refresh' => 'Päivitä',
'refreshed' => 'Päivitetty klo :time.',
'none' => 'Ei avoimia tilauksia.',
'made' => 'Valmistetaan ennen maksua',
'order_note' => 'Myynnissä on valmistettavia tuotteita: se lähetetään valmistukseen tilauksena, ja tilaus maksetaan, kun se on valmis (tai etukäteen).',
'customer_name' => 'Asiakkaan nimi',
'customer_name_hint' => 'Vapaaehtoinen nimi, jolla asiakas kutsutaan noutamaan tilaus.',
'send' => 'Lähetä valmistukseen',
'sent' => 'Tilaus lähetetty valmistukseen. Noutonumero :number, yhteensä :total.',
'pickup' => 'Nro :number',
'statuses' => [
'in_production' => 'Valmistuksessa',
'ready' => 'Valmis, maksettavana',
'completed' => 'Valmis ja maksettu',
'cancelled' => 'Peruttu',
],
'is_paid' => 'maksettu',
'line_ready' => 'valmis',
'line_no_production' => 'ei valmistusta',
'line_step' => 'vaihe :step/:steps: :where',
'by_hand' => 'käsin, kuitataan tältä sivulta',
'complete_step' => 'Kuittaa vaihe',
'complete_step_named' => 'Kuittaa vaihe: tilaus :number, :product',
'complete_title' => 'Vaihe valmis: :product',
'complete_hint' => 'Materiaalit on esitäytetty. Suunniteltua suurempi määrä kirjataan hävikiksi (uusintatuloste). Vaiheen tunnit kirjataan sinulle.',
'complete' => 'Kuittaa valmiiksi',
'open_console' => 'Avaa koneen :machine konekäyttöliittymä',
'step_done' => 'Tilauksen :number tuotteen :product vaihe kuitattu; seuraava vaihe on työlistalla.',
'line_made' => 'Tilauksen :number tuote :product on valmis.',
'became_ready' => '{1} Tilaus :numbers on valmis.|[2,*] Tilaukset :numbers ovat valmiita.',
'pay' => 'Ota maksu',
'pay_named' => 'Ota maksu: tilaus :number',
'pay_title' => 'Tilauksen :number maksu, yhteensä :total',
'take_payment' => 'Kirjaa maksu',
'paid' => 'Tilaus :number maksettu: :total, :method.',
'cancel' => 'Peru tilaus',
'cancel_named' => 'Peru tilaus :number',
'cancel_title' => 'Perutaanko tilaus?',
'cancel_text' => 'Tilaus poistuu koneiden työlistoilta, eikä myyntiä synny. Jo kirjattu materiaali ja tunnit jäävät.',
'cancelled' => 'Tilaus :number peruttu.',
'unpaid' => '{1} 1 tilaus on maksamatta; se jää avoimeksi seuraavalle päivälle.|[2,*] :count tilausta on maksamatta; ne jäävät avoimiksi seuraavalle päivälle.',
'hours_note' => 'Pikamyyntitilaus :number',
'reasons' => [
'reprint' => 'uusintatuloste',
],
'errors' => [
'step' => 'Vaihetta ei voitu kuitata: tilauksen tila on muuttunut. Päivitä lista.',
'closed' => 'Tilaus on jo maksettu tai peruttu.',
],
],
'errors' => [
'receipt_email' => 'Anna kelvollinen sähköpostiosoite, esim. [email protected].',
'empty' => 'Anna vähintään yhdelle tuotteelle määrä.',