# Document dates and period close

> Document dates, back-dated entries and period close in Smakład — keeping stock, sales and accounting consistent with the records.

> Machine translation, editorial review pending.

Source: https://docs.smaklad.pl/en/guide/dates-periods/

> Documents often reach the office later than the operation took place: a supplier's delivery note arrives three days later, a production report is handed in the next morning. In the system any document can be entered **with its own date**, but that date is subject to common rules that are the same in every module.

## 13.1. Document date and operation date

- **Operation date** — the day the operation took place: goods were received, products were made, money was collected.
- **Document date** — the date the document is issued with. It determines the document **number** and the **period** it falls into (accounting month, VAT month).

Example: a delivery arrived on 28.11, and the PZ (goods receipt) was issued on 03.12 → operation date 28.11, document date 03.12, number `PZ/2026/12/…`. If the document is also dated 28.11, the number will be a November one: `PZ/2026/11/…` — the next free November number, even if November already has documents with later dates. The order of entry is kept in the document history ("Entered"), so gap-free numbering is not broken.

Where the date is chosen:

| Section | Field |
|---|---|
| Warehouse: manual receipt (PZ) | "PZ document date", "Receipt date" |
| Warehouse: reversal (KOR, correction) | "Storno date" — not earlier than the original document |
| Production: completing an order | "Production date and time" — the packing date and the expiry date are calculated from it |
| Sales: new order (staff) | "Order date" |
| Finance: sales invoice (FV), correction (FK) | "Issue date", "Sale date", "Payment date" |
| Finance: supplier invoice (FZ, purchase invoice) | "Issue date", "Delivery date", "Received on" |
| Finance: manual journal entry, reversal of an entry | "Date" |
| People: payroll calculation | "Payroll list date" (lista płac) |
| HACCP: goods acceptance, temperature log | "Delivery date", "Measurement date" |

Documents entered retroactively are marked in the list with an **"entered late"** badge showing the date and time of entry.

## 13.2. Rules the system checks

1. **Not in the future.** A document date cannot be later than today (Warsaw time). In forms the calendar does not let you pick tomorrow, and the server rejects such a document with the message "Document date is in the future".
2. **Not in a closed month.** Once accounting has closed a month, no module accepts a document dated in that month: not the warehouse, not production, not invoices. Message: "Period closed". Corrections are entered in the current period.
3. **Not in a month for which JPK_V7M has been filed.** Sales and purchase invoices dated in such a month are rejected ("The VAT return for this month has already been filed"). A **correction invoice (FK)** is still allowed — it is dated today and falls into the current VAT period.
4. **Operation date no later than the document date.** You cannot issue a document before the operation took place.
5. **Only real dates.** The system will not accept 31.11 or 29.02 in a non-leap year. Leap years are taken into account: 29.02.2028 is a valid date.

## 13.3. Warehouse: stock "as of that day"

When a warehouse document is dated in the past, the system checks stock **as of that day**, not as of today:

- you cannot issue a lot that was received after the document date;
- you cannot issue a lot whose expiry date had already passed on that date;
- stock cannot go negative on any day after the document date — even if there is enough stock today;
- a document cannot be dated **before** a stocktake already posted for that warehouse ("A stocktake was posted after this date").
- a receipt from a supplier invoice entered after the stocktake but with a delivery date before it is booked by the system **on the day after the stocktake**, with the note "Dostawa z dnia …" (details in [section 6.8](https://docs.smaklad.pl/en/guide/warehouse/#68-stocktake));
- while a warehouse is being counted in a stocktake, its documents cannot be posted with any date (`STOCKTAKE_IN_PROGRESS`) — prepare drafts.

**Food safety.** A lot that is expired now can be issued with a past date (when it was still within its date) only when a real operation (sale, production) is posted automatically, or with a manual document by a **manager or administrator**, no more than 7 days back. A cashier or kitchen user cannot post such a document: otherwise a back-dated document would become a way to release expired goods today.

If an automatic document (production, shipment for an order, receipt from an invoice) falls into a closed month, it is **not** silently moved to today: the operation is flagged as a posting error with the reason "Period closed", and this is visible on the document.

## 13.4. Month close

**Finance → General ledger → Periods.** The accountant closes a month once all documents have been entered and checked. From that moment:

- all modules reject documents dated in the closed month;
- only an administrator can reopen a month, and a reason is mandatory (the reason is kept in the period history);
- a month cannot be closed while there are unresolved rejected postings dated in it or while JPK_V7M has not been generated; an administrator can close it "anyway" with a reason (see [Finance → Periods](https://docs.smaklad.pl/en/guide/finance/));
- a supplier invoice for a delivery in a closed month is posted with the date the invoice was received (and the warehouse receives the goods on that date), and a supplier correction is posted with the date it was received;
- after the year is closed (BZ/BO), the months of that year cannot be reopened.

Payroll is posted with the **payroll list (lista płac)** date, but no later than the last day of the payroll month. Payroll cannot be posted with a future date.

## 13.6. Common messages

| Message | What it means | What to do |
|---|---|---|
| Document date is in the future | a date later than today was chosen | choose today or a past date |
| Period closed | the month has been closed by accounting | issue the document in the current month or ask an administrator to reopen the month |
| The VAT return for this month has already been filed | JPK_V7M has been filed for the month | issue a correction invoice with the current date |
| Operation date is later than the document date | the dates have been mixed up | the operation date must be earlier than or equal to the document date |
| Lot not available on this date | the lot did not exist on the document date or was already expired | choose another lot or check the date |
| A stocktake was posted after this date | the document is earlier than a posted stocktake | issue the document with a date after the stocktake |
| A stocktake of this warehouse is in progress | the warehouse is being counted | save a draft and post it after the stocktake is approved |
