# Restaurant reports: sales, costs, stock

> Where to find sales, food cost, stock levels and financial results in Smakład — and which documents each figure comes from.

> Machine translation, editorial review pending.

Source: https://docs.smaklad.pl/en/guide/reports/

The system has two sources of sales figures, and it is important not to confuse them:

| Source | What it counts | Where it is shown |
|---|---|---|
| **Orders** (operational data) | **gross** value of non-cancelled orders, number of orders, channels, products | main dashboard (orders today), **Analytics** section |
| **Ledger** (accounting) | **net** revenue on 7xx accounts, cost of goods sold 711, expenses, VAT | financial dashboard, profit and loss, balance sheet, trial balance, VAT registers, JPK |

Figures from orders appear immediately and are suited to day-to-day management. Figures from the ledger are legally binding: tax returns and JPK files are built from them. The two legitimately differ: orders show gross amounts, the ledger shows net amounts, and cancelled and unpaid orders, corrections and FP invoices are treated differently. Every card in the interface states which source it belongs to.

If a figure is not available (the service does not respond or the role lacks permission), "—" is shown instead of it, not 0.

## 11.1. Main dashboard

`/admin` (start page)

![Main dashboard](https://docs.smaklad.pl/img/reports-01-home.png)

- **Needs attention** — a task queue: orders awaiting confirmation; low stock; expiring lots; overdue HACCP logs; unposted supplier invoices; rejected postings; the KSeF queue; payrolls awaiting approval. Each task shows a count and a link to the relevant screen. If there are no tasks, the block is not shown.
- **Orders today (gross)** — the value of non-cancelled orders for today, Warsaw time.
- **Orders Today** — the number of orders and the change versus yesterday. If there is nothing to compare with, no change is shown.
- **Active Deliveries**, **Low stock**.
- **Average order** (gross, today). If there are no orders yet, it shows "—".
- **Net revenue today (ledger)** — what has been posted to the 7xx accounts, and the change versus yesterday on the same basis.
- Sales and order charts for 7 days, latest orders.

The dashboard has no customer satisfaction score: the system does not collect one.

Check (Pierogarnia Przykładowa, 2 December 2026): the "Orders today (gross)" tile matches the dashboard response to the grosz, the number of orders matches the count of orders for the Warsaw day in the order service, "Average order" = gross / number of orders, and "Low stock" matches the number of stock alerts.

> **Known bug (BUG-HOME-HYDRATION).** Sometimes, when the home page loads, React error #418 appears in the browser console (text rendered by the server differs from the text in the browser). The figures are correct nonetheless.

---

## 11.2. Financial dashboard and ledger reports

Described in detail in section [9. Accounting](https://docs.smaklad.pl/en/guide/finance/):

- **Financial dashboard** (`/admin/finance/dashboard`) — net revenue for the day, 7 days and the month, food cost %, staff cost %, net profit, the KSeF queue, latest postings.
- **Profit & loss** (`/admin/finance/ledger?tab=profit-loss`): cost of goods sold (711), production variance, and financial income and expenses are shown as separate lines.
- **Balance sheet** (`/admin/finance/ledger?tab=balance-sheet`).
- **Trial balance** (`/admin/finance/trial-balance`) — opening balance, turnover and closing balance for each account.
- **VAT registers** and **JPK**.

### Metric formulas

| Metric | Formula | Source |
|---|---|---|
| Net revenue | sum of Cr − Dr of accounts 70x/73x | ledger |
| Food cost % | cost of goods sold (711) / net revenue × 100 | ledger |
| Staff cost % | (410 + 46x) / net revenue × 100 | ledger |
| Gross profit | revenue − 711 − production variance | ledger |
| Production variance | 501 (production costs) − 580 (finished goods taken into stock) | ledger |
| Orders today (gross) | total of non-cancelled orders for the day | orders |
| Average order | gross orders / number of orders | orders |

If there is no revenue for the period, percentages are not calculated and "—" is shown.

---

## 11.3. Sales analytics

`/admin/system/analytics` (administrator and manager)

![Sales analytics](https://docs.smaklad.pl/img/reports-02-analytics.png)

The data is built from order events (gross amounts, PLN):

- **Period**: today, 7 days, 30 days, 90 days, year to date. Switching reloads all blocks immediately.
- **Sales (gross)**, **Orders**, **Average order**, **Margin**. Margin is shown only if the cost of the products sold is known. Otherwise it shows "—" with the note "no cost data".
- **Sales by day** — a chart.
- **By channel** — dine-in, takeaway, delivery, online shop, etc.: number of orders, amount and share.
- **Top products** — the 10 items with the highest gross sales, with quantities. If the product name was not received, the beginning of its identifier is shown.

The section is not available to the accountant: opening its address takes them to the financial dashboard (`/admin/finance/dashboard`). See net revenue and ledger-based margin in **Finance → Profit & loss**.

---

## 11.4. Stock value

`/admin/operations/inventory` — the **Stock value** block above the stock list: total value, free, reserved and the number of lots; the warehouse filter recalculates the block. Value = Σ (quantity × purchase price) over available and reserved lots; lots without a price are not included in the total and are shown in a separate warning.

![Stock value of the "Chłodnia" warehouse](https://docs.smaklad.pl/img/reports-03-stock-value.png)

Check: the "Chłodnia" warehouse has 4 lots. Add up the "Value" column in the table: 232.80 + 132.30 + 68.60 + 172.25 = 605.95 zł. The block shows 605.94 zł.

> **Known bug (BUG-VALUE-SUMMARY-FLOAT).** The block adds up fractional values (80.7 pcs × 0.85 = 68.595 zł) and rounds the half grosz down. So the total can be 1 grosz less than the sum of the "Value" column. For reconciliation with the ledger, use the sum over lots.

---

## 11.5. Month-end reconciliation

Before closing the month, the accountant and the manager check that the warehouse, the ledger, the VAT register and lot traceability all tell the same story. All figures are compared to the grosz. Below is the order of checks and what must match.

| What is reconciled | Where to look | What must match |
|---|---|---|
| Stock by lot | **Warehouse** → "Stock value" block, filtered by warehouse | Σ (quantity on hand × price) over the warehouse's lots |
| Stock movements for the month | **Warehouse documents** (PZ, PW, MM, RW, WZ, PS, INW, KOR) | receipts − issues per documents = today's stock value of the warehouse |
| Warehouse ↔ ledger | **Trial balance**, account 330 | turnover on 330 from warehouse documents and supplier invoices = stock value |
| Each warehouse document | **Ledger & Journal**, search by document number | one posting (for RW — one per issued lot) for the same amount |
| Purchases | **Purchase Invoices** ↔ journal | net = Dr 330, VAT = Dr 222, gross = Cr 210. A crate not accepted at goods-in sits on 300 at gross until the supplier issues a correction |
| Production | **Production Orders** ↔ trial balance | Σ RW = Dr 501, Σ PW = Cr 580, cost of a finished-goods lot = PW value / quantity |
| Till | **POS Sessions** → sales history ↔ journal | per rate: receipt net = Cr 700, VAT = Cr 223; gross = Dr 100 (cash) or 139 (card, BLIK) |
| VAT register ↔ JPK | **VAT registers** and **JPK_V7 (VAT)** → "Preview & validate" | "Output VAT" in the preview = VAT total of the sales register |
| Traceability | **Product recall** → enter the raw material lot number | finished-goods lots made from this raw material and the orders they went into |

![Trial balance: accounts 330, 501, 580, 700, 223](https://docs.smaklad.pl/img/reports-04-trial-balance.png)

The "Period turnover" columns for accounts 330, 501, 580, 700 and 223 must equal the sum of the journal lines for the same period. This was the case in the check on 2 December 2026: for example, 330 — Dr 49,874.94 / Cr 19,818.50 zł.

![JPK_V7M preview for December](https://docs.smaklad.pl/img/reports-06-jpk-vs-register.png)

"Output VAT" in the JPK preview (614.90 zł) equals the VAT of the sales register for December: invoices 535.79 − correction 2.37 + daily till report 81.48 zł. Until the company profile is complete (NIP, e-mail, tax office code), the "Generate & archive" button is disabled, and the "Errors" block shows what is missing.

![Recall preview for a quark lot](https://docs.smaklad.pl/img/reports-05-trace-preview.png)

Traceability is checked with the recall preview (`/admin/compliance/recall/new`). Enter the lot number and press Enter. This does **not start** a recall: the start button appears below, only after confirmation. For the quark lot SUR-TWAROG-20261202-000503 the preview shows 13 lots: the quark itself and 12 derived lots (transfers, filling, pierogi, freezing). The same lots and the same 48 orders result from walking the chain through the warehouse: the production orders that consumed the quark, their finished-goods lots, then the order lines to which those lots were issued.

> **Known bug (BUG-RECALL-ORDER-COUNT).** The "Affected orders" line shows the number of order **lines** (101), not orders (48).

### Pierogarnia Przykładowa reconciliation result for December 2026 (as of 2 December)

| Check | Documents | Ledger / register | Difference |
|---|---|---|---|
| Warehouses MAG / CHL / MRZ / KUCH, lot value | 124.57 / 605.94 / 1.35 / 249.04 zł | — | — |
| Warehouse documents → stock on hand, MAG | 52.56 zł | on hand 124.57 zł | −72.01 zł: 5 × KOR −14.40 zł against an empty cola lot (BUG-KOR-EMPTY-LOT) and 1 grosz of rounding |
| Warehouse documents → stock on hand, CHL / MRZ / KUCH | 605.95 / 1.41 / 249.01 zł | 605.94 / 1.35 / 249.04 zł | +1 / +6 / −3 grosz of rounding |
| Account 330 ↔ stock value | 908.94 zł | 980.90 zł | −71.96 zł |
| Purchase invoices (5 posted) | net 1427.38, VAT 102.51, gross 1529.89 zł | Dr 330 1369.18 + Dr 300 61.11 + Dr 222 99.60 = Cr 210 1529.89 zł | 0 |
| Production | RW 651.16 / PW 651.13 zł | Dr 501 651.16 / Cr 580 651.13 zł | 0; PW is 3 grosz below RW (BUG-PW-RW-GROSZ) |
| Till SW-KASA-1 (165 receipts) | 5 %: 894.30; 8 %: 3671.80; 23 %: 560.00 zł gross | Cr 700 + Cr 223 per rate | 0 |
| VAT register ↔ JPK_V7M | 614.90 zł | 614.90 zł | 0 |
| VAT on 223 ↔ VAT register | 1081.01 zł | 614.90 zł | sales through the payment service (62.46 zł VAT) do not reach the register (BUG-VAT-REGISTER-ONLINE-SALES); DEMO receipts reach the register only through the daily report |

The discrepancies found are recorded as bugs until they are fixed:

- **BUG-KOR-EMPTY-LOT.** Cancelling a purchase invoice after the goods have been issued posts a KOR of −14.40 zł against an already empty lot, and the invoice reversal reduces 330 a second time. The ledger ends up 14.40 zł below the warehouse for each such invoice.
- **BUG-KOR-ROUNDING.** Reversal of RW/2026/12/0010 (KOR/2026/12/0002/M2962) — the document is −4.47 zł, but 4.48 zł is posted in the ledger.
- **BUG-STOCK-ROUNDING-DRIFT.** Each WZ/RW/PW rounds its own amount, while the lot's stock on hand is calculated as quantity × price. The stock on hand does not absorb the accumulated grosz of rounding.
- **BUG-COD-NO-PAYMENT.** Deliveries paid to the courier in cash (5 orders of 72.00 zł) were closed without revenue or VAT. The goods were nevertheless issued from stock.
- **BUG-PAYMENT-VAT-8.** An order paid by card outside the till is posted entirely at 8 %: VAT 5.33 zł instead of 4.74 + 1.50 = 6.24 zł.
- **BUG-SALE-WITHOUT-STOCK-ISSUE.** 106 of 230 lines of closed orders left without a stock issue: ruskie 41, compote 51, z mięsem 8, cola 5, frozen 1.
