Skip to content

Commit d62f326

Browse files
committed
financial periods
1 parent da88cfd commit d62f326

9 files changed

+174
-1
lines changed
25.4 KB
Loading
15.3 KB
Loading
42.5 KB
Loading
81.2 KB
Loading
72.6 KB
Loading
120 KB
Loading

src/pages/admin/admin-manager-overview.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ This index will expand as additional modules are integrated.
6060
- [Users](/admin/admin-manager-users)
6161
- Process confirmed registrations by creating `Usr.tbUser`.
6262
- Assign roles and delete users safely.
63+
- [Financial Periods](/admin/admin-manager-periods)
64+
- Set the financial year and monthly boundaries.
65+
- Close months (Period End) and rebuild closed periods after historic changes.
6366

6467
## Related deployment documentation
6568

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
---
2+
layout: ../../layouts/Documentation.astro
3+
title: Admin Manager - Financial Periods
4+
permalink: /admin/admin-manager-periods
5+
---
6+
7+
The Financial Periods module is where you define your accounting calendar and control how Trade Control closes each month.
8+
9+
Financial Periods provide the “time structure” needed to measure business performance over defined accounting periods. They do not structure the data, since Trade Control stores transactions as atomic postings.
10+
11+
A business system could operate without period ends. However, in most societies, period-based accounting is not optional in practice. It is central to how owners, lenders, auditors, and governments evaluate a business.
12+
13+
## Why period ends matter
14+
15+
Period ends are vitally important for:
16+
17+
### 1) How much money can be extracted from the business
18+
19+
Owners typically extract value from a business based on performance over an accounting period.
20+
21+
Period ends support:
22+
23+
- Measuring whether the business increased in value over a given period
24+
- Identifying how much capital (profit) is available for distribution or reinvestment
25+
- Producing comparable month-by-month and year-by-year results
26+
27+
### 2) Corporation Tax (annual)
28+
29+
Corporation Tax is calculated on profits earned over the business’s accounting year.
30+
31+
A clear financial year structure and stable period closes help ensure:
32+
33+
- Annual profit can be reported consistently
34+
- Adjustments to historic transactions are controlled and auditable
35+
36+
### 3) VAT (quarterly)
37+
38+
VAT is typically assessed over quarterly periods.
39+
40+
Financial periods provide the date boundaries required to reliably determine:
41+
42+
- How much VAT was collected on sales in the quarter
43+
- How much VAT was incurred on purchases in the quarter
44+
- The net VAT payable (or reclaimable) for that period
45+
46+
## Access
47+
48+
Open:
49+
50+
- **System > Admin Manager**
51+
- In the tree: **Tax > Financial Periods**
52+
53+
On desktop, Financial Periods opens in the right-hand pane. On mobile it opens as a full page.
54+
55+
<div style="max-width: 900px; margin: 1rem 0;">
56+
<img
57+
src="/images/admin-manager-periods-tree.png"
58+
alt="Admin Manager tree showing Tax > Financial Periods"
59+
style="width: 100%; height: auto; display: block; border-radius: 8px;"
60+
/>
61+
</div>
62+
63+
## Key concepts
64+
65+
### Financial year
66+
67+
A financial year defines the official 12‑month reporting cycle for the business.
68+
69+
This is the year used to produce annual accounts and corporate tax reporting.
70+
71+
### Monthly periods and boundaries
72+
73+
Each year is split into monthly periods.
74+
75+
A monthly period has a **start date**. It does not have to be the 1st.
76+
77+
This lets you align period boundaries to real operational close-down schedules (for example, after stock take or other month-end routines).
78+
79+
## Financial Periods (Index page)
80+
81+
The Index page shows:
82+
83+
- The current **Active period**
84+
- A list of financial years in the system
85+
- Administrator actions for close and rebuild
86+
87+
<div style="max-width: 900px; margin: 1rem 0;">
88+
<img
89+
src="/images/admin-manager-periods-index.png"
90+
alt="Financial Periods (Index) showing Active period, action buttons, and financial years list"
91+
style="width: 100%; height: auto; display: block; border-radius: 8px;"
92+
/>
93+
</div>
94+
95+
### Period End (close the month)
96+
97+
Use **Period End** to close the current Active period and advance to the next month.
98+
99+
Why this exists:
100+
101+
- Month end creates stable reporting results for that period.
102+
- Without a close-down concept, historic results can change every time someone edits an older transaction.
103+
104+
Expected outcome:
105+
106+
- The Active period updates to the next month.
107+
- A success message is shown.
108+
109+
<div style="max-width: 900px; margin: 1rem 0;">
110+
<img
111+
src="/images/admin-manager-periods-flash-success.png"
112+
alt="Financial Periods success message after Period End or rebuild actions"
113+
style="width: 100%; height: auto; display: block; border-radius: 8px;"
114+
/>
115+
</div>
116+
117+
### Rebuild Periods (accept changes to closed history)
118+
119+
Use **Rebuild Periods** if historic transactions have been changed in a period that has already been closed and you want reporting totals to reflect those changes.
120+
121+
This is the explicit “accept the change into closed reporting” action.
122+
123+
Expected outcome:
124+
125+
- A success message is shown.
126+
- Reports that rely on closed period ends reflect the revised history.
127+
128+
### Rebuild System (repair)
129+
130+
Use **Rebuild System** only when you suspect the system’s period/reporting state is inconsistent or corrupted.
131+
132+
Expected outcome:
133+
134+
- A success message is shown, or
135+
- A failure message is shown with a link to Event Logs
136+
137+
## Configure month boundaries to match your close-down schedule
138+
139+
Use this workflow to align Trade Control period boundaries to your business month-end routines.
140+
141+
1. Open **Financial Periods**
142+
2. Select **Edit** on the financial year you want to adjust
143+
3. In the month list, open the month you want to change
144+
4. Update the period **Start date**
145+
5. Select **Update**
146+
6. If the edited month is already closed and you want reports to reflect the change, run **Rebuild Periods**
147+
148+
<div style="max-width: 900px; margin: 1rem 0;">
149+
<img
150+
src="/images/admin-manager-periods-edit-year.png"
151+
alt="Edit Financial Year page showing the month list"
152+
style="width: 100%; height: auto; display: block; border-radius: 8px;"
153+
/>
154+
</div>
155+
156+
<div style="max-width: 900px; margin: 1rem 0;">
157+
<img
158+
src="/images/admin-manager-periods-edit-period.png"
159+
alt="Edit Period page showing the Start date control"
160+
style="width: 100%; height: auto; display: block; border-radius: 8px;"
161+
/>
162+
</div>
163+
164+
## Event Logs
165+
166+
If an action fails, the page provides a link to **Event Logs**.
167+
168+
From Admin Manager on desktop, Event Logs opens outside the embedded pane and includes a **Back** button to return to Admin Manager with Financial Periods selected.

src/scripts/mermaid-init.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import mermaid from "mermaid";
2+
13
const looksLikeMermaid = (text) => {
24
const t = (text ?? "").trimStart();
35

@@ -57,7 +59,7 @@ const run = async () => {
5759

5860
if (mermaidCandidates.length === 0) return;
5961

60-
const { default: mermaid } = await import("mermaid");
62+
//const { default: mermaid } = await import("mermaid");
6163

6264
mermaid.initialize({
6365
startOnLoad: false,

0 commit comments

Comments
 (0)