Opening and closing a stock period
A stock period is an accounting window over one outlet's stock. It opens on a full count, collects everything that moves while it runs, and closes on another full count. This article covers running one from start to finish.
1. Open a period
A period always starts from a finished full count from the last 180 days: not a partial count or a sub-count, and not a count that already opens another period.
To open the period:
- Go to Inventory, then Stock Periods, and choose the outlet.
- Select Start First Period if the outlet has no periods yet, or Add Period.
- Under Opening count (required), pick the finished count.
- Optionally type a Period name. Without one, the name is made from the opening count.
- Select Confirm.

The expected close date comes from the schedule in your library settings and shows on the period card as Expected close with the date. Nothing closes when that date arrives, and Apicbase sends no reminder. A period that is past its expected close date shows an Overdue badge.
An outlet can have several periods open at once, which is how a monthly accounting window and a weekly cycle run side by side. Each open period has its own card under Open periods. Closed periods are listed under Closed periods.
For a window that has already passed, open the menu next to Add Period, choose Add historical period, pick both counts and select Create historical period. The period is created already closed.
2. Follow the period while it runs
The open period's card recalculates every time you open the page. At the top, a strip shows the Opening count and the Closing count, each with its date and the value counted. Select a count's name to open it in a new tab. Below the strip come the period's figures, a statement, and one card per kind of movement, such as Goods Received, Transfer, Sales and Waste.

2.1. When you count stock
Sales are kept per day, while a count happens at a moment of the day. We count stock in the strip tells Apicbase which period the sales of a count day belong to:
- After closing: you count after the day's last sale. The day of the opening count belongs to the previous period, and the day of the closing count belongs to this one.
- Before opening: you count before the day's first sale. The day of the opening count belongs to this period, and the day of the closing count belongs to the next one.
If your count finishes after midnight, choose Before opening. The choice moves revenue and sales between periods. The stock figures do not depend on it: they follow the exact time of each count.
A new period starts with the choice of the previous one. Keep neighbouring periods on the same choice, or the day they share is counted twice or not at all.
2.2. Revenue and CoGS
When the period has sales, the Revenue tile shows your revenue excluding VAT and which days' sales it covers, for example Sales from 5 Oct to 11 Oct · 7 days. Next to it, two tiles show CoGS and gross profit, as a percentage of revenue and as an amount:
- Theoretical is what your sales should have cost: the stock value of the ingredients they took out of stock.
- Actual is what your sales cost: theoretical CoGS plus waste, minus the stock variance. Stock missing at the closing count adds to it, stock found takes it off. It shows dashes until the period has a closing count.
Select the info icon next to a tile to see how the figure is built, with this period's own amounts.
Actual CoGS can be lower than theoretical CoGS: that happens when your counts found more stock than your movements predicted.
2.3. Smart figures: sales that did not deplete stock
Normally every sale takes its ingredients out of stock. Sometimes a sale takes nothing out: the POS item was linked to its recipe after the sale, the ticket reached Apicbase late, or an ingredient had no stock at this outlet yet.
The ingredients still left the kitchen. So the closing count finds them missing, and their cost ends up in the stock variance instead of in your sales cost. Your theoretical CoGS then looks too low and your variance too high.
Smart figures correct that: they count those sales as sales, at their recipe cost. When a period has such sales, you see:
- Theoretical smart next to theoretical CoGS, and a Smart column in the statement with only the figures that change.
- Sales (stock) and Sales (smart) in the charts.
- On the Sales card, how much did not deplete stock.
Actual CoGS is the same either way: smart figures only move that cost from the variance to sales. A positive smart variance means some of those sales never showed up as missing, usually because they used stock this outlet does not count.

2.4. The statement
The statement has a Stock section and, when the period has sales, a CoGS section.
- Opening stock and Closing stock are the outlet's whole stock at the count. Items a count did not cover keep their last-known stock.
- Theoretical stock is the opening stock plus everything that came in, less everything that went out. It is what you should have if every movement was recorded.
- Stock variance is closing stock minus theoretical stock. A negative variance means you counted less than expected. Negative variance and Positive variance under it show what your counts found less and more of.
- The CoGS section runs from Revenue through Theoretical CoGS, Waste and Stock variance to Actual CoGS, with theoretical and actual gross profit and a % rev. column.
Until a closing count is assigned, the statement stops at Theoretical stock. Theoretical stock below zero shows in amber: stock was probably registered wrongly, so the variance and actual CoGS are not reliable.
2.5. Goods received and returnables
Goods Received shows the stock your deliveries added. When the supplier billed a different amount, that amount follows in brackets, for example (€120.00 billed). A delivery received without updating stock adds nothing and shows a ban icon.
Returnables covers crates, kegs, bottles and other items with a deposit. They come in with a delivery (In) and go back to the supplier with one (Out). The card shows the net value they moved, with In and Out under it, and one row per order. Deposit is what the supplier charged minus what they credited; Value is the stock value the items moved, so the two can differ slightly. To correct a delivery, select Edit in the row's Actions menu.

3. Close the period
Closing needs a second full count. It has to meet the same requirements as the opening count. It also has to be a different count, dated after the opening count, and it must not make the period run into a closed one.
- Finish the full count you want to close on.
- Under Closing count at the top of the card, select Assign closing count and pick that count.
- Read Worth a look before closing on the card (see below).
- Select Close Stock Period.
- Read Close Period Summary. It shows the opening and closing counts, the Stock variance with its positive and negative variance, and the same checks.
- Select Close Period.

If Close Stock Period is greyed out, hover it to see why.
Once a closing count is assigned, Worth a look before closing lists what to check. None of these checks stops you closing:
- POS sync in progress: recent sales may not be counted yet.
- Items not counted: they keep their last-known stock.
- Items with negative stock.
- Events still open: they are not in the closing value.
- Orders not yet (fully) received: their stock lands in the period they are received in.
- Theoretical stock below zero.
- Sales deducted up to: the newest POS sale taken out of stock.

To swap or remove the closing count, select its name and choose Assign a different count or Remove closing count. You can do this for as long as the period is open.
You can also assign the closing count when you finish a full count on the count screen. The period itself stays open until you close it here.
If the outlet has no later period yet and you are not re-closing a reopened period, the summary also offers Close & Open Next Period. It closes the period and opens the new period dialog with your closing count preselected as the opening count. You still confirm the new period there. Close Period alone leaves the outlet with no open period until you use Add Period.
Close periods in order. You cannot close a period while an earlier period on the same outlet is still open or reopened: An earlier open stock period must be closed first.
Once the period is closed, its window is frozen. You cannot save a count, waste, transfer, preparation or manual sale dated in or before a closed period, and the date pickers grey out the days inside it. Draft purchase orders are the exception: you can always edit, cancel or empty a cart.
A closed period keeps the figures calculated when it was closed. To recalculate it, reopen it and close it again.
4. Reopen, re-close or delete
Reopen a closed period when you need to correct it, then close it again when you are done. Select Reopen on the period under Closed periods.
Two rules limit reopening. You can only reopen the most recent closed period of an outlet, so work backwards to reach an older one. Older closed periods show Reopen greyed out: Reopen the most recent closed period first. Periods are reopened newest first. And a period can only be reopened if it ended within the last 180 days.
To delete a period, select Delete on its card. A period that is closed cannot be deleted, and neither can a period that has a closed period after it: A closed period must be reopened before it can be deleted.
You cannot change the date of a count that is the boundary of a closed period: This count is the boundary of a closed stock period. Reopen the period before changing its date.
5. If a message stops you
- Only full counts can open a period. or Only top-level counts can open a period. Use the top-level full count, not a partial count or a sub-count.
- Opening count must be from the last 180 days. Older counts cannot start a period.
- A later closed stock period must be reopened first. Reopening works backwards from the newest.
- The closing count is being edited. Finish it before closing the period. The count you assigned was reopened for a recount. Close it first.
- Selected date falls in or before a closed stock period. Reopen the period to edit it, or use a date after the last close. You tried to save a count, waste, transfer, preparation or manual sale on a date inside or before a closed period.
- Delivery date falls in a closed stock period. or Sent date falls in a closed stock period on this outlet. The same rule for receiving a delivery or shipping from a central kitchen.
What stock periods do not do
- Closing a period does not open the next one by itself. Close & Open Next Period opens the dialog and you confirm.
- The checks never block a close.
- There is no export and no comparison between periods.