stabisoDocs

Purchasing and stock

Till: a shop's point of sale

The till is retail's point of sale in the books: a shop's tills ring up sales from the shop's stock, paid in cash or by card, and each day's Z-report counts the cash and books the day's takings, VAT and any cash difference (ADR-0117). It is built on stock: the goods a sale sells leave the shop's warehouse at once. Find it under Sales → Till: in a retail company with its industry's screens at the top of the menu; in another company under More in Sales until the company has a till in use, then among Sales' own screens.

Tills

  • A till (POST /v1/tills, Till → Add till) is added by its name (Shop Bahnhofstrasse); its code is made from the name. It sells from the company's default warehouse, or the one named (the shop), in the company's currency. Where the company has more than one warehouse, Add till asks which; a company without a warehouse is told so, with a link to add one, before anything is typed. The till's page names the shop it sells from.
  • Its float is the cash left in the drawer for change after each day (default 0); it is counted with the takings. Set it, rename the till or take it out of use with Change (PATCH /v1/tills/{till_id}); a till out of use sells no more, and its days stay. A till is never deleted.
  • The first till of a shop (its warehouse) makes the shop's walk-in customer, Shop customers (in the language of the company's country: Laufkundschaft in Switzerland and Germany): a consumer who pays at once, at the shop's address (the warehouse's, with the state its ZIP code lies in when none is given, else the company's). The days of every till of that shop are invoiced to it. Because it is where the shop is, its invoice names the shop's town, and in the US its sales tax is that of the shop's state and ZIP code (the local rates of the tax area that lists it: an area without ZIP codes charges the shop only the state rate, and the tax areas screen warns of it). The day's invoice names its till day as its source, and printed after its payments it says it is paid. A second shop's walk-in customer is named after its town, else its warehouse (Shop customers Basel).
  • The accounts the takings book to are found by their role, and the system adds them from the company's chart the first time when the company lacks them:
What Role Swiss SME chart
The cash in the tills cash_on_hand 1000 Kasse
What the card acquirer holds until its payout provider_balance 1092 Guthaben bei Zahlungsdienstleistern
Cash over or short cash_difference 6798 Kassendifferenzen

Selling

  • The shelf (GET /v1/tills/{till_id}/shelf) lists the goods a shop sells: the products sold by the piece whose supply is goods, or that are kept in stock. Services, hotel rooms and plans are not on it.
  • A shop prices a product as its shelf shows it with the pencil beside its price (PUT /v1/tills/{till_id}/shelf/{product}/price), from today: with VAT in a VAT country, so a round 5.00 stays 5.00 (it is kept as the list price before VAT that gives it to the cent: 4.625 at 8.1 %), before tax in the US. It is the product's list price from today for every sale of it. A price already set today is never changed, so a second one the same day applies from tomorrow; the answer and the message say from which day (price_from). The message names the list price before VAT with all its decimals (4.625).
  • A sale (POST /v1/tills/{till_id}/sales, Till → Sell) is rung up today, where the company is. Each line names a product and how many (default 1). Its price is the shelf price: the product's list price on the day plus the tax the day's invoice charges it, rounded to the currency: the VAT of its rate type, or in the US the sales tax of the shop's state and local area on the part of the price the state taxes (the product's sales tax category). The till asks the invoice's own tax decision, so what it charges is what the books get. Give another price of one for a discount (tax included where VAT is in the price). Where VAT is in the price a line takes its quantity times the shelf price. In a US company the till shows the prices before tax, as US shops do: a line takes its net (the quantity times the list price) plus the tax of that net, so 3 at 8.49 with 7.25 % come to 25.47 + 1.85 = 27.32 (not 3 × 9.11), and the basket adds a subtotal and the sales tax. A product that cannot be sold today (no list price) is shown but cannot be added.
  • It is paid in cash or by card. In cash, say what the customer handed over and the till gives the change (till_cash_short when it is less than the total; the till says so under the cash field before anything is sent). Swiss cash is paid to 5 Rappen: a cash sale's total is rounded half up (21.62 takes 21.60, 43.24 takes 43.25), the change is given from that, and the till shows what is due in cash. A card pays to the cent. The sale keeps its rounding; the day's invoice bills the sales to the cent, so the rounding of the day's cash sales goes to the cash differences with the drawer's difference.
  • The goods kept in stock leave the till's warehouse at once, at moving average cost: a stock posting of the kind delivery books the cost of the goods sold (Dr cost of goods sold / Cr inventory). Goods not on hand refuse the sale in words (not_enough_stock), and nothing is sold: record the goods coming in first. The basket stops at what is on hand and says so. A service, or goods not kept in stock, sells without a stock posting.
  • Every sale gets a gap-free number per company and year (TS-2026-000001), and keeps its lines, prices, VAT rates and payment. A sale is never changed or deleted.
  • After a sale the till shows what it took (in cash, the total rounded to the coin) and the change, with its receipt: Print receipt opens it as a PDF to print (GET /v1/till-sales/{sale_id}/receipt), and each of today's sales has its receipt too. E-mail receipt sends it to the address the customer gives (where no e-mail goes out, pressed, it says so and to print the receipt instead) (POST /v1/till-sales/{sale_id}/send; the address is used for this receipt only, and counts into the organization's hourly limit of messages; never from a test copy, and only by a person). The receipt is in the company's language, names the till and the shop's address, gives the time where the shop is, and lists what was sold at the prices paid, the VAT in them by rate (in the US the prices before tax and the sales tax added), how it was paid and, in cash, the rounding to 5 Rappen, the cash given and the change.
  • Nothing else is posted by a sale: the takings are booked by the day's Z-report.

Closing the day: the Z-report

At the end of the day, count all the cash in the drawer, float included (in Swiss francs a sum of coins, to 5 Rappen: anything else is refused, till_counted_coin), and close the day (POST /v1/tills/{till_id}/days, Till → Close the day). The till asks first, because a closed till sells again only tomorrow; afterwards its page says so, with a link to the Z-report, until the next day, and the till picker marks it closed today. The till picked stays in the page's address, so a reload keeps it. The Z-report (Z-2026-000001) shows:

  • the day's sales and what they took in, in cash and by card, and by VAT rate;
  • the expected cash: the float plus the cash takings (each cash sale as rounded to the coin);
  • the difference: the cash counted less the expected cash; below zero the drawer is short, above it is over (+0.20);
  • in Switzerland, the rounding of the cash sales to 5 Rappen: the day's invoice bills the sales to the cent, so its total is the takings less this rounding, which is booked to the cash differences.

Each Z-report opens on a page of its own (its number in Z-reports, GET /v1/till-days/{day_id}), with Print for its PDF (GET /v1/till-days/{day_id}/pdf). It lists the sales it closed, each with its receipt to print again (GET /v1/tills/{till_id}/sales?z_report=), when it was closed and by whom, and what was booked to the cash differences (the difference with the rounding), linked to its journal entry. In the US it says sales tax where Switzerland says VAT. Its PDF lists the day's sales and the cash difference entry as the page does; in the US its times read 2:05 PM (the country's documents.clock). The day's invoice and the journal entry of the difference link back to it.

It closes the day's open sales. The days close in order: while an earlier day has sales open, a later one is refused (till_day_open_before); a day closes once (till_day_closed), and a closed day takes no more sales until tomorrow. A day without sales closes too, to count the cash.

How the day is booked

The Z-report books the day at once, through the ordinary documents, so the VAT report, the receivables and the ledger see a shop's day as they see every sale:

  1. The day's invoice to the walk-in customer, dated the day: one line per product and price, noted with the Z-report's number and the till (Z-2026-000001 · Shop Bahnhofstrasse), each line naming the product (P-00001 Coffee beans), on the product's revenue account, VAT rate type and (in the US) sales tax category, whose net and tax add up to what the till took. Where no net reaches the takings to the cent, some of the pieces go on a line of their own so that the two lines do; only where no split does is the cent of rounding the cash difference. A line bills the pieces sold at a unit price in whole cents where one makes the line's net, else to four decimals (4 × 4.9025 makes 19.61), else to six; only where none does is the line billed as one (1 × 19.61, its text saying how many). Its goods already left with the sales, so its lines name the product in words only and move no stock. It is submitted like any invoice: posted, or held for approval by the approval policy.
  2. Its receipts: the card takings into the card acquirer's balance (provider_balance; its payout to the bank is matched there later), the cash takings into the cash on hand (cash_on_hand), each with the Z-report's number and the till as its reference (Z-2026-000001 · Shop Bahnhofstrasse). The invoice is paid in full the same day. Their entries are the receivables' (the source Receivables), because they are the walk-in customer's invoice and its payments.
  3. The difference, when there is one: a journal entry between the cash on hand and the cash differences account (Dr cash differences / Cr cash on hand when the drawer is short, the reverse when it is over).

When the invoice waits for approval, the Z-report is waiting and says why; the scheduled jobs book it once it is approved, or Book now (POST /v1/till-days/{day_id}/book) does. A rejected invoice waits for a person: correct it and submit it again, or reopen it and the till books it.

Banking the cash is an ordinary transfer from the cash on hand to the bank.

What a person must do

  • Add a till per shop, and its float if the drawer keeps one.
  • Keep the products' list prices and the stock up to date: a sale is refused for goods not on hand.
  • Count the cash at the end of each day and close the day.
  • Approve the day's invoice when the approval policy holds it.

Assistant

The MCP tools list_tills, create_till, sell_at_till, list_till_sales, close_till_day and list_till_days do the same; the assistant asks the person for the cash counted before it closes a day.

Stabiso, the Enterprise System of Record · generated from the code and its guides · release 3262ae655e81