Annual audit flow: add a temporary ledger lock so reports can be drafted before the final lock

Open
#5,245 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
backend, databases

Research direction

Start by locating the annual audit flow and its ledger lock and report generation entry points; the issue does not name specific files or tests. Read how the current final lock and report states work, then determine the intended rules for edits, authorization, and audit logging. Done means draft reports can be reviewed against a stable ledger, changes can be applied and drafts regenerated, and the permanent lock follows approval.

Written by the indexing model from the issue text.

Description

annual-audit-workflow

Problem

In the annual audit flow, the ledger lock happens before all reports are generated. Once the ledger is locked, the accountant can no longer change anything, so any decision made while preparing the reports (tax calculations, categorization) cannot be applied.

Feature request

Add a temporary ledger lock (a soft or draft lock) to the annual audit flow, so the accountant can:

  • Generate draft versions of all the annual reports against a stable ledger.
  • Make decisions about tax calculations and transaction categorization based on those drafts.
  • Apply the resulting changes, regenerate the drafts, and only then apply the final (permanent) ledger lock.

Suggested behavior (open for discussion)

  • The temporary lock freezes the ledger for the audit period, so draft reports stay consistent while they are reviewed.
  • It is explicitly reversible: an authorized user can release it and make adjustments.
  • It is clearly distinct from the final lock in the UI and API (for example a separate state and label).
  • The final lock is only applied after the reports are generated and approved.
  • Reports generated under the temporary lock are marked as drafts.

Open questions

  • Should the temporary lock block all edits, or only some (for example allow categorization and tax-related changes but block new imports)?
  • Which roles can set and release it?
  • Should releasing it be logged for audit purposes?

Generated by Claude Code

Dominant language
TypeScript
Stars
30
Forks
10
Avg merge
2d 12h
Merged PRs (30d)
276

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Urigo/accounter-fullstack

All issues in Urigo/accounter-fullstack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.