Chart-of-accounts: rename / mark closed #31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to the chart-edit admin UI (
libra#30-ish). These ops are intentionally harder than "add" — capturing the design questions here so they don't get attempted under the assumption they're just symmetric to add.Mark closed
Beancount-native: append a
YYYY-MM-DD close <account>directive. Once closed, fava UI hides the account from new-entry flows but preserves historical postings. This is safe.DELETE /api/v1/admin/accounts/{name}that appends aclosedirective toaccounts/chart.beancountRename
Hard. Beancount has no rename API. Two options:
transactions.beancount(and any include) and string-substitute the account name. Idempotent if the rename is unique. Risky — touches every historical record.YYYY-MM-DD note "renamed to X" Account+ close, thenopen NewAccount. Posting history not rewritten. Reports get noisier (two accounts to sum).Recommendation: pick (1) only via a one-off operator-driven CLI; don't expose it as a UI button. Or just don't support it.
Acceptance
Decision documented; either close-only implemented OR both implemented per chosen design.
Out of v1 scope for the chart-edit work; this issue exists to capture the design question.