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

Abierto
#5,245 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
30
Forks
10
Merge medio
2 d 12 h
PR fusionados (30 d)
276

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Urigo/accounter-fullstack

Todos los issues de Urigo/accounter-fullstack

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.