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

オープン
#5,245 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
backend, databases

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
30
フォーク
10
平均マージ
2日 12時間
マージ済み PR(30日)
276

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Urigo/accounter-fullstack のほかの issue

Urigo/accounter-fullstack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。