18 - Store: counter (POS), sales and online shop

Navigation: Index | previous: 17 - Store: inventory and purchasing | next: 19 - Contracts and tenders Last checked against the application: 25 Nov 2026

1. Who this guide is for

This guide is for the people who sell from a parts shop on Traincu and for the people who buy from it.

2. What you can do here (summary)

Activity Who Screen(s)
Add a register and set your manager PIN Store manager Registers, Manager PIN
Open a shift (count the drawer) Cashier I-21
Sell at the counter: scan, cart, split payment, change, receipt Cashier I-09
Hold a sale and recall it later Cashier I-22 (and I-09)
Receive what a customer owes, at the counter Cashier I-09 (key F7)
Ask a manager for a bigger discount Cashier, then Store manager I-26 (and I-09)
Put cash into the drawer or take it out Cashier, Store manager I-25
Close the shift and print the Z report Cashier, Store manager I-10
Take an advance order with a deposit Cashier I-23
Hand over an advance order Cashier I-24
Take goods back and refund Cashier, Store manager I-15
Make a sale or a quote by phone, WhatsApp or for a business customer Store manager (a Store keeper only if the company adds the money flag and the sales permissions to the role) I-34
See all sales of every channel Store manager, Finance I-11
See what customers owe and hold, and the customer ledger Store manager, Finance I-17, I-33
Receive a customer payment in the back office Finance, Store manager I-18
Open the online store, set delivery and coupons Store manager I-13
Pack, dispatch and deliver an online order Store, Store manager Online orders
Decide an online return Store, Store manager Online returns
Decide a warranty claim Store, Store manager I-12
Read online-sales payout statements Finance I-14
Search the parts store and open a product Everyone O-01, O-02
Fill the cart Signed-in buyer O-03
Check out and pay Signed-in buyer O-04
Follow an order and say it arrived Buyer O-05
Ask for a return or a warranty claim, rate the parts Buyer O-06, Rate

3. Before you begin

Note - not built yet. Working offline at the counter is not built: a one-day study was done and the build waits for the tax advisor. The counter needs a network connection. A card is paid on a separate card terminal and the cashier types the approval code; there is no terminal link. The cash drawer cannot be opened from the browser (key F11 says so). WhatsApp buttons are shown but switched off.

4. Where to find it

Shop side - sidebar Store:

Group Screens
Counter (POS) Counter (POS), Shifts, Held sales, Advance orders, Sales returns, Discount approvals, Manager PIN (managers)
Sales & customers Sales orders, Customer accounts, Online orders, Online returns
Online shop Storefront, Warranty claims, Store payouts

Some pages have no menu line but sit in the strip of tabs that shows on top of every Store page: Cash in and out, Registers, Goods receipts. The Manager PIN menu line and tab are shown to people who may approve (pos.approve).

All shop-side addresses start with /app/store/, for example /app/store/pos, /app/store/orders, /app/store/customers.

Buyer side - public addresses with the language in front (/ar/... or /en/...):

Page Address
Parts store (O-01) /{language}/store
Product page (O-02) /{language}/store/{words}-{id}
Cart (O-03) /{language}/cart
Checkout (O-04) /{language}/checkout/store
My orders and order tracking (O-05) /{language}/my/orders, /{language}/my/orders/{code}
Return or warranty (O-06) /{language}/my/orders/{code}/return

5. The big picture (flowchart)

Every sale, at the counter, by phone, from an advance order or online, ends in the same way: the stock goes down, a tax document is issued and the books are posted. A return goes the other way.

flowchart TD
  s1(["Customer wants parts"]) --> c1{"Where does the customer buy?"}
  c1 -->|"At the shop"| p1["Counter POS I-⁠09"]
  c1 -->|"Phone, WhatsApp, business"| p2["New sale I-⁠34"]
  c1 -->|"Special order with deposit"| p3["Advance order I-⁠23"]
  c1 -->|"Online"| p4["Online shop O-⁠01 to O-⁠05"]
  p3 --> p5["Pickup I-⁠24"]
  p1 --> core[["One sales desk: price, stock, tax invoice, books"]]
  p2 --> core
  p5 --> core
  p4 --> v1[/"Vendor packs and dispatches"/]
  v1 --> core
  core --> o1["Sales orders I-⁠11"]
  core --> o2["Customer accounts I-⁠17"]
  p1 --> sh["Shift I-⁠21 to I-⁠10 keeps the drawer"]
  o1 --> r1["Goods come back"]
  r1 --> r2["Sales return I-⁠15 or online return"]
  r2 --> r3[["Stock back, credit note, refund"]]

6. Activities, step by step

6.1 Add a register and set your manager PIN (Registers, Manager PIN)

Purpose - a register is one till. It has its own receipt numbers and (when available) its own ZATCA device. A manager PIN lets a manager approve things at the counter. Who - Store manager (pos.manage for registers, pos.approve for the PIN).

Steps - add a register

  1. Open the Registers tab (or press Add a register on the Open shift page).
  2. Under Add register fill Register (a name), Place (the stock place the register sells from), Receipt prefix (for example R1), and, if you want, Cashier discount limit (%) and ZATCA device.
  3. Press Add register. Receipts will read R1-000001, R1-000002 and so on.
  4. To change a register press the pencil on its row. To stop using it press Switch off (it can be switched on again).

Steps - set your PIN

  1. Open Store > Counter (POS) > Manager PIN (/app/store/pos/pin).
  2. Type New PIN (4 to 8 digits) and Type it again. Press Save PIN.
  3. Only people who hold the manager permission can have a PIN. After too many wrong tries the PIN is locked for a while (currently 5 tries, 15 minutes, to be confirmed).
flowchart TD
  s1(["Store manager opens Registers"]) --> a1["Fill name, place, receipt prefix"]
  a1 --> d1{"Prefix and name already used?"}
  d1 -->|"Yes"| a2["Choose another prefix or name"] --> a1
  d1 -->|"No"| a3["Optional: discount limit and ZATCA device"]
  a3 --> a4["Press Add register"]
  a4 --> sys1[["Register is ready, receipts start at 000001"]]
  sys1 --> a5["Manager opens Manager PIN"]
  a5 --> a6["Type the PIN twice and Save PIN"]
  a6 --> e1(["Register and manager are ready for shifts"])

Fields (register)

Field What to enter Rules
Register A name such as Counter 1 2 to 80 characters; the name is unique
Place The stock place it sells from Must be a place of your company that is switched on; cannot change while a shift is open
Receipt prefix Letters or digits such as R1 1 to 11 characters; cannot clash with another document series; cannot change after the register issued receipts
Cashier discount limit (%) A percentage from 0 to 100 Blank means the company limit (currently 5 percent, to be confirmed)
ZATCA device One device of your company One device serves one register. Shows Not available yet if finance has no devices

Buttons and actions

Button What it does Who sees it
Add register / Save Creates or saves the register pos.manage
Switch off / Switch on Stops or restores a register; refused while a shift is open pos.manage
Save PIN Saves the hashed PIN pos.approve

If something goes wrong

6.2 Open a shift (I-21)

Purpose - count the drawer and start selling. No sale is possible before a shift is open, and a register can have only one open shift. Who - Cashier (pos.sell, money flag).

Steps

  1. Open Store > Counter (POS) > Counter (POS). With no open shift you are taken to Open shift.
  2. Choose the Register. A register that already has a shift is greyed out with "(shift open)". Below the choice you see the next receipt number.
  3. In Opening cash type how many notes of each size you have (500, 200, 100, 50, 20, 10, 5, 1) and the Coins (amount). The page adds them up as Counted.
  4. Read the Previous shift difference card (what the last shift ended with and why) and the ZATCA device card.
  5. Press Open shift. You land on the counter with "Shift open. You can sell now."
flowchart TD
  s1(["Cashier opens the counter"]) --> d1{"Is a shift open for this cashier?"}
  d1 -->|"Yes"| e1(["Counter opens"])
  d1 -->|"No"| a1["Open shift page"]
  a1 --> d2{"Any register set up?"}
  d2 -->|"No"| a2["Ask a manager to add a register"]
  d2 -->|"Yes"| a3["Choose the register"]
  a3 --> a4["Count notes and coins"]
  a4 --> d3{"Register free and switched on?"}
  d3 -->|"No"| a5["Choose another register"] --> a3
  d3 -->|"Yes"| a6["Press Open shift"]
  a6 --> sys1[["Shift opens, one per register"]]
  sys1 --> e1

Fields

Field What to enter Rules
Register The till you work on Only active registers; one open shift each
Cashier Your name, read only -
Notes by size Number of notes of each size Whole pieces
Coins (amount) The value of the coins Up to two decimals
Note Anything the next person should know Up to 255 characters

What happens next - the shift is written with your opening cash. Everything you sell, take in or pay out is added to the shift until you close it (6.7).

If something goes wrong - "A shift is already open on this register." (somebody else opened it); "This register is switched off."; "That amount is not reasonable: count the drawer again."

Note - the Dev Pack draws notes of 500, 100, 50, 10, 5 and 1. The real list is the company's setting, currently 500, 200, 100, 50, 20, 10, 5 and 1, to be confirmed.

6.3 Sell at the counter (I-09)

Purpose - a fast full-screen till. Who - Cashier (pos.sell, money flag). The screen has no side menu, to leave more room. A link Leave the counter goes back to the dashboard.

Steps

  1. On the left, scan a barcode (a barcode scanner types into the search box and presses Enter) or type a name or SKU, or tap a product tile. Use the category buttons to narrow the grid. Each tile shows the name, the price (VAT included) and the stock in this register's place.
  2. A product with serial numbers asks for one serial for each piece; a product kept in lots asks you to choose the lot. A product with sizes shows one tile for each size.
  3. In the cart on the right change Quantity (the - and + buttons), give a line Discount % (only if you may), or press Remove.
  4. Optionally press F3 Customer to pick a customer. You then see what they owe (Due), hold (Advance), their Store credit and the Credit left.
  5. Optionally give an Order discount % for the whole cart (key F6).
  6. Add payment lines: press a payment button (Cash, Card (terminal), mada, Apple Pay, STC Pay, Customer advance, Store credit). The amount is filled with what is left. For a card, mada, Apple Pay or STC Pay type the Approval code the terminal printed. You may split the payment in several lines.
  7. Check Bill total. When cash is more than the total the screen shows the Change. Anything unpaid becomes Added to due for a customer within credit.
  8. Press Pay and print (F9). A box shows "Sale R1-000123 made", the total and the change, and the receipt prints on an 80 mm (or 58 mm) roll. Press New sale to go on.
flowchart TD
  s1(["Shift is open"]) --> a1["Scan or tap products into the cart"]
  a1 --> d1{"Tracked product?"}
  d1 -->|"Serial or lot"| a2["Type serials or choose the lot"] --> a3["Check quantities and discounts"]
  d1 -->|"No"| a3
  a3 --> d2{"Discount above the register limit?"}
  d2 -->|"Yes"| a4["Ask the manager, see 6.5"] --> a5["Choose customer if needed"]
  d2 -->|"No"| a5
  a5 --> a6["Add payment lines and approval codes"]
  a6 --> d3{"Paid in full, or customer within credit?"}
  d3 -->|"No"| a7["Fix the payment or the customer"] --> a6
  d3 -->|"Yes"| a8["Press Pay and print F9"]
  a8 --> sys1[["Sale, tax document, stock and books in one step"]]
  sys1 --> e1(["Receipt prints, change shown"])

Fields and keys

Item What it does Rules
Search box Scan or type a code, SKU or name A scanned code adds the product at once; "No product has this code." if unknown
Quantity Pieces of the line Serial products need one serial for each piece
Discount % Per line Only for a login that may give discounts; above the limit needs a manager
Order discount % Spread over all lines Same limit
Customer (F3) Search by name or code, or Walk-in customer A due needs a customer
Payment lines Method, amount, Approval code Up to 10 lines; a card line needs its code (currently required, to be confirmed)
F4 Recall, F5 Return / refund, F6 Discount, F7 Receive due, F10 Cash in/out, F11 Drawer, F12 Close shift Shortcuts at the foot of the screen F5, F7, F10 show only if you hold the permission

Buttons and actions

Button What it does Who sees it
Pay and print (F9) Makes the sale and prints the receipt pos.sell
Hold sale Puts the cart aside (6.4) pos.sell
Print again Prints the receipt again; second print is marked COPY pos.sell
Clear cart Empties the cart pos.sell

Note - the payment buttons Card (terminal), mada, Apple Pay and STC Pay are offered only to a company on the Saudi country pack (the one with ZATCA). A bank transfer is not a counter payment: use I-34 or I-18 for it.

What the sale does (the sale-to-invoice-to-books flow) - one single step, so there is never stock without a sale or a sale without an invoice:

flowchart TD
  s1(["Pay and print pressed"]) --> sys1[["Price every line again from the catalogue"]]
  sys1 --> sys2[["Check free stock and serials or lots"]]
  sys2 --> sys3[["Check tenders and the customer credit"]]
  sys3 --> d1{"Everything accepted?"}
  d1 -->|"No"| e2(["Nothing is written, the screen shows the reason"])
  d1 -->|"Yes"| sys4[["Take the receipt number of the register"]]
  sys4 --> sys5[["Stock leaves at its average cost"]]
  sys5 --> sys6[["Sign the tax document through the ZATCA device"]]
  sys6 --> sys7[["Post the books: sale with a line per tender, then cost of goods"]]
  sys7 --> sys8[["Add to the shift and the customer account"]]
  sys8 --> e1(["Receipt with QR code"])

What happens next

If something goes wrong

Message What to do
Open a shift before selling. Open a shift (6.2)
:product: only :free can be sold at :place, :held are held for online orders. Sell less, or free the stock
The payments come to :paid, more than the total of :total. Reduce a payment line
A sale with nothing paid on it needs a customer: choose one, or take the full payment. Choose a customer or take the payment
This customer has no credit limit: take the payment now ... Take the full payment, or set a credit limit on the customer
This customer has a due that is :days days late ... must pay before it can buy on account. Receive the due first (6.11)
A discount above :limit% needs the manager. Ask the manager (6.5)
Type the approval code the terminal printed. Type the code of the card terminal
Serial number :serial is not in stock at :place. Check the serial or choose another

6.4 Hold a sale and recall it (I-22)

Purpose - put a cart aside while the customer fetches something. A held sale is not a sale: it moves no stock and no money. Who - Cashier (pos.sell); a manager with pos.view sees every register's held sales.

Steps - hold

  1. Fill the cart. Press Hold sale.
  2. You see "Held as HLD-0007". The cart is cleared for the next customer.

Steps - recall

  1. Press F4 Recall on the counter (the number in brackets is how many are waiting), or open Store > Counter (POS) > Held sales and press Recall on a row.
  2. The counter opens with the cart back. The price is worked out again.
  3. Pay it, or press Hold sale again (the old held sale is replaced by the new one).

Steps - discard

  1. On Held sales type a Reason (at least 3 characters) on the row and press Discard, then confirm.
flowchart TD
  s1(["Cart is filled"]) --> a1["Press Hold sale"]
  a1 --> sys1[["Held sale HLD saved, status Waiting"]]
  sys1 --> a2["Serve the next customer"]
  a2 --> a3["Recall from F4 or the Held sales list"]
  a3 --> d1{"Cart on the counter empty?"}
  d1 -->|"No"| a4["Hold or clear the current cart first"] --> a3
  d1 -->|"Yes"| sys2[["Cart returns, status Pending"]]
  sys2 --> d2{"What now?"}
  d2 -->|"Pay"| e1(["Held sale completed by the sale"])
  d2 -->|"Hold again"| sys1
  d2 -->|"Throw away"| a5["Discard with a reason"] --> e2(["Held sale discarded"])

Statuses

Status Meaning What you can do next
Waiting On the shelf Recall or Discard
Pending Recalled onto a counter but not paid yet Pay it, hold it again, or Discard

What happens next - held sales stop a shift from closing: before you close the shift every held sale must be paid or discarded (6.7).

If something goes wrong - "There is nothing in the cart to hold."; "This sale was held at another register."; "This held sale is already finished."; "Say why the held sale is thrown away."

6.5 Ask a manager to approve a bigger discount (I-26)

Purpose - a cashier may give a discount only up to a limit (currently 5 percent, per register or per company, to be confirmed). Above it a manager must say yes. Every override is kept with its reason. Who - Cashier asks; a Store manager (pos.approve, with a PIN) decides.

Steps - the cashier

  1. On the counter give the discount and press Pay and print. The screen shows "A discount above your limit" and a button Ask the manager ("5% ... is above your limit of ...").
  2. Type the Reason (for example "Fleet customer", "damaged box", "price match").
  3. Either choose the Manager and type their PIN, then press Approve with PIN; or press Send to the manager's phone and wait ("Waiting for the manager to answer on their phone.").
  4. When approved you see "Approved. Press pay again." Press Pay and print again.

Steps - the manager

  1. Open Store > Counter (POS) > Discount approvals, or the manager's phone app.
  2. Each waiting request shows the Cashier, the Requested discount, the Cashier limit and the Reason.
  3. Press Approve, or type a Note (needed to refuse) and press Reject.
flowchart TD
  s1(["Cashier gives a discount above the limit"]) --> d1{"Does the cashier hold the discount permission?"}
  d1 -->|"No"| e2(["Refused: You may not give a discount"])
  d1 -->|"Yes"| a1["Press Ask the manager and type a reason"]
  a1 --> d2{"Manager at the counter?"}
  d2 -->|"Yes"| a2["Choose manager and type PIN"]
  d2 -->|"No"| a3["Send to the manager's phone"]
  a2 --> d3{"PIN right and not the cashier's own?"}
  d3 -->|"No"| e3(["Refused, wrong PIN is counted"])
  d3 -->|"Yes"| sys1[["Approval saved: one cashier, one shift, once"]]
  a3 --> m1[/"Manager taps Approve or Reject"/]
  m1 -->|"Approve"| sys1
  m1 -->|"Reject"| e4(["Cashier is told, with the note"])
  sys1 --> a4["Cashier presses Pay and print again"]
  a4 --> e1(["Sale made, override logged with the reason"])

Statuses of a request

Status Meaning
Waiting for the manager Asked from the phone, no answer yet
Approved The manager said yes; good for one sale
Refused The manager said no, with a note
Used on a sale The sale was made with it
Expired Not used in time (currently 15 minutes, to be confirmed)
Withdrawn The cashier took it back

If something goes wrong - "Another manager must approve this: you cannot approve your own discount."; "That PIN is not right."; "This PIN is locked after too many wrong tries. Try again in a few minutes."; "That approval has run out of time: ask the manager again."; "That approval was already used on a sale: ask the manager again."

Note - the manager's phone approval is in the Traincu app (a list of waiting requests with Approve and Reject). It is described in 27 - The Traincu app.

6.6 Cash in and out (I-25)

Purpose - record cash that enters or leaves the drawer during your shift. Every movement shows on the shift close and in the cash book. Who - Cashier (pos.cash, money flag), on your own open shift.

Steps

  1. Press F10 on the counter, or open the Cash in and out tab.
  2. Choose Type: Cash out or Cash in.
  3. Choose Reason: Float top-up (the only reason for cash in), Bank deposit, Small expense or Supplier payment.
  4. Type the Amount and Paid to or from. A Supplier payment asks for the Supplier; a Bank deposit asks for the Bank account. Attach a Receipt photo (JPG or PNG) if you have it.
  5. A cash out above the limit (currently SAR 500.00, to be confirmed) needs a Manager and the Manager PIN, unless you are a manager yourself.
  6. Press Save movement.
flowchart TD
  s1(["Open Cash in and out"]) --> d1{"Is your shift open?"}
  d1 -->|"No"| a0["Open a shift first"] --> s1
  d1 -->|"Yes"| a1["Choose type and reason"]
  a1 --> d2{"Cash out more than the drawer holds?"}
  d2 -->|"Yes"| e2(["Refused: the drawer holds only the expected cash"])
  d2 -->|"No"| d3{"Cash out above the PIN limit?"}
  d3 -->|"Yes, and not a manager"| a2["Name a manager and type the PIN"]
  d3 -->|"No"| a3["Save movement"]
  a2 --> a3
  a3 --> sys1[["Movement saved in the shift and the cash book"]]
  sys1 --> sys2[["Supplier payment becomes an advance on the supplier, bank deposit posts to the bank"]]
  sys2 --> e1(["Expected cash is updated"])

Fields

Field What to enter Rules
Type Cash out or Cash in Only a Float top-up can come in
Reason Float top-up, Bank deposit, Small expense, Supplier payment -
Amount More than zero, two decimals Not more than the drawer holds for a cash out
Paid to or from A name A small expense must say who was paid
Supplier / Bank account Shown for the matching reason Required for that reason
Receipt photo JPG or PNG Up to 5 MB
Manager and Manager PIN Only above the limit Not shown to a manager

If something goes wrong - "Open a shift before moving cash."; "The drawer holds only :held: it cannot pay out :amount."; "Choose the supplier who is paid."; "Choose the bank account the cash goes into."; "Say who was paid."

6.7 Close the shift and print the Z report (I-10)

Purpose - count the drawer, compare it with what the system expects, and freeze the day's figures. Who - the Cashier of the shift, or a manager (pos.approve). A cashier sees only their own shifts; a manager (pos.view) sees all.

Steps

  1. Press F12 on the counter, or open Store > Counter (POS) > Shifts and open your shift. You see eight tiles: Opening cash, Cash sales, Due collected, Cash refunds, Supplier paid from drawer, Expected cash, Counted cash, Difference, then the panels Sales by hour and Payment methods.
  2. If an orange message says held sales are waiting, clear them first (6.4).
  3. In Close shift count the drawer by note and coin. The page tells you what it should hold.
  4. If the count is not the Expected cash, type the Reason for a difference. A manager must give it: a manager closes the shift, or you choose a Manager and type the Manager PIN.
  5. Press Close shift. You see "Shift closed."
  6. A person with pos.print presses Print Z report for the 80 mm page (marked X report while the shift is still open).
flowchart TD
  s1(["Press F12 or open the shift"]) --> d1{"Held sales left?"}
  d1 -->|"Yes"| a1["Recall and pay, or discard them"] --> s1
  d1 -->|"No"| a2["Count notes and coins"]
  a2 --> d2{"Counted equals expected cash?"}
  d2 -->|"Yes"| a5["Press Close shift"]
  d2 -->|"No"| a3["Type the reason for the difference"]
  a3 --> d3{"Closed by a manager, or manager PIN given?"}
  d3 -->|"No"| a4["Name a manager and the PIN"] --> d3
  d3 -->|"Yes"| a5
  a5 --> sys1[["Figures are worked out again inside the lock"]]
  sys1 --> d4{"Did the drawer total change meanwhile?"}
  d4 -->|"Yes"| a2
  d4 -->|"No"| sys2[["Shift closed, Z report frozen, register is free"]]
  sys2 --> e1(["Print Z report"])
stateDiagram-v2
  [*] --> Open : Open shift
  Open --> Open : Sales, cash in or out, dues
  Open --> Closed : Close shift
  Closed --> [*]

Statuses

Status Meaning What you can do next
Open The register sells Sell, move cash, Close shift
Closed Counted and frozen Read it, Print Z report. Last week's Z report does not change

The expected cash is: opening cash + cash sales + cash dues collected + cash in - cash out - supplier payments - cash refunds. Cards, mada, Apple Pay, STC Pay, transfers, advances and dues are not cash and never change it.

If something goes wrong - "The drawer is short by ...: the manager must say why." (type a reason); "N held sales must be recalled and paid, or discarded, before the shift can close."; "The drawer total changed while you were counting: count it again."; "This shift is already closed."

Note - the next cashier sees this shift's difference and reason on Open shift, in Previous shift difference.

6.8 Take an advance order and hand it over (I-23, I-24)

Purpose - for special-order tyres, batteries and parts: the customer leaves a deposit now and collects later. An advance order is not a sale: no stock leaves, no invoice and no revenue until the pickup. Who - Cashier and Store manager (pos.advance, money flag), on your own open shift.

Steps - take the order (I-23)

  1. Open Store > Counter (POS) > Advance orders and press Advance order (the link Advance orders is also in the top bar of the counter). With no open shift you are sent to Open shift.
  2. Choose the Customer (an account is needed, because the deposit is kept as the customer's advance) and the Ready by date.
  3. In Items type each SKU or barcode and Quantity, and for each line choose Supply: In stock (kept back for the customer) or Order from the supplier.
  4. In Stock and supplier keep Reserve stock on to hold the items in stock, and choose the Supplier for the items to order if any line says order.
  5. In Deposit type Deposit now (at least the store minimum, currently 30 percent of the total, to be confirmed), choose the Deposit method and the Approval code or reference, and the Bank account (for a transfer) if needed.
  6. Press Save advance order. You see "Advance order ADV-... saved." and a link to print the receipt. The total is worked out from the catalogue, never typed.
flowchart TD
  s1(["Customer asks for a special order"]) --> a1["Open New advance order"]
  a1 --> a2["Choose customer and Ready by date"]
  a2 --> a3["Add items, each In stock or Order from the supplier"]
  a3 --> d1{"Any line is Order from the supplier?"}
  d1 -->|"Yes"| a4["Choose the supplier"] --> a5["Type the deposit and method"]
  d1 -->|"No"| a5
  a5 --> d2{"Deposit at least the minimum and not above the total?"}
  d2 -->|"No"| a6["Correct the deposit"] --> a5
  d2 -->|"Yes"| a7["Press Save advance order"]
  a7 --> sys1[["Price locked, deposit taken into the drawer as the customer advance"]]
  sys1 --> sys2[["Items in stock held back, one purchase order made for the rest"]]
  sys2 --> e1(["Order ADV saved, status Waiting for goods or Ready for pickup"])

Steps - hand it over (I-24)

  1. Open Advance orders and press Order pickup on the order, or open /app/store/pos/pickup.
  2. In Find order type the order number, or the customer's name or mobile, and press Find.
  3. Check the items. For a tracked item type the serial numbers (one for each piece) or choose the lot.
  4. Read Order total, Deposit already paid, "Used first from the customer's advance" and Balance to pay.
  5. In Payment add the money for the balance (cash, card, mada, STC Pay ...). What you do not take stays as the customer's due, within their credit.
  6. Press Deliver and print. The order becomes a normal counter sale, and its receipt prints.
flowchart TD
  s1(["Customer comes to collect"]) --> a1["Find order by number, name or mobile"]
  a1 --> d1{"All goods are in?"}
  d1 -->|"No"| e2(["Cannot hand over yet: goods have not come in"])
  d1 -->|"Yes"| a2["Type serials or choose lots"]
  a2 --> a3["Read balance after the deposit"]
  a3 --> a4["Add payment for the balance"]
  a4 --> a5["Press Deliver and print"]
  a5 --> sys1[["The order own holds are used first"]]
  sys1 --> sys2[["Deposit pays first, then the other tenders"]]
  sys2 --> sys3[["One counter sale with tax invoice, stock and books"]]
  sys3 --> e1(["Order Delivered, receipt prints"])
stateDiagram-v2
  state "Waiting for goods" as waiting
  state "Ready for pickup" as ready
  [*] --> waiting : Saved with items to order
  [*] --> ready : Saved with all items in stock
  waiting --> ready : Goods arrive on the purchase order
  ready --> Overdue : Ready-by day passes
  waiting --> Overdue : Ready-by day passes
  ready --> Delivered : Deliver and print
  Overdue --> Delivered : Deliver and print
  waiting --> Cancelled : Cancel the order
  ready --> Cancelled : Cancel the order
  Overdue --> Cancelled : Cancel the order
  Delivered --> [*]
  Cancelled --> [*]

Fields (I-23)

Field What to enter Rules
Customer One of your customers Required
Ready by A date Not in the past; at most 180 days ahead (to be confirmed)
SKU or barcode, Quantity, Supply One line each A product on two lines is refused: put the whole quantity on one line
Reserve stock Switch The register's place must be set to "Sell online from" in Storefront, or stock cannot be held
Supplier for the items to order A supplier Needed when a line is Order from the supplier
Deposit now Amount At least 30 percent of the total and not above it (to be confirmed)
Deposit method Cash, mada, Card, STC Pay, Bank transfer A terminal method needs its approval code

Statuses

Status Meaning What you can do next
Waiting for goods Some items are ordered from the supplier and have not come in Wait, or cancel
Ready for pickup Everything is held for the customer Order pickup
Overdue The ready-by day passed Hand over, or cancel
Delivered Handed over as a sale Open the sale
Cancelled Cancelled with a reason Nothing

What happens next - when the goods of the purchase order are received, the order becomes ready and the person who took it is told. The goods are kept for a while after the ready-by day (currently 14 days, to be confirmed) and then the hold ends by itself. Cancelling needs a reason; with a deposit a manager must approve (PIN), and the deposit stays with the customer as an advance - nothing is refunded here.

If something goes wrong - "The deposit must be at least :minimum (:percent% of :total)."; "The deposit cannot be more than the total of the order."; ":product: there is not enough free stock to hold :quantity for this order. Order the missing pieces from the supplier instead."; "Some of the goods of this order have not come in yet: it cannot be handed over."; "This order was already handed over: it cannot be cancelled."

6.9 Take goods back: sales return and refund (I-15)

Purpose - take back goods sold at the counter, give the money back the right way, put the stock back and issue the credit note. Who - Cashier and Store manager (pos.refund, money flag), on your own open shift.

Steps

  1. Open Store > Counter (POS) > Sales returns and press Return, or press F5 on the counter.
  2. In Find receipt scan the receipt QR or type its number, and press Find. "No sale matches this receipt." means a wrong number.
  3. For each line type how many come Returned (never more than Can come back), choose the Condition (Back to stock or Damaged stock), and for a tracked item type the serial numbers or the batch number / DOT code printed on the goods.
  4. Choose the Reason: Wrong item, Defective, Not needed or Exchange.
  5. Choose Refund to: Original tender, Cash, Customer advance (store credit) or Reduce the due. For a sale to a walk-in, choose a Customer for the store credit.
  6. If the sale was paid by card or a wallet on the terminal, refund it on the terminal first and type the Terminal refund code.
  7. If a Restocking fee is allowed (currently none, to be confirmed) type it.
  8. If a manager is needed, choose the Manager and type the PIN (see below).
  9. Press Confirm return. You open the return RT-... with its credit note number. Print prints the credit note; for an exchange press Sell replacement.
flowchart TD
  s1(["Customer brings goods back"]) --> a1["Find the receipt by number or QR"]
  a1 --> d1{"Sale found and is a counter sale?"}
  d1 -->|"No"| e2(["Refused: online sales return through Online returns"])
  d1 -->|"Yes"| a2["Type quantities, condition and serials"]
  a2 --> a3["Choose reason and Refund to"]
  a3 --> d2{"Manager needed?"}
  d2 -->|"Yes"| a4["Name the manager and PIN"]
  d2 -->|"No"| a5["Press Confirm return"]
  a4 --> a5
  a5 --> sys1[["Quantities taken back, serials must match the sale"]]
  sys1 --> sys2[["Goods back into stock at their old cost, or into Damaged stock"]]
  sys2 --> sys3[["Sale own due is cleared first"]]
  sys3 --> sys4[["Rest refunded: original tender, cash, or store credit"]]
  sys4 --> sys5[["ZATCA credit note and books posted"]]
  sys5 --> e1(["Return RT saved, print the credit note"])

A manager is needed when the refund is above SAR 500.00, or the sale is more than 30 days old, or cash is given back for a sale that was not paid in cash (all three currently set, to be confirmed). A manager can type a PIN, or the cashier can be a manager.

What the refund is - what the customer paid for those pieces, less any restocking fee. The sale's own due is cleared first (a customer who did not pay is not refunded). The rest goes the way you chose. A payment that came through the payment gateway online is not refunded here: Finance does that. An Exchange is always given as store credit, which the customer then spends on the replacement goods.

If something goes wrong - ":product: only :left of the :sold sold can still come back."; "Serial number :serial is not one the sale gave this customer."; "The batch number or DOT code does not match the lot the sale gave this customer."; "A manager must approve this return: :why."; "The drawer holds only :held: a cash refund of :amount cannot be given from it."; "This sale was made in the online store: the goods come back through Store > Online returns, not at the counter."; "The tax invoice of this sale was refused by ZATCA: put the invoice right first."

6.10 Make a sale or a quote by phone, WhatsApp or for a business (I-11, I-34)

Purpose - back-office order entry outside the counter, with the same prices, stock and invoice rules. Who - Store manager, or any role with sales.create and the money flag (the ready-made Store keeper role has neither: add both in Settings > Roles if your keepers sell). Reading the list needs sales.view; without the money flag the list shows no amounts and a sale cannot be opened.

Steps

  1. Open Store > Sales & customers > Sales orders and press B2B order, or open a customer's page and press New sale (the customer is filled in).
  2. Under Items type each SKU or barcode and Quantity; add Discount % if you may; for a tracked product add Serial numbers or the Lot no.
  3. On the right choose Channel (Phone, WhatsApp, Walk-in B2B), the Customer (or Walk-in (no account) and a Walk-in name), the Price list (Retail, Wholesale, Contract) and Goods leave from.
  4. Choose Delivery: Store pickup or Own delivery, and a Delivery note.
  5. Under Payment add up to three lines (method, amount, reference, bank account for a transfer). What you do not cover stays as the customer's due, within their credit.
  6. Press Create order to make the sale at once, or Send quote to make an offer that moves nothing.
flowchart TD
  s1(["Customer orders by phone or WhatsApp"]) --> a1["Open B2B order"]
  a1 --> a2["Add items, channel, customer and price list"]
  a2 --> d1{"Make the sale now?"}
  d1 -->|"Send quote"| sys1[["Quote saved, no stock, no money, no invoice"]]
  sys1 --> a3["Print or e-mail the quote"]
  a3 --> c1[/"Customer says yes"/]
  c1 --> a4["Open the quote and press Make the sale"]
  a4 --> a5["Add payment lines and serials"]
  d1 -->|"Create order"| a6["Add payment lines"]
  a6 --> sys2[["Prices, stock, credit and tax invoice checked"]]
  a5 --> sys2
  sys2 --> d2{"Accepted?"}
  d2 -->|"No"| e2(["The reason shows under the field, nothing written"])
  d2 -->|"Yes"| sys3[["Stock leaves, standard or simplified invoice, books posted"]]
  sys3 --> e1(["Sale made, open it, send a payment link if money is owed"])
stateDiagram-v2
  [*] --> Quote : Send quote
  Quote --> QuoteExpired : Valid-until day passes
  Quote --> Cancelled : Cancel quote with a reason
  Quote --> Pending : Make the sale, nothing paid
  Quote --> Confirmed : Make the sale, part paid
  Quote --> Paid : Make the sale, paid in full
  [*] --> Pending : Create order, nothing paid
  [*] --> Confirmed : Create order, part paid
  [*] --> Paid : Create order, paid in full
  Pending --> Confirmed : Part payment
  Confirmed --> Paid : Rest paid
  Pending --> Paid : Paid in full
  Paid --> Delivered : Mark delivered
  Confirmed --> Delivered : Mark delivered
  Pending --> Delivered : Mark delivered
  QuoteExpired --> [*]
  Cancelled --> [*]
  Delivered --> [*]

Fields

Field What to enter Rules
SKU or barcode A product code (a list suggests SKUs) The price is never typed: it comes from the catalogue by the price list. A product with sizes is sold by the size's code
Quantity More than zero A product with serial numbers needs one serial for each piece
Discount % Per line Only with a discount permission, up to the company limit (currently 5 percent)
Channel Phone, WhatsApp, Walk-in B2B Required
Customer An account, or Walk-in (no account) A customer with a VAT number gets a standard tax invoice, anyone else a simplified one
Price list Retail, Wholesale, Contract Contract uses the customer company's contract price
Goods leave from A stock place Only places you may sell from
Payment lines Method, Amount, Reference, Bank account (transfer) The form has three rows; a transfer names the bank account

Buttons and actions (sale page)

Button What it does Who sees it
Make the sale Turns a valid quote into a sale at its prices sales.create
Cancel quote (with Cancel this quote: why?) Cancels a quote nobody will accept sales.update
Mark delivered Says the goods reached the customer; nothing moves sales.update
Payment link For what the sale still owes: choose mada, Card, Apple Pay, STC Pay or Bank transfer reference; shows a link or a reference to send sales.link
E-mail quote Mails the quote to the customer's e-mail sales.print
WhatsApp Shown but switched off ("WhatsApp is not available yet") -
Print, History The tax invoice or quote as PDF; the change history sales.print
Customer Opens the customer's account customers.view
Open the online order For an online sale, opens the vendor order online_orders.view

Statuses (I-11)

Status Meaning
Quote An offer, valid until its day (currently 14 days, to be confirmed). No stock, money or invoice
Quote expired The day passed
Pending Made, nothing paid yet
Confirmed Made and partly paid
Paid Nothing is due
Delivered The goods reached the customer
Cancelled A cancelled quote

What happens next - a made sale works exactly like a counter sale (stock, tax document, books), except it has no register or shift. A sale that stands is never cancelled: it is put right with a credit note by a return. A sale shows its ZATCA state; if ZATCA refused it, the page says "ZATCA did not accept this invoice. Tell finance: the invoice is corrected with a credit note and a new one." A due appears in the customer's account and in the finance ageing.

If something goes wrong - "Add at least one product to the sale."; ":product is sold by variant: use the code of the variant."; "A quote is for somebody: choose the customer or type a name."; "This quote ended on :day: make a new one."; "A payment link is for a customer: this sale has none."; "This sale owes nothing: there is nothing to pay."; "Only a quote that is still valid can be sent."

Note - the Dev Pack also shows Traincu carrier as a delivery choice. It is not offered yet: the screen offers Store pickup and Own delivery only.

6.11 Customer accounts, ledger and receiving a payment (I-17, I-33, I-18)

Purpose - see what each customer owes and holds, and receive their money. Who - Finance, Store manager, Cashier (receive); customers.view, customers.receive, customers.cancel, customers.print; money flag.

Where the numbers come from - Due is the customer's unpaid sales plus their open invoices of the billing side. Advance is money the customer paid ahead (a deposit, or more than they owed). Store credit comes from returns. Both Advance and Store credit can be spent at the counter.

Steps - look

  1. Open Store > Sales & customers > Customer accounts. Filter by Balance (Owes us, Holds an advance, Nothing owed either way), Aging (Not overdue, 1-30 days, 31-60 days, 61-90 days, 90+ days), Branch and Status.
  2. Press a customer to open their account (I-33). It shows Credit limit, Due, Advance, Store credit, Last payment, Oldest due, and five tabs: Ledger, Store credit, Sales, Returns, Payments.

Steps - receive a payment (I-18)

  1. Press Receive payment on the list row or on the customer's page. You see the Current due and Advance balance.
  2. Type Amount received and choose Method (cash, mada, card, STC Pay, bank transfer...). For a transfer choose the Bank account. Add a Reference and Notes if you wish.
  3. Under Allocate to choose Oldest bills first, or Choose bills and type an amount in the Apply box of each sale.
  4. Press Save receipt. Anything above what the chosen sales owe stays as the customer's advance.
flowchart TD
  s1(["Customer pays money"]) --> a1["Open the customer and press Receive payment"]
  a1 --> a2["Type amount, method and reference"]
  a2 --> a3{"Allocate how?"}
  a3 -->|"Oldest bills first"| a4["Sales are paid from the oldest"]
  a3 -->|"Choose bills"| a5["Type an amount for each sale"]
  a4 --> d1{"Amount covers what is applied?"}
  a5 --> d1
  d1 -->|"No"| e2(["Refused: the sales take more than was received"])
  d1 -->|"Yes"| sys1[["One money receipt is booked, cash or bank account"]]
  sys1 --> sys2[["Each chosen sale is settled, once"]]
  sys2 --> sys3[["Money left over stays as the customer advance"]]
  sys3 --> e1(["Receipt saved, print or e-mail it from the Payments tab"])

Statuses (I-17)

Status Meaning
Active In good standing
Warning The due reached the warning share of the credit limit (currently 80 percent, to be confirmed)
Overdue A due is past its day
Inactive The customer is switched off and cannot be sold to

Buttons and actions

Button What it does Who sees it
Add customer Opens the customer form of the clients area clients.create
Receive payment Opens I-18 customers.receive
Statement Opens the customer statement of the billing side customers.print
New sale Opens I-34 with the customer filled in sales.create
On Payments tab: print, e-mail, Cancel (with a reason) Print the receipt; mail it; undo a receipt that settled sales (the sales owe again) customers.print, customers.cancel

If something goes wrong - "Type the amount received (more than zero, with at most two decimals)."; ":number owes only :due."; "The sales take :applied but only :amount was received."; "That sale does not owe anything (or it is not this customer's)."; "The customer's balance changed while this was being saved. Please save it again."

Note - a customer's phone and e-mail are hidden on the account page. The WhatsApp buttons are switched off. The Dev Pack says a payment can also be received at the counter: that is key F7 Receive due (6.3), which takes cash, card, mada or STC Pay on the open shift.

6.12 Open your online store: storefront, places and coupons (I-13)

Purpose - show your company in the public Parts store: its name, the cities and ways of delivery, a return window, and coupons. Who - Store manager and Store (storefront.view, storefront.update, storefront.create, storefront.delete); a company with an approved parts supplier or equipment provider activity.

Steps - storefront

  1. Open Store > Online shop > Storefront. The page has two tabs: Storefront and Coupons.
  2. Fill Store name (English) and Store name (Arabic), add a Logo (JPG or PNG), choose the Cities served (leave empty to deliver anywhere).
  3. Tick the Delivery options (Own delivery, Courier, Store pickup; Traincu carrier is offered only when switched on).
  4. Type Delivery fee, Free delivery from and Return window (days). When you chose cities, a Fee for a city can be typed for each.
  5. Press Save storefront.
  6. In Sell online from tick the stock places whose stock buyers may see, then press Save places.
  7. Publish your products on the product page (17). Then press Open the store.

Steps - coupons

  1. Open the Coupons tab and press Coupon (the plus button).
  2. Type the Coupon code (at least 3 letters or digits, capitals), the Type (Percentage or Amount), the Coupon value, Order from (minimum), Start day, End day and Number of uses.
  3. Press Save. On the list use the pencil to edit, the switch to turn it Switched off or on, and the bin to delete a coupon nobody has used.
flowchart TD
  s1(["Store manager opens Storefront"]) --> a1["Fill names, logo, cities, delivery and return window"]
  a1 --> a2["Press Save storefront"]
  a2 --> a3["Tick Sell online from places and Save places"]
  a3 --> a4["Publish products on the product page"]
  a4 --> a5["Press Open the store"]
  a5 --> d1{"Company active and verified?"}
  d1 -->|"No"| e2(["Refused: the company is not active or not verified yet"])
  d1 -->|"Yes"| d2{"Approved parts supplier or equipment activity, not restricted?"}
  d2 -->|"No"| e3(["Refused: the activity is restricted or not approved"])
  d2 -->|"Yes"| d3{"Active ZATCA device?"}
  d3 -->|"No"| e4(["Refused: connect a ZATCA device first"])
  d3 -->|"Yes"| sys1[["Store is Open, products appear in the Parts store"]]
  sys1 --> a6["Optional: make coupons"]
  a6 --> e1(["Buyers find your published products"])

Fields

Field What to enter Rules
Store name (English), (Arabic) The public name Up to 120 characters
Logo JPG or PNG Replaces the old one
Cities served One or more cities Empty means everywhere; named cities mean those cities only
Delivery options Tick boxes A buyer only sees what you offer
Delivery fee, Free delivery from, Fee for a city Amounts VAT is added by the system
Return window (days) 0 to 365 The days the buyer has to send goods back after delivery
Coupon code Capitals, digits, - and _ Unique among your coupons
Coupon value Percentage (at most 90) or an amount off your part of the cart, VAT excluded Above zero

Buttons and actions

Button What it does Who sees it
Save storefront Saves the form; never opens the store storefront.update
Open the store / Close the store Lists or removes you in the Parts store; your products keep their published mark storefront.update
Save places Chooses the stock places the store sells from storefront.update
Coupon (plus button), edit, Switch off, delete Coupon management storefront.create / update / delete
Print Prints the storefront card storefront.view

Coupon statuses - Active, Switched off, Not started, Ended, Used up. A coupon that has been used cannot be deleted: switch it off.

If something goes wrong - the red notes on the right ("Your company has not been verified yet. The online store opens once Traincu has verified it.", "Selling online needs an active ZATCA device, so that every order can be invoiced. Connect one first."); "A coupon that has been used cannot be deleted. Switch it off instead."; "A percentage coupon can take 90 % off at most."; "You already have a coupon with this code."

6.13 Work an online order: pack, dispatch, deliver, cancel (Online orders)

Purpose - a buyer paid for parts in the Parts store; you pack and send them. Who - Store keeper and Store manager (online_orders.view, online_orders.update, online_orders.print; cancelling needs online_orders.cancel). The page is for a company with an approved parts supplier or equipment provider activity. It is the page the Online rows of Sales orders open.

Steps

  1. Open Store > Sales & customers > Online orders. The list shows Order, Placed, Customer, Delivery, Total, Paid with and Stage. Filter by Stage and Delivery.
  2. When a buyer pays you get a notice "New online order ...". Open the order. You see Items, Deliver to and the Order card.
  3. The Receiver, Phone, City and Address show only once the order is paid.
  4. Press Mark as packed when the goods are ready (optional).
  5. To send, press Dispatch and invoice (for pickup the button reads Hand over and invoice). For a Courier delivery type the Courier and the Tracking number first.
  6. When the goods reach the buyer, press Mark as delivered (the buyer can also press I received it).
  7. If you cannot fulfil it, type Say why in Cancel this order and press Cancel order.
flowchart TD
  b1[/"Buyer pays the order"/] --> sys1[["Order accepted: Paid, vendor sale appears, vendor is told"]]
  sys1 --> a1["Open the online order"]
  a1 --> a2["Mark as packed, optional"]
  a2 --> d1{"Can you fulfil it?"}
  d1 -->|"No"| a3["Cancel order with a reason"]
  a3 --> sys2[["Order cancelled, stock released, refund is due to the buyer"]]
  d1 -->|"Yes"| d2{"Courier delivery?"}
  d2 -->|"Yes"| a4["Type courier and tracking number"]
  d2 -->|"No"| a5["Press Dispatch and invoice"]
  a4 --> a5
  a5 --> sys3[["Hold ends, exact pieces leave stock, tax invoice issued, books posted"]]
  sys3 --> d3{"Everything accepted?"}
  d3 -->|"No"| e2(["All taken back: stock changed or the invoice was refused"])
  d3 -->|"Yes"| sys4[["Order Shipped, buyer is told, invoice shows with QR"]]
  sys4 --> a6["Mark as delivered, or the buyer presses I received it"]
  a6 --> e1(["Order Delivered, return window starts"])
stateDiagram-v2
  state "Placed" as placed
  state "Paid" as paid
  state "Accepted on credit" as credit
  state "Packed" as packed
  state "Shipped" as shipped
  state "Delivered" as delivered
  state "Cancelled" as cancelled
  [*] --> placed : Buyer places the order
  placed --> paid : Payment arrives
  placed --> credit : Approved company uses its credit line
  placed --> cancelled : Payment window ends or buyer leaves
  paid --> packed : Mark as packed
  credit --> packed : Mark as packed
  paid --> shipped : Dispatch and invoice
  credit --> shipped : Dispatch and invoice
  packed --> shipped : Dispatch and invoice
  paid --> cancelled : Vendor cancels, refund due
  credit --> cancelled : Vendor cancels
  packed --> cancelled : Vendor cancels, refund due
  shipped --> delivered : Mark as delivered or I received it
  delivered --> [*]
  cancelled --> [*]

Stages

Stage Meaning What you can do next
Placed The buyer placed the order; it waits for payment Wait; it can be cancelled
Paid Money arrived Mark as packed, Dispatch and invoice, Cancel order
Accepted on credit An approved company ordered on its credit line Same as Paid
Packed Goods ready Dispatch and invoice
Shipped Left you; stock out, invoice issued Mark as delivered
Delivered Arrived Returns and warranty may follow (6.14, 6.15)
Cancelled Not fulfilled Nothing

What happens next

If something goes wrong - "This order has not been paid yet: it cannot be dispatched."; "The stock changed since the order was paid: there are not enough free pieces to dispatch it. Cancel the order or put the stock right first."; "A courier delivery needs the courier's name and tracking number."; "This order has left you: the goods are with the buyer. It is put right with a credit note and a return, not cancelled."; "Say why the order is cancelled."

6.14 Decide an online return (Online returns)

Purpose - a buyer asked to send goods back from a delivered online order (O-06). You approve or refuse, receive the goods, then refund or replace. Who - Store keeper and Store manager (online_returns.view, online_returns.update). Money amounts show only with the money flag.

Steps

  1. Open Store > Sales & customers > Online returns. Filter by Status, Type and Reason. Open a return with Open.
  2. Read The request (order, customer, type, reason, what the buyer wrote, photos), Money and The goods (with the serial or DOT the buyer typed and whether it is In your register).
  3. While it is Pending: Approve (an optional word for the buyer and, for a return of the buyer's own choice, a Restocking fee up to the cap) or Refuse (words the buyer reads are required).
  4. When approved and the goods are in your hands, choose for each line Back on the shelf, Damaged stock or Kept by the buyer, then press Goods received.
  5. For a refund press Give the money back: this issues the credit note, takes the sale back in your books and asks Finance to give the money back. For a replacement press Send the replacement (type the serial or lot to send for tracked parts).
flowchart TD
  b1[/"Buyer sends a return request"/] --> sys1[["Return PENDING, vendor is told"]]
  sys1 --> a1["Open the return and read the request"]
  a1 --> d1{"Accept the return?"}
  d1 -->|"No"| a2["Refuse with words the buyer reads"] --> e2(["Return Rejected, buyer is told"])
  d1 -->|"Yes"| a3["Approve, optional fee on a change of mind"]
  a3 --> b2[/"Buyer sends the goods back"/]
  b2 --> a4["Per line: shelf, damaged or kept by buyer"]
  a4 --> a5["Press Goods received"]
  a5 --> d2{"Refund or replacement?"}
  d2 -->|"Refund"| a6["Press Give the money back"]
  a6 --> sys2[["Credit note issued, sale reversed in the books, refund asked of Finance once"]]
  sys2 --> f1[/"Finance approves and pays the refund"/]
  d2 -->|"Replacement"| a7["Press Send the replacement"]
  a7 --> sys3[["Replacement leaves free stock, cost goes to the books"]]
  f1 --> e1(["Return Resolved, buyer is told"])
  sys3 --> e1
stateDiagram-v2
  [*] --> Pending : Buyer asks
  Pending --> Approved : Approve
  Pending --> Rejected : Refuse
  Pending --> Cancelled : Buyer takes it back
  Approved --> Resolved : Refund or replacement done
  Rejected --> [*]
  Cancelled --> [*]
  Resolved --> [*]

Statuses

Status Meaning What you can do next
Pending Waits for you Approve or Refuse
Approved You said yes Goods received, then Give the money back or Send the replacement
Rejected You said no, with words Nothing
Resolved Money back or replacement sent Nothing
Cancelled The buyer took it back Nothing

Refund at Finance - after Resolved the page shows Refund at finance: Waiting for finance, Approved by finance, Paid back to the buyer, Refused by finance or "The provider could not pay it: finance tries again". Finance approves and pays; this screen never moves money by itself. A restocking fee is never kept when the fault is yours (wrong item, damaged, not working), and the cap is currently 0 (no fee), to be confirmed.

If something goes wrong - "Say why you refuse: the buyer reads it."; "Approve the request before the goods are received."; "Receive the goods first, and say what became of each line."; "The restocking fee cannot be more than :percent% of the goods."; "This return is settled already."; "The buyer asked for a replacement, not a refund."

6.15 Decide a warranty claim (I-12)

Purpose - check a serial or DOT against the sale date, decide, pass the claim to your supplier and send a replacement from stock. Who - Store keeper and Store manager (warranty.view, warranty.create, warranty.update, warranty.print).

Steps

  1. Open Store > Online shop > Warranty claims. Filter by Brand and Status. Claims buyers make on an online order arrive here as Pending; the buttons Online returns and Warranty claims at the top jump between the two lists.
  2. To start a claim for a customer who bought at the counter or by phone press + Claim, or Start warranty claim on a serial's page (17). Choose the Part (or it is filled from the serial), type the Serial or DOT number and Sale number, the Customer, What is wrong, add Photos, and press Make the claim.
  3. Open the claim. The warranty card says Inside the warranty, Outside the warranty or Could not be checked, with Sold on, Warranty ends and Checked by (the serial register, or the order's delivery day plus the warranty months).
  4. Approve: choose Replace or Repair and type a word. A claim outside the warranty needs your reason. Or Refuse with words the customer reads.
  5. Pass to the supplier: type the Supplier and the Supplier ref and press Save the reference.
  6. When approved press Send the replacement (type the serial or lot that goes out for a tracked part) or Finish the claim (repair).
flowchart TD
  s1(["Claim arrives or you press Claim"]) --> sys1[["Warranty checked by serial or order delivery day"]]
  sys1 --> d1{"Inside the warranty?"}
  d1 -->|"Could not be checked"| a1["Decide by hand"]
  d1 -->|"Yes or No"| a1
  a1 --> d2{"Accept the claim?"}
  d2 -->|"No"| a2["Refuse with words"] --> e2(["Claim Rejected, customer is told"])
  d2 -->|"Yes"| d3{"Outside the warranty?"}
  d3 -->|"Yes"| a3["Type why you accept it anyway"]
  d3 -->|"No"| a4["Choose Replace or Repair"]
  a3 --> a4
  a4 --> a5["Press Approve"]
  a5 --> a6["Pass to the supplier with a reference"]
  a6 --> d4{"Replace or repair?"}
  d4 -->|"Replace"| a7["Send the replacement"]
  a7 --> sys2[["Replacement leaves stock naming the serial or lot, cost to the books"]]
  d4 -->|"Repair"| a8["Finish the claim"]
  sys2 --> e1(["Claim Resolved, customer is told"])
  a8 --> e1

Statuses - Pending (waits for you), Approved (you said yes: pass to the supplier, then send or finish), Rejected, Resolved, Cancelled (the buyer took it back).

If something goes wrong - "That serial number is not in your register."; "Only a unit that was sold can have a warranty claim."; "This claim is outside the warranty. Say why you accept it anyway."; "Give the reference the supplier gave this claim."; "Approve the claim first."; "Nothing says when this part was sold: decide by hand."

6.16 Read your store payouts (I-14)

Purpose - see what the online store sold, what Traincu kept, what went back to buyers, and the net you are paid. Sales at the counter and to businesses are paid to you directly and are not here. Who - Finance (store_payouts.view, store_payouts.export, store_payouts.print, money flag).

Steps

  1. Open Store > Online shop > Store payouts.
  2. Set Period from, Period to and Status, then press Filter.
  3. Read each statement: Statement, Period, Online sales, Commission, Refunds, Net, Status.
  4. Press Download statement for one statement as a PDF, or use Excel, CSV or PDF above the list for the whole list.
flowchart TD
  b1[/"Buyer pays an online order"/] --> sys1[["Money is the vendor's, minus the commission rule"]]
  sys1 --> sys2[["Commission is kept by Traincu at the time of payment"]]
  sys2 --> sys3[["A refund after a return reduces the vendor's share"]]
  sys3 --> sys4[["Finance builds the payout statement of the period"]]
  sys4 --> a1["Vendor opens Store payouts"]
  a1 --> a2["Filter by period and status"]
  a2 --> a3["Download the statement"]
  a3 --> e1(["Net equals online sales minus commission minus refunds"])

Statuses - Released (can be paid out), Held (kept back, for example during a dispute), Pending (not yet released). Money rules, wallet and payouts are explained in 16 - Finance and accounting; the commission rule is set by Traincu staff.

If something goes wrong - "Payout statements are not available yet." (finance side not connected); "No payout statement matches."; a role without the money flag gets an access refusal.

6.17 Find parts in the store and open a product (O-01, O-02)

Purpose - anyone can search the Parts store from verified vendors, without signing in. Who - everyone. Signing in is needed only for Choose my vehicle, the cart and checkout.

Steps - search (O-01)

  1. Open /{language}/store. Type words in Search (for example "Oil filter, brake pad") and/or a Part / OEM number, then press Search.
  2. On the side use the filters: My vehicle (make, model, year and a Fitment choice), Category, Brand, Origin, Original / alternative, Price (Fixed price, Fixed price or quote, Price on request) and Vendor. Each active filter is a chip you can remove.
  3. Choose my vehicle (signed in) lists your own trucks; picking one fills the make, model and year. Request a part by photo opens the parts request page of the services marketplace (13 - Services marketplace).
  4. Sort by Best match, Newest, Price: low to high or Price: high to low.
  5. Each card shows the photo, Original/Alternative, whether it fits your vehicle, the brand and part number, the name, the vendor (with a green check when verified) and city, the price (or Price on request) and the stock state.
  6. Press the cart button on a card to add a part with a public price in one tap, or open the product.

Steps - product (O-02)

  1. Read the buy box: price, Wholesale from N pieces line, stock, quantity, and who sells it (Sold by), Delivery and Return window.
  2. Choose a Size when the part has sizes. Press Add to cart.
  3. For a part with no public price press Request quote; for a part with both a price and a quote option the buttons are Add to cart and Request bulk quote.
  4. Read the sections Overview, Fits these vehicles, Wholesale prices, Reviews and Vendor.
flowchart TD
  s1(["Buyer opens the Parts store"]) --> a1["Search words or part number, set filters"]
  a1 --> d1{"Any part found?"}
  d1 -->|"No"| a2["Fewer filters, or Request a part by photo"] --> a1
  d1 -->|"Yes"| a3["Open a product"]
  a3 --> d2{"What does the pricing mode allow?"}
  d2 -->|"Fixed price"| a4["Add to cart"]
  d2 -->|"Quote only"| a5["Request quote"]
  d2 -->|"Both"| a6["Add to cart, or Request bulk quote"]
  a4 --> d3{"Signed in?"}
  a6 --> d3
  d3 -->|"No"| a7["Sign in, then the part is put in the cart"]
  d3 -->|"Yes"| sys1[["Part is in the cart"]]
  a7 --> sys1
  a5 --> e2(["Quote request goes to the vendor"])
  sys1 --> e1(["Continue to the cart"])

What a price and a stock mean

If something goes wrong - "The parts store is not open yet. Please come back soon." (no vendor is open); "No parts match your search. Try fewer filters."; "Choose a size first."; "This size is out of stock."; "We do not have this make in the vehicle list yet ... Choose the make and model by hand." (Choose my vehicle); "This vehicle is not one of yours."

6.18 Fill the cart, check out and pay (O-03, O-04)

Purpose - turn the cart into one order per vendor, hold the stock, and pay each vendor. Who - any signed-in login. A company member needs a role that may see prices. A personal account can buy too.

Steps - cart (O-03)

  1. Open Cart (the cart link of the store, /{language}/cart). Lines are grouped by vendor: each vendor ships and invoices its own part.
  2. Change a quantity and press the tick (0 removes the line), or press the bin to Remove.
  3. Open Coupon, type the Coupon code and press Apply coupon. A coupon belongs to one vendor and takes its share off that vendor's part. Take off removes it.
  4. Read the summary (Subtotal (excl. VAT), Coupons, VAT, Total). Press Checkout.

Steps - checkout (O-04)

  1. Under Buyer choose Personal or Company. Type the Name on the invoice. A company types the VAT number (company) and its national address; it gets a standard tax invoice, a person a simplified one.
  2. Under Deliver to type the Receiver's name, Receiver's phone, City and Address.
  3. For each vendor choose Delivery or pickup and read the Delivery fee. Choose the city first and press Update totals to see the fee.
  4. Under Payment choose mada, Apple Pay, STC Pay, or Credit line (only for an approved company with a credit line). Type a Coupon if you have one.
  5. Press Place order.
  6. With one vendor you go straight to the payment: the payment provider's page opens. With several vendors you pay each order one after the other from My orders.
flowchart TD
  s1(["Buyer opens the cart"]) --> a1["Change quantities, add a coupon"]
  a1 --> d1{"Any line cannot be ordered?"}
  d1 -->|"Yes"| a2["Read the note, remove or change the line"] --> a1
  d1 -->|"No"| a3["Press Checkout"]
  a3 --> a4["Choose Personal or Company, address, delivery, payment"]
  a4 --> a5["Press Place order"]
  a5 --> sys1[["Every figure is worked out again from the cart"]]
  sys1 --> d2{"Stock of every line can be held?"}
  d2 -->|"No"| e2(["Nothing is ordered, the page says which line"])
  d2 -->|"Yes"| sys2[["One order per vendor under one order code, stock held for 15 minutes"]]
  sys2 --> d3{"Payment method?"}
  d3 -->|"Credit line"| sys3[["Accepted at once on the company credit line"]]
  d3 -->|"mada, Apple Pay, STC Pay"| a6["Pay each vendor order on the provider's page"]
  a6 --> d4{"Paid before the window ends?"}
  d4 -->|"No"| sys4[["Orders cancelled, stock given back"]]
  d4 -->|"Yes"| sys5[["Order accepted, vendor told"]]
  sys3 --> e1(["Follow it on My orders"])
  sys5 --> e1
  sys4 --> e3(["Place the order again"])
sequenceDiagram
  participant B as Buyer
  participant S as Traincu store
  participant P as Payment provider
  participant V as Vendor
  B->>S: Place order
  S->>S: Hold the stock of every line
  S->>B: One order per vendor, pay each
  B->>P: Pay the order of vendor A
  P->>S: Payment confirmed
  S->>V: Order paid, pack it
  V->>S: Dispatch and invoice
  S->>B: Order on its way, invoice with QR
  B->>S: I received it

Fields (checkout)

Field What to enter Rules
Buyer Personal or Company Required
Name on the invoice Your name or the company's Required
VAT number (company) 15 digits, starting and ending with 3 Required for a company
National address fields Building number, street, district, city, postal code, additional number For a company's standard tax invoice
Receiver's name, Receiver's phone, City, Address Who receives the goods and where Required
Delivery or pickup A choice for each vendor Only what the vendor offers; the vendor may not deliver to that city
Payment mada, Apple Pay, STC Pay, Credit line The credit line needs an approved company with a limit
Coupon A code One vendor's code

What happens next - the stock of every line is held all or nothing across vendors. You have a payment window (currently 15 minutes for a card, mada, Apple Pay or STC Pay; 48 hours for a bank transfer, both to be confirmed) before unpaid orders are cancelled and the stock goes back. If the payment provider is switched off or did not answer, the payment page says so and offers Pay by bank transfer instead: you get a reference to write on the transfer, and the order is confirmed when Traincu sees the money. A cancelled checkout gives the stock back: Cancel checkout on the order page.

If something goes wrong - "Your cart is empty."; "Choose the company you buy for first." / "Choose whether you buy as a person or as a company."; "A company needs a valid VAT number: 15 digits, starting and ending with 3."; "Choose the city the goods go to."; ":vendor does not deliver this way to that city."; "This product is sold with a serial number or a lot: ask the vendor for it instead of ordering it online."; "Placing an order needs a role that may see prices. Ask a colleague who does, or ask the vendor for a quote."; "Your company has no credit line it can use."; "Ordering online is not available yet."; "Some of the orders of this cart are paid already. Pay the others, or wait until they expire, before you order again."; "This order cannot be paid any more."

6.19 Follow an order, say it arrived, return, claim and rate (O-05, O-06)

Purpose - see where each vendor's part is, pay what is open, confirm delivery, and ask for a return or a warranty claim. Who - the buyer who placed the order (any signed-in login, including a personal account). Another buyer's order is a plain "not found".

Steps - follow (O-05)

  1. Open My orders (/{language}/my/orders). The list shows Order, Placed, Vendors, Total, Paid with and Status. Open an order.
  2. At the top you see the order code (for example ORD-2611-0418) with the number of vendors, its status, Placed, Paid and Total. Press Print for a PDF.
  3. Each vendor has a block with its stage and four parts: Shipments (Delivery, Packed, Shipped, Delivered, Courier, Tracking number), Items, Invoices (the invoice number, type, VAT, ZATCA state and its QR code) and Help.
  4. If a vendor order is unpaid press Pay :amount.
  5. When the goods arrive press I received it.
  6. The page shows Return window until a date; after delivery the buttons Return or warranty and Rate appear.

Steps - return or warranty (O-06)

  1. Press Return or warranty. Choose the Item, the Type (Return or Warranty claim), How many pieces, the Serial or DOT number (on the battery or the tyre wall), the Reason, a note in Tell the vendor more, up to 6 Photos (JPG or PNG, 5 MB each), and Refund or replace.
  2. Press Submit request. Below the form you see Your requests on this order, with each status, "The vendor says" answer and Take the request back (while it waits).

Steps - rate (review)

  1. Press Rate. For each delivered part choose a Score from 5 to 1 and type Your words, then Publish review. Your first name is shown with it.
flowchart TD
  s1(["Buyer opens My orders"]) --> a1["Open the order"]
  a1 --> d1{"A vendor order unpaid?"}
  d1 -->|"Yes"| a2["Press Pay and finish the payment"] --> a1
  d1 -->|"No"| a3["Read Shipments, Items, Invoices"]
  a3 --> d2{"Goods arrived?"}
  d2 -->|"No"| a4["Wait for dispatch and the tracking number"] --> a3
  d2 -->|"Yes"| a5["Press I received it"]
  a5 --> d3{"Problem with a part?"}
  d3 -->|"No"| a6["Press Rate and publish a review"]
  d3 -->|"Yes"| a7["Press Return or warranty and Submit request"]
  a7 --> v1[/"Vendor decides, see 6.14 and 6.15"/]
  v1 --> d4{"Answer"}
  d4 -->|"Approved"| a8["Send the goods back, then refund or replacement"]
  d4 -->|"Refused"| a9["Read the vendor's words"]
  a6 --> e1(["Review appears on the product page"])
  a8 --> e2(["Request Resolved"])

Rules

If something goes wrong - "You can ask to send goods back once the order has been delivered."; "The return window of this order ended on :date." (a warranty claim can still be made); "This order was cancelled: there is nothing to send back."; ":item: only :left of the :sold can still be sent back."; "A serial number or DOT code is up to 60 characters."; "Choose why the goods come back."; "You can review a part after it has been delivered to you."; "You have already reviewed this part."

7. Screen by screen

I-09 - POS sell screen

Address /app/store/pos (route store.pos; the Dev Pack draws /pos). Who - Cashier, Store manager (pos.sell, money flag, parts supplier). Described in 6.3. What you see - a full-screen page with no side menu. Top bar: the register and place, "shift open :time", your name and the links Shifts, Held sales, Advance orders, Leave the counter. Left: the scan or search box, the category buttons and the product tiles (name, price with VAT, stock). Right: the customer bar, the cart, the totals (Discount, VAT (included), Advance adjusted, Added to due, Change, Bill total, Order discount %), the payment lines and buttons. Foot: keys F3 Customer, F4 Recall (n), F5 Return / refund, F6 Discount, F7 Receive due, F10 Cash in/out, F11 Drawer, F12 Close shift. What you can do - sell, split the payment, hold, recall, receive a due, ask a manager, jump to returns, cash and the shift. Actions Pay and print and Hold sale. With no open shift the page sends you to I-21. Shortcut F9 pays.

Note - offline mode is not built (6.3 note). Card payments are recorded by typing the terminal's approval code.

I-10 - POS shift

Address /app/store/pos/shifts/{session} (route store.pos.shifts.show); /app/store/pos/shift (store.pos.shift) opens your own open shift; the list is /app/store/pos/shifts (store.pos.shifts). Who - the shift's cashier, or a manager with pos.view (all shifts). Described in 6.7. What you see - eight tiles (Opening cash, Cash sales, Due collected, Cash refunds, Supplier paid from drawer, Expected cash, Counted cash, Difference), the bar chart Sales by hour, the doughnut Payment methods, the table Sales of this shift (with a print button for each receipt), Cash movements, an orange warning for held sales, and the Close shift card with the drawer count. What you can do - Close shift, Print Z report (pos.print, 80 or 58 mm; X report while open), print any receipt. The list Shifts has search, filters Register, Cashier, Status, Date, an Open shift button and the Excel/PDF export.

I-11 - Sales orders (all channels)

Address /app/store/orders (route store.orders); one sale /app/store/orders/{order} (store.orders.show). Who - sales.view and the money flag. Described in 6.10. What you see - one list for counter sales, phone, WhatsApp, B2B and online sales, with columns Order, Channel, Customer, Date, Total, Paid, Due, Status; filters Channel, Status, Date, Customer; totals row. The sale page shows the tiles Total, Paid, Due, Invoice, the Lines, How it was paid, Details and, for a quote, the accept and cancel cards. What you can do - B2B order (opens I-34), export (C-19), open a sale, Mark delivered, Payment link, E-mail quote, Print, History.

I-12 - Warranty claims

Address /app/store/warranty (route store.warranty); /app/store/warranty/create (store.warranty.create); one claim /app/store/warranty/{claim} (store.warranty.show). Who - warranty.*, parts supplier. Described in 6.15. What you see - the list with Claim, Serial / DOT, Item, Customer, Supplier ref, Status; filters Brand, Status. The claim page: The claim, The warranty (inside, outside or could not be checked), the Approve / Refuse cards, Pass to the supplier, Send the replacement or Finish the claim. What you can do - + Claim (new), approve, refuse, pass to supplier, resolve, print, view the photos (store.warranty.file).

I-13 - Storefront and coupons

Address /app/store/storefront (route store.storefront), coupons /app/store/storefront/coupons (store.coupons), /new (store.coupons.create), /{coupon}/edit (store.coupons.edit). Who - storefront.*; parts supplier or equipment provider. Described in 6.12. What you see - on the right, the Your store card (Open or Closed, and why the store cannot open) and Sell online from; on the left the form. The Dev Pack puts the coupon fields on the same page; the real screen has a second tab Coupons with its own list (Code, Discount, Order from, Valid, Used, Status; filters Type and Status) and form. What you can do - Save storefront, Open the store / Close the store, Save places, make, edit, switch and delete coupons, Print the card.

I-14 - Store payouts

Address /app/store/payouts (route store.payouts); download /app/store/payouts/{statement}/download (store.payouts.download). Who - store_payouts.view, money flag. Described in 6.16. What you see - a period/status filter and the table Statement, Period, Online sales, Commission, Refunds, Net, Status (Released, Held, Pending). What you can do - Download statement (PDF), export Excel, CSV, PDF.

I-15 - Sales return and refund

Address /app/store/pos/returns/new (route store.pos.returns.create); list /app/store/pos/returns (store.pos.returns); one return /app/store/pos/returns/{return} (store.pos.returns.show). Who - pos.refund, money flag. Described in 6.9. What you see - Find receipt, the sale's lines (Sold, Can come back, Returned, Condition, Serial / DOT check), Reason and refund, Terminal refund code boxes and Manager approval. The list has columns Return, Credit note, Invoice, Customer, Reason, Refunded as, Goods, Refund, Date; filters Reason, Refunded as, Date, Customer. What you can do - Confirm return; on a return: Print (the credit note, through the print engine), Sell replacement (for an exchange), History.

Note - the Dev Pack's "Exchange: add replacement items" is done in two steps: the exchange is saved as store credit, then Sell replacement opens the counter with the customer filled in.

I-17 - Customer accounts (due and advance)

Address /app/store/customers (route store.customers). Who - customers.view, money flag. Described in 6.11. What you see - columns Customer, Credit limit, Due, Advance, Oldest due, Status (Active, Warning, Overdue, Inactive); filters Balance, Aging, Branch, Status. A customer's phone and e-mail are not on the list. What you can do - Add customer, Receive payment, Statement, export.

I-18 - Receive customer payment

Address /app/store/customers/{client}/receive (route store.customers.receive). Who - customers.receive, money flag. Described in 6.11. What you see - the Payment card (Current due, Advance balance, Amount received, Method, Bank account (transfer), Reference, Notes) and Allocate to (Oldest bills first or Choose bills, with the table of sales that owe). What you can do - Save receipt. Printing, e-mail and the WhatsApp button (off) are on the Payments tab.

I-21 - POS shift open

Address /app/store/pos/shift/open (route store.pos.shift.open). Who - pos.sell, money flag. Described in 6.2. What you see - Register card, Opening cash count, Previous shift difference, ZATCA device and Printer and drawer check. What you can do - Open shift; managers also see Registers.

I-22 - Held sales

Address /app/store/pos/held (route store.pos.held). Who - pos.sell (own); pos.view sees all. Described in 6.4. What you see - columns Held sale, Customer, Items, Total, Held for, Register, Cashier, Status (Waiting, Pending); filters Register, Cashier, Status. What you can do - Recall, Discard (with a reason), export.

I-23 - Advance order (deposit)

Address /app/store/pos/advance/new (route store.pos.advance.create); list /app/store/pos/advance (store.pos.advance); one order /app/store/pos/advance/{advance} (store.pos.advance.show). Who - pos.advance, money flag. Described in 6.8. What you see - the form (Customer and day, Items, Stock and supplier, Deposit). The list: Order, Customer, Ready by, Total, Deposit, Balance, Status; filters Status, Ready by, Customer. The order page: Items with Held for the customer / Waiting / Not reserved, totals, links to the purchase order and the sale. What you can do - Save advance order, Order pickup, Cancel the order, Print, History.

I-24 - Advance order pickup

Address /app/store/pos/pickup (route store.pos.pickup). Who - pos.advance, money flag. Described in 6.8. What you see - Find order, the items with serial or lot boxes, Order total, Deposit already paid, Balance to pay, Payment lines. What you can do - Deliver and print. The Dev Pack allows a QR; the real search takes the order number, the customer's name or mobile.

I-25 - Cash in and out

Address /app/store/pos/cash (route store.pos.cash). Who - pos.cash, money flag. Described in 6.6. What you see - the New movement form and the table Movements of this shift. What you can do - Save movement.

I-26 - Discount override approval

Address /app/store/pos/discount-approval (route store.pos.approvals). Who - pos.approve (manager) and money flag. Described in 6.5. What you see - one card per waiting request (Cashier, Requested discount, Cashier limit, Reason, Note (needed to refuse)) and, below, the record of every request (Request, Sale, Cashier, Discount %, Amount, Cashier limit, Reason, Manager, Via PIN or App, Status, Date). What you can do - Approve, Reject. The manager's phone does the same through the app.

I-33 - Customer store credit and ledger

Address /app/store/customers/{client} (route store.customers.show). Who - customers.view, money flag. Described in 6.11. What you see - tiles Credit limit (with Room left), Due, Advance, Store credit, Last payment, Oldest due; and tabs Ledger (running ledger with opening and closing balance, last 90 days by default), Store credit (history with Kind, Source: Sale, Money receipt, Return, Payment link), Sales, Returns, Payments. What you can do - Receive payment, New sale, Statement, print or e-mail a receipt, Cancel a receipt that settled sales.

I-34 - New sale (phone, WhatsApp or B2B)

Address /app/store/orders/new (route store.orders.create). Who - sales.create, money flag. Described in 6.10. What you see - Items, Payment and the Order card (Channel, Customer, Walk-in name, Price list, Goods leave from, Delivery, Delivery note, Notes). What you can do - Create order, Send quote.

Address /{language}/store (route public.store). Who - everyone, no sign-in. Described in 6.17. What you see - the title Parts store, a Search box and Part / OEM number, the filter panel (My vehicle, Category, Brand, Origin, Original / alternative, Price, Vendor), the sort, filter chips and a grid of product cards with the stock state. The Dev Pack draws a table; the real page is a shop grid. What you can do - search, filter, sort, Choose my vehicle, Request a part by photo, open a product, add to cart.

O-02 - Product detail

Address /{language}/store/{words}-{id} (answered by the store's router; no route name). Who - everyone. Described in 6.17. What you see - gallery, tags (original or alternative, Fits your vehicle), price, wholesale line, stock, quantity, Sold by, Delivery, Return window, then Overview, Fits these vehicles, Wholesale prices, Reviews, Vendor. What you can do - Add to cart, Request quote or Request bulk quote, link to More parts from this vendor.

O-03 - Cart

Address /{language}/cart (route store.cart). Who - any signed-in login. Described in 6.18. What you see - lines grouped by vendor with photo, price, stock state and a note when the price changed; the summary and the Coupon box. What you can do - change quantity, Remove, Apply coupon, Take off, Checkout, Keep shopping. After sign-in the page /{language}/cart/resume (store.cart.resume) puts in the cart the part you chose before signing in. The Dev Pack's Vendor filter is not needed: the cart is already grouped.

O-04 - Checkout

Address /{language}/checkout/store (route store.checkout); pay /{language}/checkout/store/pay/{payment} (store.checkout.pay). Who - any signed-in login whose role may see prices. Described in 6.18. What you see - the three steps Cart, Checkout, Payment; cards Buyer, Deliver to, one block per vendor with its delivery choice and total, and the Payment summary. What you can do - Place order, Update totals. The Dev Pack's "saved address / pin" is not built: you type the city and address.

O-05 - Order tracking

Address /{language}/my/orders/{code} (route store.orders.track); list /{language}/my/orders (store.orders.mine); print /{language}/my/orders/{code}/print (store.orders.print). Who - the buyer. Described in 6.19. What you see - code and number of vendors, status, Placed, Paid, Total, one block per vendor with Shipments, Items, Invoices (with the ZATCA QR code) and Help. What you can do - Pay, I received it, Cancel checkout, Print, Return or warranty, Rate.

O-06 - Return or warranty request

Address /{language}/my/orders/{code}/return (route store.orders.return); review /{language}/my/orders/{code}/review (store.reviews.create). Who - the buyer. Described in 6.19. What you see - the form (Item, Type, How many pieces, Serial or DOT number, Reason, Tell the vendor more, Photos, Refund or replace) and Your requests on this order. What you can do - Submit request, Take the request back, Take the claim back.

Other pages without a Dev Pack code

Registers (/app/store/pos/registers, store.pos.registers) - pos.manage. A form and a list (Register, Place, Receipt prefix, Next receipt, ZATCA device, Status, filter Status: Active / Switched off). See 6.1.

Manager PIN (/app/store/pos/pin, store.pos.pin) - pos.approve. Set your PIN or Change your PIN. Open it from Store > Counter (POS) > Manager PIN.

Counter receipt (/app/store/pos/receipt/{order}, store.pos.receipt) - pos.sell. The receipt page for an 80 or 58 mm roll: shop header, receipt number, register, cashier, lines, Subtotal (before VAT), VAT, Total, payments, Change, QR, Thank you. It prints at once when opened alone; the second print is marked COPY.

Z report (/app/store/pos/shifts/{session}/z, store.pos.shifts.z) - pos.print. The printed shift summary.

Advance order list and page, Sales returns list and page - see I-23 and I-15.

Online orders (/app/store/online-orders, store.online; page store.online.show; PDF store.online.print) - online_orders.view / print. See 6.13.

Online returns (/app/store/online-returns, store.customer-returns; page store.customer-returns.show; photo store.customer-returns.file) - online_returns.view. See 6.14.

Warranty claim page and photos (store.warranty.show, store.warranty.file) - see I-12.

Coupons (store.coupons, store.coupons.create, store.coupons.edit) - see I-13.

My orders (/{language}/my/orders, store.orders.mine) - the buyer's list: Order, Placed, Vendors, Total, Paid with, Status; filter Status (Waiting for payment, Paid, Partly paid, On your credit line, Cancelled, Expired, Being checked by Traincu).

Payment page (store.checkout.pay) - when the provider's own page is not used: Pay for your order, the bank transfer reference, the button My order.

Choose my vehicle (/{language}/store/my-vehicle, store.my-vehicle) - a signed-in buyer picks one of the company's trucks; only the make, model and year go to the store, never the plate or chassis number.

Background data of the counter (no screen, used by the counter's script): store.pos.products, store.pos.tracking, store.pos.customers, store.pos.held-list, store.pos.override.status. See section 9.

8. Tips and common questions

1. I cannot open the counter. Why? Check, in this order: your company has an approved parts supplier activity; your role holds pos.sell and the money flag (the Store keeper role has no money flag); a register exists and is switched on; you have an open shift (otherwise you are sent to Open shift). A Cashier role is made for a new parts supplier by default.

2. Can I sell when the internet is down? No. Offline selling is not built yet (a study is done; it waits for the tax advisor). The counter needs the connection. If the connection drops while paying, nothing is saved: press Pay and print again once it is back. A second press never makes a second sale.

3. How do I take a card payment? Charge the card on the separate card terminal, then add a payment line (Card (terminal), mada, Apple Pay or STC Pay) and type the Approval code the terminal printed. A card is refunded on the terminal first; then you type the refund code on the return.

4. The screen says "only N can be sold, M are held for online orders". What does that mean? The counter sells only free stock: what is on hand minus what is held for online orders and advance orders. Sell fewer, or ask who holds the rest.

5. How does a customer get store credit, and how do they spend it? Store credit comes from a return given as Customer advance (store credit) or from an Exchange. An advance comes from a deposit or from paying more than was due. At the counter choose the customer (F3) and add a payment line Customer advance or Store credit.

6. The drawer is short at the end of the shift. Count again. If it is still different, type the Reason for a difference; a manager closes the shift or you name a manager with the Manager PIN. The next cashier sees the difference and the reason when opening a shift.

7. A customer cancels an advance order. Do they get the deposit back? Cancelling keeps the deposit with the customer as an advance (nothing is refunded on that screen). The customer can use it on a later sale. A manager must approve the cancel when there is a deposit.

8. Where do I give someone a quote? Sales orders > B2B order, fill the items and press Send quote; on the quote page E-mail quote or Print. When the customer says yes press Make the sale.

9. I cannot see the receiver's phone and address on an online order. They show only after the order is paid, and only on the order's page, not in lists or files.

10. My online store will not open. The red note beside Open the store says why: the company is not active or verified, the parts supplier or equipment activity is not approved or is restricted, or there is no active ZATCA device. Also publish at least one product and tick the places in Sell online from, or buyers will see no stock.

11. Where is the Manager PIN page? In the sidebar under Store > Counter (POS) > Manager PIN, and in the tabs on top of the Store pages. Only a login with pos.approve sees it and can have a PIN.

12. Buyer: why does a part say "Price on request"? The vendor chose not to show a price, or sells by quote only. Press Request quote.

13. Buyer: I paid but my order still says "Waiting for payment". A card payment is confirmed by the payment provider within moments. A bank transfer is confirmed when Traincu finance sees the money. If the payment window ended first, the order was cancelled and the stock given back; place it again.

14. Buyer: can I buy as a personal account? Yes. You may use the cart, checkout, My orders, returns and reviews. You get a simplified invoice. A company with a VAT number gets a standard invoice and can use a credit line when approved.

Not available yet, or different from the Dev Pack (for support)

9. Page reference (for support and testing)

9.1 Pages (every page you can open)

Page Address Route name Who can open (permission / activity) Described in
Customer accounts (I-17) /app/store/customers store.customers customers.view + approved parts supplier section 6.11
Customer account and ledger (I-33) /app/store/customers/{client} store.customers.show customers.view + approved parts supplier + money flag section 6.11
Receive customer payment (I-18) /app/store/customers/{client}/receive store.customers.receive customers.receive + approved parts supplier + money flag section 6.11
Online orders /app/store/online-orders store.online online_orders.view + approved parts supplier or equipment provider section 6.13
One online order /app/store/online-orders/{order} store.online.show online_orders.view + approved parts supplier or equipment provider section 6.13
Online order PDF (download) /app/store/online-orders/{order}/print store.online.print online_orders.print + approved parts supplier or equipment provider section 6.13
Online returns /app/store/online-returns store.customer-returns online_returns.view + approved parts supplier or equipment provider section 6.14
One online return /app/store/online-returns/{onlineReturn} store.customer-returns.show online_returns.view + approved parts supplier or equipment provider section 6.14
Return photo (download) /app/store/online-returns/{onlineReturn}/photos/{media} store.customer-returns.file online_returns.view + approved parts supplier or equipment provider section 6.14
Sales orders (I-11) /app/store/orders store.orders sales.view + approved parts supplier section 6.10
New sale (I-34) /app/store/orders/new store.orders.create sales.create + approved parts supplier + money flag section 6.10
One sale or quote /app/store/orders/{order} store.orders.show sales.view + approved parts supplier + money flag section 6.10
Store payouts (I-14) /app/store/payouts store.payouts store_payouts.view + approved parts supplier or equipment provider + money flag section 6.16
Payout statement PDF (download) /app/store/payouts/{statement}/download store.payouts.download store_payouts.print + approved parts supplier or equipment provider + money flag section 6.16
POS sell screen (I-09) /app/store/pos store.pos pos.sell + approved parts supplier + money flag section 6.3
Advance orders list (I-23) /app/store/pos/advance store.pos.advance pos.advance + approved parts supplier + money flag section 6.8
New advance order (I-23) /app/store/pos/advance/new store.pos.advance.create pos.advance + approved parts supplier + money flag section 6.8
One advance order /app/store/pos/advance/{advance} store.pos.advance.show pos.advance + approved parts supplier + money flag section 6.8
Cash in and out (I-25) /app/store/pos/cash store.pos.cash pos.cash + approved parts supplier + money flag section 6.6
Find a customer (background data) /app/store/pos/customers store.pos.customers pos.sell + approved parts supplier + money flag section 6.3
Discount approvals (I-26) /app/store/pos/discount-approval store.pos.approvals pos.approve + approved parts supplier + money flag section 6.5
Held sales (I-22) /app/store/pos/held store.pos.held pos.sell + approved parts supplier section 6.4
Held sales of this register (background data) /app/store/pos/held-list store.pos.held-list pos.sell + approved parts supplier section 6.4
State of a discount request (background data) /app/store/pos/override/{override} store.pos.override.status pos.sell + approved parts supplier section 6.5
Advance order pickup (I-24) /app/store/pos/pickup store.pos.pickup pos.advance + approved parts supplier + money flag section 6.8
Manager PIN /app/store/pos/pin store.pos.pin pos.approve + approved parts supplier section 6.1
Product grid and scan (background data) /app/store/pos/products store.pos.products pos.sell + approved parts supplier + money flag section 6.3
Counter receipt (print page) /app/store/pos/receipt/{order} store.pos.receipt pos.sell + approved parts supplier + money flag section 6.3
Registers /app/store/pos/registers store.pos.registers pos.manage + approved parts supplier section 6.1
Sales returns list (I-15) /app/store/pos/returns store.pos.returns pos.refund + approved parts supplier + money flag section 6.9
Sales return and refund (I-15) /app/store/pos/returns/new store.pos.returns.create pos.refund + approved parts supplier + money flag section 6.9
One sales return /app/store/pos/returns/{return} store.pos.returns.show pos.refund + approved parts supplier + money flag section 6.9
My open shift (goes to I-10) /app/store/pos/shift store.pos.shift pos.sell + approved parts supplier + money flag section 6.7
Open shift (I-21) /app/store/pos/shift/open store.pos.shift.open pos.sell + approved parts supplier + money flag section 6.2
Shifts list /app/store/pos/shifts store.pos.shifts pos.sell + approved parts supplier + money flag section 6.7
POS shift (I-10) /app/store/pos/shifts/{session} store.pos.shifts.show pos.sell + approved parts supplier + money flag section 6.7
Z report (print page) /app/store/pos/shifts/{session}/z store.pos.shifts.z pos.print + approved parts supplier + money flag section 6.7
Serials and lots of a product (background data) /app/store/pos/tracking store.pos.tracking pos.sell + approved parts supplier + money flag section 6.3
Storefront (I-13) /app/store/storefront store.storefront storefront.view + approved parts supplier or equipment provider section 6.12
Coupons list /app/store/storefront/coupons store.coupons storefront.view + approved parts supplier or equipment provider section 6.12
New coupon /app/store/storefront/coupons/new store.coupons.create storefront.create + approved parts supplier or equipment provider section 6.12
Edit coupon /app/store/storefront/coupons/{coupon}/edit store.coupons.edit storefront.update + approved parts supplier or equipment provider section 6.12
Warranty claims (I-12) /app/store/warranty store.warranty warranty.view + approved parts supplier section 6.15
New warranty claim /app/store/warranty/create store.warranty.create warranty.create + approved parts supplier section 6.15
One warranty claim /app/store/warranty/{claim} store.warranty.show warranty.view + approved parts supplier section 6.15
Claim photo (download) /app/store/warranty/{claim}/photos/{media} store.warranty.file warranty.view + approved parts supplier section 6.15
Cart (O-03) /{locale}/cart store.cart Any signed-in login section 6.18
Put the chosen part in the cart after sign-in /{locale}/cart/resume store.cart.resume Any signed-in login section 6.18
Checkout (O-04) /{locale}/checkout/store store.checkout Any signed-in login section 6.18
Payment page of one vendor order /{locale}/checkout/store/pay/{payment} store.checkout.pay Any signed-in login section 6.18
My orders /{locale}/my/orders store.orders.mine Any signed-in login section 6.19
Order tracking (O-05) /{locale}/my/orders/{code} store.orders.track Any signed-in login section 6.19
Order PDF (download) /{locale}/my/orders/{code}/print store.orders.print Any signed-in login section 6.19
Return or warranty request (O-06) /{locale}/my/orders/{code}/return store.orders.return Any signed-in login section 6.19
Rate the parts of an order /{locale}/my/orders/{code}/review store.reviews.create Any signed-in login section 6.19
Store home and search (O-01) /{locale}/store public.store Everyone, no sign-in section 6.17
Choose my vehicle /{locale}/store/my-vehicle store.my-vehicle Any signed-in login section 6.17

The product page of O-02 is /{locale}/store/{words}-{id}; it is answered by the store's router and has no route name of its own. The counter's background data pages are used by the counter's script and are not opened by a person.

9.2 Actions (buttons and forms)

Area Action Method Route name Permission / activity
Customers Cancel a receipt that settled sales POST store.customers.receipts.cancel customers.cancel + approved parts supplier
Customers E-mail a receipt to the customer POST store.customers.receipts.email customers.print + approved parts supplier
Customers Save receipt (receive payment) POST store.customers.receive.store customers.receive + approved parts supplier
Online orders Cancel an online order POST store.online.cancel online_orders.cancel + approved parts supplier or equipment provider
Online orders Mark as delivered POST store.online.deliver online_orders.update + approved parts supplier or equipment provider
Online orders Mark as packed POST store.online.pack online_orders.update + approved parts supplier or equipment provider
Online orders Dispatch and invoice POST store.online.ship online_orders.update + approved parts supplier or equipment provider
Online returns Approve a return POST store.customer-returns.approve online_returns.update + approved parts supplier or equipment provider
Online returns Goods received POST store.customer-returns.receive online_returns.update + approved parts supplier or equipment provider
Online returns Give the money back POST store.customer-returns.refund online_returns.update + approved parts supplier or equipment provider
Online returns Refuse a return POST store.customer-returns.reject online_returns.update + approved parts supplier or equipment provider
Online returns Send the replacement POST store.customer-returns.replace online_returns.update + approved parts supplier or equipment provider
Sales orders Create order or Send quote POST store.orders.store sales.create + approved parts supplier
Sales orders Make the sale from a quote POST store.orders.accept sales.create + approved parts supplier
Sales orders Cancel a quote POST store.orders.cancel sales.update + approved parts supplier
Sales orders Mark delivered POST store.orders.deliver sales.update + approved parts supplier
Sales orders E-mail the quote POST store.orders.email sales.print + approved parts supplier
Sales orders Open a payment link POST store.orders.link sales.link + approved parts supplier
Advance orders Save advance order POST store.pos.advance.store pos.advance + approved parts supplier
Advance orders Cancel the order POST store.pos.advance.cancel pos.advance + approved parts supplier
Counter Save movement (cash in or out) POST store.pos.cash.store pos.cash + approved parts supplier
Discount approval Approve or Reject a request POST store.pos.approvals.decide pos.approve + approved parts supplier
Counter Receive due (F7) POST store.pos.due pos.sell + approved parts supplier
Counter Discard a held sale POST store.pos.held.discard pos.sell + approved parts supplier
Counter Recall a held sale POST store.pos.recall pos.sell + approved parts supplier
Counter Hold sale POST store.pos.hold pos.sell + approved parts supplier
Discount approval Ask what approval a cart needs POST store.pos.override.need pos.sell + approved parts supplier
Discount approval Approve with the manager PIN POST store.pos.override.pin pos.sell + approved parts supplier
Discount approval Send the request to the manager phone POST store.pos.override.request pos.sell + approved parts supplier
Discount approval Withdraw a request POST store.pos.override.withdraw pos.sell + approved parts supplier
Counter Pay and print POST store.pos.pay pos.sell + approved parts supplier
Advance orders Deliver and print POST store.pos.pickup.deliver pos.advance + approved parts supplier
Registers and PIN Save PIN POST store.pos.pin.update pos.approve + approved parts supplier
Counter Price the cart without saving POST store.pos.preview pos.sell + approved parts supplier
Registers and PIN Add register POST store.pos.registers.store pos.manage + approved parts supplier
Registers and PIN Save register POST store.pos.registers.update pos.manage + approved parts supplier
Registers and PIN Switch a register off or on POST store.pos.registers.toggle pos.manage + approved parts supplier
Sales returns Confirm return POST store.pos.returns.store pos.refund + approved parts supplier
Shifts Open shift POST store.pos.shift.open.store pos.sell + approved parts supplier
Shifts Close shift POST store.pos.shifts.close pos.sell + approved parts supplier
Storefront Save storefront PUT store.storefront.update storefront.update + approved parts supplier or equipment provider
Storefront Close the store POST store.storefront.close storefront.update + approved parts supplier or equipment provider
Storefront Create a coupon POST store.coupons.store storefront.create + approved parts supplier or equipment provider
Storefront Save a coupon PUT store.coupons.update storefront.update + approved parts supplier or equipment provider
Storefront Delete an unused coupon DELETE store.coupons.destroy storefront.delete + approved parts supplier or equipment provider
Storefront Switch a coupon off or on POST store.coupons.toggle storefront.update + approved parts supplier or equipment provider
Storefront Open the store POST store.storefront.open storefront.update + approved parts supplier or equipment provider
Storefront Save places (Sell online from) PUT store.storefront.places storefront.update + approved parts supplier or equipment provider
Warranty Make the claim POST store.warranty.store warranty.create + approved parts supplier
Warranty Approve a claim POST store.warranty.approve warranty.update + approved parts supplier
Warranty Refuse a claim POST store.warranty.reject warranty.update + approved parts supplier
Warranty Send the replacement or finish the claim POST store.warranty.resolve warranty.update + approved parts supplier
Warranty Pass to the supplier POST store.warranty.supplier warranty.update + approved parts supplier
Buyer: cart Add to cart POST store.cart.add Any signed-in login
Buyer: cart Apply coupon POST store.cart.coupon Any signed-in login
Buyer: cart Take the coupon off DELETE store.cart.coupon.remove Any signed-in login
Buyer: cart Change a quantity PUT store.cart.update Any signed-in login
Buyer: cart Remove a line DELETE store.cart.remove Any signed-in login
Buyer: checkout Place order POST store.checkout.place Any signed-in login
Buyer: checkout Pay by bank transfer instead POST store.checkout.transfer Any signed-in login
Buyer: checkout Cancel checkout POST store.checkout.cancel Any signed-in login
Buyer: orders Take a warranty claim back POST store.orders.claim.cancel Any signed-in login
Buyer: orders Submit a return request or a warranty claim POST store.orders.return.store Any signed-in login
Buyer: orders Take a return request back POST store.orders.return.cancel Any signed-in login
Buyer: orders Publish a review POST store.reviews.store Any signed-in login
Buyer: orders I received it POST store.orders.received Any signed-in login