Route Orders

A field-sales order pad — HTML and CSS for the interface, Ring for the rules. Everything below works with the connection cut.

Connection: up

The server is reachable.

1 · The customer

ShopTown TierCredit left

2 · The order

ProductCase StockPrice
LineQty UnitDisc. NetRemove

3 · The outbox

Orders taken but not yet acknowledged. They survive a closed tab, a flat battery and a week without signal.

OrderTotal State

4 · What crossed the wire

Local work is green; the network is blue. Count them.

    Where the pieces live

    index.html · app.css
    the interface — ordinary markup and ordinary stylesheet, exactly what you already write
    app.js
    the wires — fetch, localStorage, the DOM, the event handlers
    orders.ring
    the business logic and the data — price tiers, the case discount, tax, the stock check, the credit limit, the order, the outbox, the sync payload, the reconciliation
    your server
    two HTTP endpoints that speak JSON, in whatever language you already use