Online sales and the till belong to the same business, but they start in two systems. An order lands in Squarespace, and then someone enters the customer, billing address, shipping address and lines in LightspeedPos as well. That fills the morning, and a wrong price or product code only shows when the till figures stop matching the webshop. This second entry disappears for sales orders that go from the webshop to the till.
Each run picks up Squarespace orders changed since the last run, up to fifty at most. The start point then moves to the last order. The order number doubles as the reference. The customer comes from the billing address, and both addresses are carried over. A line contains product name, product code, quantity, variant and price, plus shipping costs and VAT. You set the filters on order status, payment status and fulfilment status yourself for this till. Without your own filter, open and failed payments remain behind, as do payments already collected, authorised, paid or refunded.
A sale is created in the till, or first a sale and then a linked quote if you choose that form. Any other form is not accepted. Prices, discounts and amounts exclude VAT, unless you turn on VAT-inclusive pricing. By default the sale is completed in LightspeedPos. The store is required and is found by warehouse name. The first employee and the first till are attached to it; if either is missing, that order stops. A reference that already exists is rejected. Nothing is sent back to Squarespace: a till sale does not become an order there.