KontoCloud

Help / Control

Period lock

Lock the books up to a date so that nothing, not even a reversal, can be posted in a period that is already finished.

On this page

The Period lock screen (Control group) locks the books up to and including a given date. In a locked period, neither an entry nor a reversal can be posted. This is enforced by the database, so the ban applies in the application, through the API and in the kc CLI.

You usually lock once the month is finished and checked. The last step of Month-end close is exactly the lock.

Current state

The top of the screen shows one of three states:

  • “Locked up to and including {date} — {user}, {time}, “{reason}””;
  • “Unlocked — {user}, {time}, “{reason}”” — it was locked once, and now nothing is locked;
  • “Nothing is locked.”

Locking

  1. In Lock through, choose the last day to lock, for example 31.03.2026.
  2. In Reason, write why, for example “VAT return for the first quarter submitted”.
  3. Click Lock.
  4. The message “Period lock changed (recorded in the audit trail)” appears.

If issued invoices are awaiting posting, review the count and choose Lock anyway to continue. Reopen the period with a reason to post the invoices on their issue date.

If you click Lock without a date, the message “Pick a date” appears.

Unlocking

The lock is moved back in two ways:

  • Earlier date. Choose an earlier date in Lock through and click Lock. Everything after the new date is open again.
  • Unlock all. Click Unlock all (red button). After this, nothing is locked.

Both buttons are disabled while Reason is empty.

Important: Unlocking is visible. Every change, with date, user and reason, stays in the history and in the Audit trail as period.lock_changed.

Who may

Action Role
Viewing the state all roles
Lock and Unlock all administrator or accountant

If another role tries to change the lock, the database rejects it with “You do not have permission for this action in this legal entity”.

What the database rejects

  • Posting with a date in the locked period, including reversals and entries from other records: “KC003 The period is locked until DD.MM.YYYY — posting with date DD.MM.YYYY is not allowed”.
  • A manual mark in month-end close for a month in a locked period: “KC198 The period is locked until DD.MM.YYYY — the month accepts no new marks”.
  • Changing the lock in read-only mode: KC070 (see Read-only).

A posted entry cannot be changed even in an open period; a mistake is corrected with a reversal. See Reversals and corrections.

Period lock and year-end closing

When the administrator closes the financial year, the period is automatically locked through the last day of that year. If the year is reopened, the lock goes back to the day before the start of the year.

From the command line

  • kc lock — shows the state.
  • kc lock --until 2026-03-31 --reason "…" — locks up to a date.
  • kc lock --clear --reason "…" — unlocks everything.

Something unclear or wrong? Write to us at [email protected].