sector guide · Shop Ledger

Running a shop

A general store, a hardware shop or a counter of everyday goods in a home town, owned by a family or a group abroad and run by a shopkeeper with an assistant or two. The shopkeeper records each day's takings, never each sale: what was sold is worked out from the shelves when they are counted, and judged against the takings. For the Board, the shopkeeper and the shop's staff.

Runs it
The shopkeeper (the Manager), with the shop's staff on its phone
The Board's
Every price, every credit limit, every debt and every item written off; orders beyond the limit
Counted by
The shopkeeper (the cash) and the Counter (the shelves, blind, each month)
Exceptions
SHOP_SHORT, CREDIT_ARREARS, COST_RISE, REORDER_DUE, EXPIRING_SOON
Checked by
ledger-verify --shop, from the verification bundle

Watch it working

Short films of each step on a shop set up for demonstration, with its people and figures made up. Each opens in a new tab.

  1. Setting up the shopShelves, goods and prices; a price change refused before a count; a customer with a limit; a supplier.
  2. The shopkeeper's dayOpening stock, a credit sale, one refused past the limit, a repayment, takings and the cash count.
  3. The counter counts the shelvesA blind count; missing goods valued against takings; the shortfall raised and written off by the Board.
  4. Receipts named in MoneyA wrong deposit refused; receipts named as banked, mobile takings and a repayment.
  5. Prices, credit and write-offsA price change from tomorrow, a limit raised, a write-off refused then made smaller.
  6. Orders within the purchase limitAn order over the limit placed by the Board; a cost rise resolved; a delivery received.
  7. Closing the monthThe close refused while mobile takings are unnamed, then met.
  8. Reports and the bundleThe shop in the flash and both packs, and the bundle with no customer's name.
  9. Roles and their limitsThe shopkeeper cannot count, the counter cannot sell; each phone shows only its own screens.
  10. The console, read for a shopPeople, Approvals, Money, Periods, the shop's settings, Plan, Help and the shop's guide.
  11. The margin on each item soldThe Margin tab values what was sold at the price list and at its cost; the soap and oil from the opening stock have no cost until the Board costs those deliveries, and the stolen bar is shown apart as shrinkage.
  12. A reorder point, reached and orderedThe shopkeeper sets the oil's reorder point, a cash sale keyed in on the phone reaches it and she is told at once, and the Board places the suggested order, which resolves the exception.
  13. Goods taken back and sent backA customer's torn bag of sugar taken back on the phone against what she owes, and damp bags sent back to the wholesaler for a credit.
  14. A credit customer's statement by linkThe Board makes a private link for a credit customer, who opens what she bought, repaid, had written off and returned, and still owes, without signing in; the link is then withdrawn.

The shop and who does what

A shop is a holding whose record shows what came in each day, what was sold on credit and to whom, what each customer owes, and whether the shelves agree with the takings. The usual losses it is built against are cash sales that never reach the record, goods taken from the shelf, stock bought dear from a friend, and credit given to friends and never repaid.

WhoRoleWhat they do
The BoardBoardSets the price list and every customer's credit limit, writes off debts and goods, places orders beyond the shopkeeper's limit, resolves SHOP_SHORT, appoints the Counter and closes the month. See Board.
The shopkeeperManagerRecords the day's takings and counts the cash on the phone, keeps the customer register, places orders within the limit and names receipts in the money. Never sets a price or a limit. See Manager.
The shop's staffWorkerSell on credit and take customers' repayments in cash, on the shop's phone. See Worker.
The counterCounterCounts the shelves each month from their own phone, blind. Never sells and never runs the shop. See Counter.
The auditorAuditorSees what each customer owes, never who they are. See Auditor.

Setting up the shop (the Board)

  1. Set the shop's currency in Settings (money.currency).
  2. On the Shop tab, under Places, define the shop's site, and its shelves inside it as a store with a code (for example SHELVES).
  3. In Stock, define each item the shop sells, as Goods for sale (or seed, feed or a material for an agro-dealer or a hardware shop), with its unit (see The stock ledger).
  4. Under Price list, press Set the price beside each item. An item with no price is never sold on credit.
  5. Record the opening stock on the shelves from the phone, add the shopkeeper and the staff under People, enrol the shop's phone (see People, access and phones), and appoint a Counter.
  6. Set the shopkeeper's monthly purchasing limit in Settings (shop.purchase_limit_minor). Until you do, every order is the Board's to place.

Prices

  • An item's first price holds from the day it is set.
  • A change is made only on a day the item was counted, and holds from the next day. The Price list shows a coming price as From tomorrow. So each stretch between two counts has one price, and what was sold in it is valued at that price.
  • A farm's produce is never on a shop's price list.

Customers, credit and the register

Who a customer is, their name and phone, is personal data. It is kept in The customer register, off the record chain: the chain records only that a customer was registered and which details changed, never the values.

  1. The shopkeeper or the Board adds each customer on the Shop tab with Add a customer.
  2. Only the Board sets each customer's credit limit, with Set the limit: the most they may owe at once. A new customer has a limit of 0, and is sold nothing on credit until the Board sets one.

The phone shows each customer's name, what they owe and their limit, never their phone. The auditor sees what each customer owes, never who they are.

Customers erased

A customer who owes nothing is erased from the register by the daily job once the Board's retention period (impact.retention_months in Settings) has passed since their last credit sale or repayment. Their sales and repayments stay in the record, without a name.

The day's takings and the cash

A busy counter is never slowed by keying in each sale. At the end of each day the shopkeeper opens The day's takings on the shop's phone, chooses the day (today, unless one was missed), types the cash taken and what came to the shop's mobile money, and presses Save.

  • One record a day, and only the shopkeeper records it. A day already recorded, or a day still to come, is refused.
  • The cash is the shopkeeper's to hold until it is banked. What they should hold is the cash takings and repayments in cash, less what was banked.
  • The shopkeeper counts it with Count the cash before banking it and at each month's end, typing what they counted, not what the phone expects. Each count is listed on the Shop tab with what they should have held when they counted.

Receipts to name

The money is recorded in Money, as on any holding (see Money, end to end). Under Receipts to name, the office presses Name it beside each receipt and names it as one of:

  • The shopkeeper's cash banked: never more than they held that day.
  • Takings to mobile money: the day's takings paid to the shop's mobile money.
  • Repaid straight in by a customer: a repayment into the shop's account.

A receipt reversed in Money counts for nothing, and a receipt already named is never named again.

Selling on credit

Credit is given only to a customer on the register, within the limit the Board set for them.

  1. On the shop's phone, open Sell on credit and find the customer by name. The phone shows what they owe and their limit.
  2. Type how many of each item they take. The phone shows what is on the shelves and what the sale comes to.
  3. Press Save. The sale is charged at today's prices, and the goods leave the shelves.

A sale is refused beyond the customer's limit, for an item with no price, or for more than the shelves hold. Sold on credit on the Shop tab lists the month's credit sales.

Repayments and write-offs

  • A customer repaying in cash is recorded on the phone with Credit repaid; the cash is kept with the takings until it is banked. A customer who pays straight into the shop's account is named by the office, not on the phone.
  • Owed is a customer's credit sales, less what they repaid and what the Board wrote off.
  • Only the Board writes a debt off: Write off beside the customer, with the amount and why. Never more than is owed. The app asks you to confirm, because it cannot be taken back (see Confirming, and the ways back).

A customer's statement by link

On the Shop tab, Statement beside a customer makes a private link to their credit: each sale on credit, what the Board wrote off, each repayment at the shop or straight in, what is still owed, and their credit limit, read from the record as it stands. The customer opens it on their phone without signing in, and can download it as a PDF; Make a link to copy shows the link once, to send yourself. Where the Board turned WhatsApp on (messaging.whatsapp, off by default, on the paid plan) and the payer agreed, Send it by WhatsApp sends it from the platform's number; the payer may write BALANCE for a new link, or STOP. With messaging.reminder_day set, each payer who owes is sent a new link that day each month, by WhatsApp where they agreed, else by email.

A customer who repaid the shopkeeper and does not see it brings their receipt to the Board, so cash taken and never recorded comes to light. Each statement names the record it was read at; anyone given the shop's bundle works the customer out again with ledger-verify --shop and --subject.

A link works for 90 days; a new one replaces the last, and Withdraw the link stops it at once. The office sees when each statement was last opened. The page names the customer by first name and initial alone, and their links go when their details are erased.

Orders to suppliers

The shopkeeper places each order under Orders to suppliers with Place an order: the item, the supplier (added in Money), the quantity, what a unit costs and the day it is expected.

  • The shopkeeper's orders in a month stay within the Board's purchasing limit (shop.purchase_limit_minor). An order beyond it, or any order before the Board sets a limit, is refused: it is the Board's to place, and the Board's orders use none of the limit. The tab shows what was ordered this month against the limit.
  • An order at a unit cost more than shop.cost_rise_pct (10% unless the Board changes it) above the last order of the same item is shown to the Board in Exceptions.
  • What arrives is read from the deliveries recorded on the phone, oldest order first. An order that will not come is cancelled with Cancel the order, with its reason.

Reorder points

The shopkeeper or the Board sets an item's reorder point under Reorder points: the level at which to order again, and optionally how much and from whom. When what the shelves hold, plus what is still owed on open orders, is at or below the point, the shopkeeper is shown REORDER_DUE in Exceptions, with the order it suggests at the last order's cost; Order this fills in the order form. It is resolved once enough is held or on order.

Returns

  • Goods going back to a supplier are recorded under Send goods back by the shopkeeper or the Board: the item, the supplier, how many and what the supplier credits. They leave the store at once, never more than it holds nor than that supplier delivered of the item, less what already went back to them. The credit comes off the item's cost on the Margin tab.
  • Goods a customer brings back are recorded on the shop's phone and go back on the shelf. Goods paid for in cash are refunded in cash by the shopkeeper alone, never more than they hold nor than the goods at the day's price. Goods bought on credit are refunded against the customer's own credit sale, chosen on the phone: never more of an item than that sale sold them, less what they already brought back, at the price they were charged. A return on credit can never cancel a debt for anything else.
  • The month's returns by anyone but the Board, together, stay within shop.return_limit_minor (unset: the purchasing limit; with neither, no return is theirs), as the shopkeeper's orders stay within the purchasing limit; a return that would pass it is the Board's: goods to a supplier valued at their last order cost, a customer's by the refund. The Board records a customer's return above it with Take goods back on the Purchases tab.
  • Cash refunds come off what the shopkeeper holds and off the takings of the stretch: a refund recorded for goods that never came back shows at the next count as SHOP_SHORT.

The Board may switch orders to suppliers off in Settings (shop.features). On Free they are off: the purchases module comes with the Pro plan. The shelves cannot be switched off: the takings are judged against them.

The shelves' count

What was sold for cash is worked out from the shelves, not from what was keyed in.

  • The Board appoints a Counter under People: someone who never sells and never runs the shop. The app refuses to make anyone on the staff a Counter. The Counter signs in on their own phone with a PIN and counts the shelves there, item by item, without seeing the record. Nobody else counts them, and the Counter counts nothing else.
  • Those who sell never write goods off or use them from the shelves: the shop's phone refuses it.
  • What a count finds missing is settled as sold for cash since the last count: the stock at the last count, plus what was delivered, less what was sold on credit and written off, less what is on the shelf now. It is valued at the item's price on the count's day, the one price of that stretch.
  • The shelves counted on the Shop tab lists each count day: what its count says was sold for cash, and the takings of the days since the last count day, marked Agrees, Differs by more than the tolerance or Takings not yet recorded.
  • More on a shelf than the record says is never a sale: it stands as Store count does not match and holds the month until the Board finds it or the Counter counts again.

Goods written off or found

Goods the Board learns were stolen, broken or spoiled are written off with Write off or find: the item, the quantity, the reason (stolen, broken, spoiled, missing with cause unknown, returned to the supplier, or found) and why in words. Expired goods are written off from their report (below). Goods written off after a count are no longer counted as sold for cash, so a theft is never valued as takings the shopkeeper owes. The record is final.

Expiry

A delivery recorded on the phone may carry its batch and expiry date. A lot within shop.expiry_warn_days of its expiry (14 unless the Board changes it), or past it, with some of it still held, is shown to the shopkeeper as EXPIRING_SOON; what is left of a lot is an estimate, the oldest delivery sold first. Goods past their date found on the shelves are reported from the shop's phone with a photo. The Board writes them off with Write off beside the report on the Shelves tab, after looking at the photo, never more than the report counted.

Cash sales keyed in (optional)

A shop may key in its cash sales on the phone, item by item, with Cash sale; it need not, and nothing depends on it. The goods leave the shelves at the sale, at the day's prices, so the next count finds missing only the cash sales nobody keyed in, and each stretch adds the keyed-in sales of its days to what the count says was sold. The day's takings are still recorded once, at its end.

The margin

The Margin tab answers whether the shop makes money on what it sells, month by month.

  • What a delivery cost comes from the orders it met: every shop order names its unit cost. A delivery that met no order, or the opening stock, is costed by the Board with Set the cost in the list of deliveries with no cost; the Board may also correct an order's cost for a whole delivery. A delivery with no cost is stock all the same, and its sales are shown apart as uncosted.
  • Each item's cost is a weighted average by month: the stock at the month's start at last month's average, plus the month's costed deliveries, less what went back to a supplier at its credit.
  • The month's sales are what left the shelves as sold (what the count settled, credit sales, cash sales keyed in) at the Board's prices, less refunds; their cost is the same quantity at the month's average. Goods written off are shown apart, at cost: shrinkage is not a sale.
  • An item whose last cost is above its price is listed first: the shop loses on every sale of it. The last six months are shown, and the reports carry the month's margin.
  • A month that has not begun cannot be asked for.

Exceptions

ExceptionRaised whenWhat to do
What the shelves say was sold differs from the takings (SHOP_SHORT)On a count day, once that day's takings are recorded, what the count says was sold for cash differs from the takings of the days since the last count day by more than shop.tolerance_pct (1% of the takings unless the Board changes it).Find out why. Write off goods that were stolen, broken or spoiled; otherwise the Board resolves it with its reason. Only the Board resolves it, and the month does not close until then.
Customer's credit unpaid past its days (CREDIT_ARREARS)A customer owes for credit sales older than shop.credit_days (30 unless the Board changes it).Chase the customer. It is resolved once they have repaid, or the Board writes the debt off.
Goods ordered at a cost well above the last (COST_RISE)An order's unit cost is more than shop.cost_rise_pct above the last order of the same item.The Board checks the supplier and the price.
Time to order again (REORDER_DUE)What the shelves hold of an item, plus what is still owed on open orders, is at or below its reorder point.The shopkeeper places the suggested order, or another; it is resolved once enough is held or on order.
Goods near or past their expiry (EXPIRING_SOON)A lot still held is within shop.expiry_warn_days of its expiry date, or past it.Sell it first, or report it expired from the phone with a photo for the Board to write off.
Store count does not matchA count finds more on a shelf than the record says.The Board records it as found with Write off or find, or the Counter counts again.

See Exceptions and escalation for resolving one.

Closing the month

The Board closes the month as on any holding (see Closing the month). A shop's month closes only on its balance:

  • The shopkeeper's last count of the cash in the month agrees with what they held when they counted. If they took cash in the month or still hold some, they count it from the phone first.
  • Every item the shelves held at the month's end was counted by the Counter that month, and agrees.
  • Each count day's takings are recorded and agree with what the count says was sold, or the Board has resolved the SHOP_SHORT.
  • Every takings paid to mobile money is named in Money.

So what was sold, valued at the Board's prices, is the takings plus the credit sales, within the tolerance; what the shopkeeper took is what they banked plus what they hold; and each customer's credit is their sales less what they repaid and what was written off, never above their limit.

Reports, the bundle and the verifier

The Weekly flash, the Monthly pack and the Investor pack carry the shop beside the money: the month's takings in cash and to mobile money, what the shelves counted say was sold for cash, the credit sales and what was written off, what all customers owe today and how much of it is in arrears, what the shopkeeper holds, and how many items are not yet counted and agreed.

Verification bundle on the Shop tab gives every record of the shop, signed. It names no customer. Anyone can check it with ledger-verify --shop, which works out again, from the records alone: each price and when it held; each credit sale's charge, never beyond the customer's limit; what each customer was sold, repaid, had written off and owes; the shopkeeper's balance; the shelves' ledger and what each count found sold for cash, with the cash sales keyed in; each count day against its takings within the tolerance, less cash refunds; the returns to suppliers and from customers, each within what was delivered or sold on credit; each item's cost by month and the month's sales, cost and margin; and each close. See Checking the records.

Settings that are the shop's own

SettingWhat it doesUnless changed
shop.purchase_limit_minorWhat the shopkeeper may order from suppliers in a month; unset, every order is the Board's to place.Not set
shop.cost_rise_pctHow far above the last cost of an item, per cent, a new order's cost is shown to the Board.10
shop.tolerance_pctHow far what was sold, worked out from the shelves, may differ from the takings, per cent of the takings.1
shop.credit_daysDays a credit sale may go unpaid before it is an exception.30
shop.expiry_warn_daysHow many days before a lot's expiry it is shown to the shopkeeper.14
shop.return_limit_minorWhat a return may be worth before it is the Board's to record; unset, the purchasing limit.Not set

The shop also uses money.currency and impact.retention_months, as other holdings do (see Settings reference). Pro's price is set by the shop's monthly takings, averaged over three months' ends: Small up to US$1,500, Medium up to US$7,500 (see Plans).

Top