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]>
This commit is contained in:
2026-11-29 09:11:36 +02:00
co-authored by Claude Sonnet 5.5
parent acf87aa3cd
commit 701f05780f
13 changed files with 364 additions and 19 deletions
+10
View File
@@ -186,6 +186,14 @@ return [
'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.',
@@ -197,6 +205,8 @@ return [
'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' => [
+10
View File
@@ -186,6 +186,14 @@ return [
'paid' => 'Tilaus :number maksettu: :total, :method.',
'cancel' => 'Peru tilaus',
'cancel_named' => 'Peru tilaus :number',
'change' => 'Muuta',
'change_named' => 'Muuta tilausta :number',
'editing' => 'Muutat tilausta :number. Tuotteet ja asiakas on tuotu ostoskoriin.',
'editing_notice' => 'Muutat tilausta :number. Noutonumero pysyy samana.',
'stop_editing' => 'Peru muutos',
'editing_stopped' => 'Tilauksen muutos peruttu; ostoskori tyhjennetty.',
'save_change' => 'Tallenna tilauksen muutos',
'changed' => 'Tilaus :number muutettu, yhteensä :total.',
'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.',
@@ -197,6 +205,8 @@ return [
'errors' => [
'step' => 'Vaihetta ei voitu kuitata: tilauksen tila on muuttunut. Päivitä lista.',
'closed' => 'Tilaus on jo maksettu tai peruttu.',
'started' => 'Tilausta ei voi enää muuttaa: valmistus on alkanut tai tilaus on maksettu tai peruttu.',
'no_production' => 'Tilauksessa pitää olla vähintään yksi valmistettava tuote. Myy muut tuotteet tavallisena myyntinä.',
],
],
'errors' => [