jaz-cli 2.2.1 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/assets/skills/api/SKILL.md +35 -34
  2. package/assets/skills/api/references/errors.md +15 -7
  3. package/assets/skills/api/references/feature-glossary.md +15 -3
  4. package/assets/skills/api/references/field-map.md +3 -3
  5. package/assets/skills/conversion/SKILL.md +1 -1
  6. package/assets/skills/transaction-recipes/SKILL.md +199 -0
  7. package/assets/skills/transaction-recipes/references/accrued-expenses.md +157 -0
  8. package/assets/skills/transaction-recipes/references/bad-debt-provision.md +145 -0
  9. package/assets/skills/transaction-recipes/references/bank-loan.md +145 -0
  10. package/assets/skills/transaction-recipes/references/building-blocks.md +135 -0
  11. package/assets/skills/transaction-recipes/references/capital-wip.md +167 -0
  12. package/assets/skills/transaction-recipes/references/declining-balance.md +190 -0
  13. package/assets/skills/transaction-recipes/references/deferred-revenue.md +125 -0
  14. package/assets/skills/transaction-recipes/references/dividend.md +111 -0
  15. package/assets/skills/transaction-recipes/references/employee-accruals.md +154 -0
  16. package/assets/skills/transaction-recipes/references/fx-revaluation.md +135 -0
  17. package/assets/skills/transaction-recipes/references/ifrs16-lease.md +188 -0
  18. package/assets/skills/transaction-recipes/references/intercompany.md +150 -0
  19. package/assets/skills/transaction-recipes/references/prepaid-amortization.md +123 -0
  20. package/assets/skills/transaction-recipes/references/provisions.md +142 -0
  21. package/dist/calc/amortization.js +104 -0
  22. package/dist/calc/blueprint.js +21 -0
  23. package/dist/calc/depreciation.js +177 -0
  24. package/dist/calc/ecl.js +89 -0
  25. package/dist/calc/format.js +389 -0
  26. package/dist/calc/fx-reval.js +83 -0
  27. package/dist/calc/lease.js +117 -0
  28. package/dist/calc/loan.js +97 -0
  29. package/dist/calc/provision.js +112 -0
  30. package/dist/calc/types.js +21 -0
  31. package/dist/calc/validate.js +48 -0
  32. package/dist/commands/calc.js +200 -0
  33. package/dist/commands/init.js +8 -3
  34. package/dist/index.js +2 -0
  35. package/dist/types/index.js +2 -1
  36. package/dist/utils/template.js +1 -1
  37. package/package.json +3 -2
@@ -0,0 +1,190 @@
1
+ # Recipe: Declining Balance Depreciation
2
+
3
+ ## Scenario
4
+
5
+ Your company purchases a delivery vehicle for $50,000 with a 5-year useful life and $5,000 salvage value. Management wants to use **double declining balance (DDB)** depreciation instead of straight-line because the vehicle loses more value in early years. Jaz only supports straight-line natively, so you record depreciation manually.
6
+
7
+ **Pattern:** Manual journals + capsule (depreciation amount changes each period)
8
+
9
+ **Why manual:** Jaz's fixed asset register only supports straight-line depreciation. Declining balance produces different amounts each period as the book value decreases, so a scheduler (fixed-amount) won't work either.
10
+
11
+ ---
12
+
13
+ ## Accounts Involved
14
+
15
+ | Account | Type | Subtype | Role |
16
+ |---|---|---|---|
17
+ | Vehicles | Asset | Non-Current Asset | The asset at cost |
18
+ | Accumulated Depreciation — Vehicles | Asset | Non-Current Asset | Contra-asset reducing net book value |
19
+ | Depreciation Expense | Expense | Expense | Monthly/annual depreciation charge |
20
+
21
+ > **Do NOT register the asset in Jaz's fixed asset register** — that would trigger automatic straight-line depreciation. Track the asset in the CoA only.
22
+
23
+ ---
24
+
25
+ ## DDB Method — How It Works
26
+
27
+ **Double Declining Balance Rate:**
28
+ ```
29
+ DDB Rate = 2 / Useful Life = 2 / 5 = 40% per year
30
+ ```
31
+
32
+ **Each period:**
33
+ ```
34
+ Depreciation = Book Value at Start of Period × DDB Rate
35
+ ```
36
+
37
+ **Key constraint:** Book value can never go below salvage value. When the declining balance amount would push book value below salvage, **switch to straight-line** for the remaining life.
38
+
39
+ **Switch-to-straight-line rule:** At the start of each period, compare:
40
+ - DDB depreciation = Book value × DDB rate
41
+ - Straight-line for remaining life = (Book value − Salvage value) / Remaining years
42
+
43
+ When straight-line ≥ DDB, switch to straight-line for all remaining periods.
44
+
45
+ ---
46
+
47
+ ## Journal Entry (Each Period)
48
+
49
+ | Line | Account | Debit | Credit |
50
+ |---|---|---|---|
51
+ | 1 | Depreciation Expense | *calculated amount* | |
52
+ | 2 | Accumulated Depreciation — Vehicles | | *calculated amount* |
53
+
54
+ ---
55
+
56
+ ## Capsule Structure
57
+
58
+ **Capsule:** "Depreciation — Delivery Vehicle VH-001"
59
+ **Capsule Type:** "Depreciation (Non-Standard)"
60
+
61
+ Contents:
62
+ - 5 annual depreciation journals (or 60 monthly if recording monthly)
63
+ - **Total entries:** 5 (annual) or 60 (monthly)
64
+
65
+ ---
66
+
67
+ ## Worked Example — Annual
68
+
69
+ **Asset details:**
70
+ - Cost: $50,000
71
+ - Salvage value: $5,000
72
+ - Useful life: 5 years
73
+ - DDB rate: 40%
74
+ - Depreciable base: $45,000
75
+
76
+ ### Annual Depreciation Schedule
77
+
78
+ | Year | Opening Book Value | DDB (40%) | SL for Remaining | Use | Depreciation | Closing Book Value |
79
+ |---|---|---|---|---|---|---|
80
+ | 1 | $50,000 | $20,000 | $9,000 (45k/5) | DDB | **$20,000** | $30,000 |
81
+ | 2 | $30,000 | $12,000 | $6,250 (25k/4) | DDB | **$12,000** | $18,000 |
82
+ | 3 | $18,000 | $7,200 | $4,333 (13k/3) | DDB | **$7,200** | $10,800 |
83
+ | 4 | $10,800 | $4,320 | $2,900 (5.8k/2) | DDB | **$4,320** | $6,480 |
84
+ | 5 | $6,480 | $2,592 | $1,480 (1.48k/1) | **Switch** | **$1,480** | $5,000 |
85
+
86
+ **Year 5 switch logic:**
87
+ - DDB = $6,480 × 40% = $2,592 → would give closing BV of $3,888 (below salvage)
88
+ - SL = ($6,480 − $5,000) / 1 = $1,480
89
+ - Since we can't go below salvage, depreciate only $1,480
90
+
91
+ **Total depreciation:** $20,000 + $12,000 + $7,200 + $4,320 + $1,480 = **$45,000** ✓
92
+
93
+ ### Year 1 Journal Entry
94
+
95
+ - Dr Depreciation Expense $20,000
96
+ - Cr Accumulated Depreciation — Vehicles $20,000
97
+ - Description: "DDB depreciation — Delivery Vehicle VH-001 — Year 1 of 5"
98
+ - Assign to capsule
99
+
100
+ ### Year 4 Journal Entry
101
+
102
+ - Dr Depreciation Expense $4,320
103
+ - Cr Accumulated Depreciation — Vehicles $4,320
104
+ - Description: "DDB depreciation — Delivery Vehicle VH-001 — Year 4 of 5"
105
+ - Assign to capsule
106
+
107
+ ### Year 5 Journal Entry (Switched to SL)
108
+
109
+ - Dr Depreciation Expense $1,480
110
+ - Cr Accumulated Depreciation — Vehicles $1,480
111
+ - Description: "SL depreciation (switched from DDB) — Delivery Vehicle VH-001 — Year 5 of 5"
112
+ - Assign to capsule
113
+
114
+ ---
115
+
116
+ ## Worked Example — Monthly
117
+
118
+ For monthly recording, divide each year's depreciation by 12:
119
+
120
+ | Year | Annual Depreciation | Monthly Depreciation |
121
+ |---|---|---|
122
+ | 1 | $20,000 | $1,666.67 |
123
+ | 2 | $12,000 | $1,000.00 |
124
+ | 3 | $7,200 | $600.00 |
125
+ | 4 | $4,320 | $360.00 |
126
+ | 5 | $1,480 | $123.33 |
127
+
128
+ **Month 1 (Year 1) journal:**
129
+ - Dr Depreciation Expense $1,666.67
130
+ - Cr Accumulated Depreciation — Vehicles $1,666.67
131
+ - Description: "DDB depreciation — Delivery Vehicle VH-001 — Month 1 of 60"
132
+
133
+ **Month 13 (Year 2, Month 1) journal:**
134
+ - Dr Depreciation Expense $1,000.00
135
+ - Cr Accumulated Depreciation — Vehicles $1,000.00
136
+ - Description: "DDB depreciation — Delivery Vehicle VH-001 — Month 13 of 60"
137
+
138
+ > The monthly amount changes at the start of each year, not each month. Within a year, the monthly amount is constant.
139
+
140
+ ---
141
+
142
+ ## Enrichment Suggestions
143
+
144
+ | Enrichment | Value | Why |
145
+ |---|---|---|
146
+ | Tracking Tag | "Vehicle Depreciation" | Filter all vehicle depreciation entries |
147
+ | Nano Classifier | Asset Class → "Motor Vehicles" | Break down depreciation by asset class |
148
+ | Custom Field | "Asset ID" → "VH-001" | Record the internal asset tracking number |
149
+
150
+ ---
151
+
152
+ ## Verification
153
+
154
+ 1. **Group General Ledger by Capsule** → Shows all depreciation entries. Accumulated Depreciation should sum to $45,000 at end of Year 5.
155
+ 2. **Trial Balance at any date** → Vehicles account shows $50,000 (cost, unchanged). Accumulated Depreciation shows the running total. Net book value = Cost − Accumulated Depreciation.
156
+ 3. **Net book value check:**
157
+ - End of Year 1: $50,000 − $20,000 = $30,000
158
+ - End of Year 3: $50,000 − $39,200 = $10,800
159
+ - End of Year 5: $50,000 − $45,000 = $5,000 (= salvage value) ✓
160
+ 4. **P&L per year** → Depreciation Expense matches the annual schedule: $20K, $12K, $7.2K, $4.32K, $1.48K.
161
+
162
+ ---
163
+
164
+ ## Variations
165
+
166
+ **150% declining balance:** Use rate = 1.5 / Useful Life instead of 2 / Useful Life. Same switch-to-SL logic applies.
167
+
168
+ **No salvage value:** If salvage = $0, the switch-to-SL happens when SL depreciation ≥ DDB. The entire cost is depreciated.
169
+
170
+ **Mid-year acquisition:** If the vehicle is purchased in July, Year 1 gets 6/12 of the annual DDB amount. The remaining 6/12 rolls into a 6th partial year. Adjust the schedule accordingly.
171
+
172
+ **Disposal before end of life:** If the vehicle is sold in Year 3:
173
+ 1. Record depreciation up to the disposal date (prorated if mid-year)
174
+ 2. Remove the asset: Dr Cash (proceeds) + Dr Accumulated Depreciation + Dr/Cr Gain or Loss on Disposal / Cr Vehicles (cost)
175
+ 3. All entries stay in the same capsule for audit trail
176
+
177
+ **Multiple assets:** Create a separate capsule per asset. Use the same "Depreciation (Non-Standard)" capsule type. Tags and nano classifiers help aggregate across assets in reports.
178
+
179
+ ### Comparison: DDB vs Straight-Line
180
+
181
+ | Year | DDB | Straight-Line ($9,000/yr) | Difference |
182
+ |---|---|---|---|
183
+ | 1 | $20,000 | $9,000 | +$11,000 |
184
+ | 2 | $12,000 | $9,000 | +$3,000 |
185
+ | 3 | $7,200 | $9,000 | −$1,800 |
186
+ | 4 | $4,320 | $9,000 | −$4,680 |
187
+ | 5 | $1,480 | $9,000 | −$7,520 |
188
+ | **Total** | **$45,000** | **$45,000** | **$0** |
189
+
190
+ Both methods depreciate the same total ($45,000). DDB front-loads the expense — higher expense in early years, lower in later years.
@@ -0,0 +1,125 @@
1
+ # Recipe: Deferred Revenue
2
+
3
+ ## Scenario
4
+
5
+ A customer pays $24,000 upfront for a 12-month SaaS subscription (Jan 1 to Dec 31, 2025). The cash is a liability on day one (you owe the service), then recognized as revenue evenly over 12 months at $2,000/month.
6
+
7
+ **Pattern:** Scheduler + capsule (fixed monthly amount)
8
+
9
+ ---
10
+
11
+ ## Accounts Involved
12
+
13
+ | Account | Type | Subtype | Role |
14
+ |---|---|---|---|
15
+ | Deferred Revenue | Liability | Current Liability | Holds unearned revenue |
16
+ | Subscription Revenue | Revenue | Revenue | Receives monthly recognition |
17
+ | Cash / Bank Account | Asset | Bank | Receives the upfront payment |
18
+ | Accounts Receivable | Asset | Current Asset | If recorded as an invoice first |
19
+
20
+ ---
21
+
22
+ ## Journal Entries
23
+
24
+ ### Step 1: Record the Upfront Payment
25
+
26
+ **Option A — Invoice (with or without payment):**
27
+
28
+ Create an invoice to the customer for $24,000 with the line item coded to **Deferred Revenue** (not Subscription Revenue). Record payment on the invoice when ready.
29
+
30
+ **Option B — Cash-in entry:**
31
+
32
+ | Line | Account | Debit | Credit |
33
+ |---|---|---|---|
34
+ | 1 | Cash / Bank Account | $24,000 | |
35
+ | 2 | Deferred Revenue | | $24,000 |
36
+
37
+ ### Step 2: Monthly Revenue Recognition (Scheduler)
38
+
39
+ Create a journal scheduler that runs monthly for 12 periods:
40
+
41
+ | Line | Account | Debit | Credit |
42
+ |---|---|---|---|
43
+ | 1 | Deferred Revenue | $2,000 | |
44
+ | 2 | Subscription Revenue | | $2,000 |
45
+
46
+ **Scheduler settings:**
47
+ - Frequency: Monthly
48
+ - Start date: 2025-01-31 (end of first month)
49
+ - **End date: 2025-12-31** — the end date is what ensures the deferred balance fully unwinds to zero. After the 12th entry, the scheduler stops and the Deferred Revenue account is cleared.
50
+ - Capsule: "FY2025 SaaS — Acme Corp"
51
+ - Description: `Revenue recognition — {{MONTH_NAME}} {{YEAR}}`
52
+
53
+ ---
54
+
55
+ ## Capsule Structure
56
+
57
+ **Capsule:** "FY2025 SaaS — Acme Corp"
58
+ **Capsule Type:** "Deferred Revenue"
59
+
60
+ Contents:
61
+ - 1 invoice (or cash-in entry) — the initial $24,000 payment
62
+ - 12 journal entries — generated by the scheduler ($2,000/month)
63
+ - **Total entries:** 13
64
+
65
+ ---
66
+
67
+ ## Worked Example
68
+
69
+ **Setup (Jan 1, 2025):**
70
+ - Record invoice to customer: Dr AR $24,000 / Cr Deferred Revenue $24,000
71
+ - Record payment on invoice: Dr Cash $24,000 / Cr AR $24,000
72
+ - Assign invoice to capsule "FY2025 SaaS — Acme Corp"
73
+ - Create scheduler with same capsule
74
+
75
+ **Month 1 (Jan 31, 2025) — auto-generated:**
76
+ - Dr Deferred Revenue $2,000 / Cr Subscription Revenue $2,000
77
+ - Deferred balance: $22,000
78
+
79
+ **Month 6 (Jun 30, 2025) — auto-generated:**
80
+ - Dr Deferred Revenue $2,000 / Cr Subscription Revenue $2,000
81
+ - Deferred balance: $12,000
82
+
83
+ **Month 12 (Dec 31, 2025) — auto-generated:**
84
+ - Dr Deferred Revenue $2,000 / Cr Subscription Revenue $2,000
85
+ - Deferred balance: $0
86
+
87
+ **Year-end totals:**
88
+ - Subscription Revenue P&L: $24,000
89
+ - Deferred Revenue balance: $0
90
+ - Cash increased by: $24,000
91
+
92
+ ---
93
+
94
+ ## Enrichment Suggestions
95
+
96
+ | Enrichment | Value | Why |
97
+ |---|---|---|
98
+ | Tracking Tag | "SaaS Revenue" | Filter all subscription revenue entries |
99
+ | Nano Classifier | Product → "Enterprise Plan" | Break down revenue by product tier |
100
+ | Custom Field | "Contract Number" → "CTR-2025-042" | Record contract reference on the invoice |
101
+
102
+ Set the tag and nano classifier on the scheduler — all 12 generated journals inherit them automatically.
103
+
104
+ ---
105
+
106
+ ## Verification
107
+
108
+ 1. **Group General Ledger by Capsule** → "FY2025 SaaS — Acme Corp" should show all 13 entries with Deferred Revenue netting to zero.
109
+ 2. **Trial Balance at Dec 31** → Deferred Revenue balance should be $0. Subscription Revenue should show $24,000.
110
+ 3. **Trial Balance at Jun 30** → Deferred Revenue balance should be $12,000. Subscription Revenue should show $12,000.
111
+ 4. **P&L for Q1** → Subscription Revenue = $6,000 (3 months × $2,000).
112
+
113
+ ---
114
+
115
+ ## Variations
116
+
117
+ **Quarterly recognition:** $6,000/quarter for 4 quarters. Change scheduler frequency to quarterly.
118
+
119
+ **Mid-month start:** If the subscription starts Feb 15, prorate February ($24,000 / 365 × 14 days ≈ $921), recognize the remainder over 11 full months at $2,098/month. Use a manual journal for the prorated first period, then a scheduler for remaining full months — both in the same capsule.
120
+
121
+ **Multi-customer:** Create a separate capsule per customer contract. Tags can span all customers (e.g., "SaaS Revenue" tag across all capsules).
122
+
123
+ **Early termination:** If the customer cancels after month 8, remaining deferred revenue ($8,000) is recognized immediately via a manual journal in the capsule. Delete or end the scheduler.
124
+
125
+ **Multi-currency:** If the customer pays in USD but your base currency is SGD, record the invoice using `currency: { sourceCurrency: "USD" }`. Monthly recognition journals should be in SGD at the rate locked on the invoice date.
@@ -0,0 +1,111 @@
1
+ # Recipe: Dividend Declaration and Payment
2
+
3
+ ## Scenario
4
+
5
+ Your company's board declares a final dividend of $200,000 for FY2025, payable on March 15, 2026. Two journal entries are needed: one at the declaration date (creating the obligation) and one at the payment date (settling it). The dividend reduces retained earnings, not current-year profit.
6
+
7
+ **Pattern:** Two manual journals + capsule (declaration + payment)
8
+
9
+ ---
10
+
11
+ ## Accounts Involved
12
+
13
+ | Account | Type | Subtype | Role |
14
+ |---|---|---|---|
15
+ | Retained Earnings | Equity | Retained Earnings | Reduced by declared dividend |
16
+ | Dividends Payable | Liability | Current Liability | Obligation from declaration to payment |
17
+ | Cash / Bank Account | Asset | Bank | Settlement on payment date |
18
+
19
+ > **Note:** Some companies use an "Dividends Declared" equity contra account instead of debiting Retained Earnings directly. Either approach is acceptable — the effect on equity is the same.
20
+
21
+ ---
22
+
23
+ ## Journal Entries
24
+
25
+ ### Step 1: Declaration (board resolution date)
26
+
27
+ | Line | Account | Debit | Credit |
28
+ |---|---|---|---|
29
+ | 1 | Retained Earnings | $200,000 | |
30
+ | 2 | Dividends Payable | | $200,000 |
31
+
32
+ ### Step 2: Payment (settlement date)
33
+
34
+ | Line | Account | Debit | Credit |
35
+ |---|---|---|---|
36
+ | 1 | Dividends Payable | $200,000 | |
37
+ | 2 | Cash / Bank Account | | $200,000 |
38
+
39
+ ---
40
+
41
+ ## Capsule Structure
42
+
43
+ **Capsule:** "FY2025 Final Dividend"
44
+ **Capsule Type:** "Dividends"
45
+
46
+ Contents:
47
+ - 1 declaration journal
48
+ - 1 payment journal
49
+ - **Total entries:** 2
50
+
51
+ ---
52
+
53
+ ## Worked Example
54
+
55
+ **Setup:**
56
+ - Declared amount: $200,000
57
+ - Declaration date: February 15, 2026 (board resolution)
58
+ - Payment date: March 15, 2026
59
+
60
+ **Feb 15, 2026 — Declaration:**
61
+ - Dr Retained Earnings $200,000
62
+ - Cr Dividends Payable $200,000
63
+ - Description: "FY2025 final dividend declared — Board Resolution #BR-2026-003"
64
+ - Assign to capsule
65
+
66
+ **Mar 15, 2026 — Payment:**
67
+ - Dr Dividends Payable $200,000
68
+ - Cr Cash / Bank Account $200,000
69
+ - Description: "FY2025 final dividend payment"
70
+ - Assign to same capsule
71
+
72
+ **After both entries:**
73
+ - Retained Earnings reduced by $200,000
74
+ - Dividends Payable cleared to $0
75
+ - Cash reduced by $200,000
76
+
77
+ ---
78
+
79
+ ## Enrichment Suggestions
80
+
81
+ | Enrichment | Value | Why |
82
+ |---|---|---|
83
+ | Tracking Tag | "Dividend" | Filter all dividend-related entries |
84
+ | Custom Field | "Board Resolution #" → "BR-2026-003" | Audit trail to authorization |
85
+ | Custom Field | "Fiscal Year" → "FY2025" | Link to the year the dividend relates to |
86
+
87
+ ---
88
+
89
+ ## Verification
90
+
91
+ 1. **Trial Balance at Feb 28 (after declaration, before payment)** → Dividends Payable shows $200,000 credit. Retained Earnings reduced by $200,000.
92
+ 2. **Trial Balance at Mar 31 (after payment)** → Dividends Payable shows $0. Cash reduced by $200,000.
93
+ 3. **Statement of Changes in Equity** → Shows the $200,000 dividend reducing retained earnings.
94
+ 4. **Group General Ledger by Capsule** → Both entries visible under "FY2025 Final Dividend."
95
+
96
+ ---
97
+
98
+ ## Variations
99
+
100
+ **Interim dividend:** Same structure, just declared mid-year (e.g., after H1 results). Use a separate capsule: "FY2025 Interim Dividend." Some jurisdictions require interim dividends to be based on audited interim accounts.
101
+
102
+ **Dividend in specie (non-cash):** If the dividend is settled with assets (e.g., property, shares in a subsidiary), replace the Cash credit with the appropriate asset account. Record any gain/loss on the asset transfer in the same journal.
103
+
104
+ **Withholding tax:** If your jurisdiction requires dividend withholding tax, the payment journal splits into net payment + tax payable:
105
+ - Dr Dividends Payable $200,000
106
+ - Cr Cash $170,000 (net to shareholders)
107
+ - Cr Withholding Tax Payable $30,000 (15% tax)
108
+
109
+ Then a separate payment when tax is remitted: Dr WHT Payable $30,000 / Cr Cash $30,000.
110
+
111
+ **Multiple shareholders:** If dividends are paid pro-rata to multiple shareholders, use one multi-line payment journal with a line per shareholder's bank account, or record separate payment journals per shareholder — all in the same capsule.
@@ -0,0 +1,154 @@
1
+ # Recipe: Employee Benefit Accruals — Leave + Bonus (IAS 19)
2
+
3
+ ## Scenario
4
+
5
+ Your company has 20 employees, each entitled to 14 days annual leave. Total annual leave cost is $84,000. IAS 19.13 requires the leave obligation to be accrued over the year as employees earn it. Separately, you accrue a quarterly bonus of 5% of revenue, settled annually after year-end performance review.
6
+
7
+ **Pattern:** Scheduler (leave — fixed monthly) + manual journals (bonus — variable quarterly)
8
+
9
+ ---
10
+
11
+ ## Accounts Involved
12
+
13
+ | Account | Type | Subtype | Role |
14
+ |---|---|---|---|
15
+ | Leave Expense | Expense | Expense | Monthly leave accrual charge |
16
+ | Accrued Leave Liability | Liability | Current Liability | Obligation for earned but unused leave |
17
+ | Bonus Expense | Expense | Expense | Quarterly bonus accrual charge |
18
+ | Accrued Bonus Liability | Liability | Current Liability | Obligation for estimated bonus |
19
+ | Cash / Bank Account | Asset | Bank | Settlement on payout |
20
+
21
+ ---
22
+
23
+ ## Journal Entries
24
+
25
+ ### Part A: Annual Leave Accrual (Monthly — Scheduler)
26
+
27
+ **Monthly amount:** Total annual leave cost / 12
28
+
29
+ ```
30
+ $84,000 / 12 = $7,000 per month
31
+ ```
32
+
33
+ | Line | Account | Debit | Credit |
34
+ |---|---|---|---|
35
+ | 1 | Leave Expense | $7,000 | |
36
+ | 2 | Accrued Leave Liability | | $7,000 |
37
+
38
+ **Scheduler settings:**
39
+ - Frequency: Monthly
40
+ - Start date: 2025-01-31
41
+ - End date: 2025-12-31
42
+ - Description: `Annual leave accrual — {{MONTH_NAME}} {{YEAR}}`
43
+ - Capsule: "FY2025 Annual Leave Accrual"
44
+
45
+ ### Part A — Year-End True-Up
46
+
47
+ At year-end, compare the accrued balance ($84,000) against actual leave liability:
48
+ - If employees used less leave than expected → liability stays higher, no adjustment needed (or reduce if policy allows forfeit)
49
+ - If employees used more leave → reduce the liability with an adjustment journal
50
+
51
+ **Payout on resignation/termination:**
52
+ | Line | Account | Debit | Credit |
53
+ |---|---|---|---|
54
+ | 1 | Accrued Leave Liability | *payout amount* | |
55
+ | 2 | Cash / Bank Account | | *payout amount* |
56
+
57
+ ### Part B: Bonus Accrual (Quarterly — Manual Journals)
58
+
59
+ **Quarterly calculation:** 5% × quarterly revenue
60
+
61
+ | Line | Account | Debit | Credit |
62
+ |---|---|---|---|
63
+ | 1 | Bonus Expense | *estimated bonus* | |
64
+ | 2 | Accrued Bonus Liability | | *estimated bonus* |
65
+
66
+ ### Part B — Year-End True-Up and Settlement
67
+
68
+ When the actual bonus is determined (e.g., board approves $180,000 against $200,000 accrued):
69
+
70
+ **Reversal of over-accrual:**
71
+ | Line | Account | Debit | Credit |
72
+ |---|---|---|---|
73
+ | 1 | Accrued Bonus Liability | $20,000 | |
74
+ | 2 | Bonus Expense | | $20,000 |
75
+
76
+ **Payment:**
77
+ | Line | Account | Debit | Credit |
78
+ |---|---|---|---|
79
+ | 1 | Accrued Bonus Liability | $180,000 | |
80
+ | 2 | Cash / Bank Account | | $180,000 |
81
+
82
+ ---
83
+
84
+ ## Capsule Structure
85
+
86
+ **Leave Capsule:** "FY2025 Annual Leave Accrual"
87
+ **Capsule Type:** "Employee Benefits"
88
+
89
+ Contents:
90
+ - 12 monthly accrual journals (from scheduler)
91
+ - Year-end true-up journal (if needed)
92
+ - Payout journals for resignations
93
+ - **Total entries:** 12-15
94
+
95
+ **Bonus Capsule:** "FY2025 Performance Bonus"
96
+ **Capsule Type:** "Employee Benefits"
97
+
98
+ Contents:
99
+ - 4 quarterly accrual journals
100
+ - Year-end true-up journal
101
+ - Settlement payment journal
102
+ - **Total entries:** 6
103
+
104
+ ---
105
+
106
+ ## Worked Example
107
+
108
+ **Leave accrual setup:**
109
+ - 20 employees × 14 days × $300/day = $84,000 annual leave cost
110
+ - Monthly accrual: $7,000
111
+ - Create scheduler: Dr Leave Expense $7,000 / Cr Accrued Leave $7,000, monthly Jan-Dec
112
+
113
+ **Bonus accrual by quarter:**
114
+
115
+ | Quarter | Revenue | Bonus (5%) | Journal |
116
+ |---|---|---|---|
117
+ | Q1 | $800,000 | $40,000 | Dr Bonus Expense $40,000 / Cr Accrued Bonus $40,000 |
118
+ | Q2 | $950,000 | $47,500 | Dr Bonus Expense $47,500 / Cr Accrued Bonus $47,500 |
119
+ | Q3 | $1,100,000 | $55,000 | Dr Bonus Expense $55,000 / Cr Accrued Bonus $55,000 |
120
+ | Q4 | $1,150,000 | $57,500 | Dr Bonus Expense $57,500 / Cr Accrued Bonus $57,500 |
121
+ | **Total** | **$4,000,000** | **$200,000** | |
122
+
123
+ **Year-end true-up:** Board approves $180,000 bonus → reverse $20,000 over-accrual, then pay $180,000.
124
+
125
+ ---
126
+
127
+ ## Enrichment Suggestions
128
+
129
+ | Enrichment | Value | Why |
130
+ |---|---|---|
131
+ | Tracking Tag | "Employee Benefits" | Filter all leave + bonus entries |
132
+ | Nano Classifier | Department → "Engineering" / "Sales" / etc. | Allocate leave/bonus cost by department |
133
+ | Custom Field | "Fiscal Year" → "FY2025" | Link to fiscal year |
134
+
135
+ ---
136
+
137
+ ## Verification
138
+
139
+ 1. **Trial Balance at Jun 30** → Accrued Leave Liability shows $42,000 credit (6 months × $7,000). Accrued Bonus shows $87,500 (Q1 + Q2).
140
+ 2. **P&L for Q2** → Leave Expense: $21,000 (3 months). Bonus Expense: $47,500.
141
+ 3. **Trial Balance at Dec 31 (before true-up)** → Accrued Leave: $84,000. Accrued Bonus: $200,000.
142
+ 4. **After true-up and payment** → Accrued Bonus clears to $0. Bonus Expense net = $180,000.
143
+
144
+ ---
145
+
146
+ ## Variations
147
+
148
+ **Proportional leave by hire date:** New employees hired mid-year get prorated leave. Adjust the scheduler amount per employee or use manual journals for partial-year hires.
149
+
150
+ **Bonus based on profit (not revenue):** Same structure, but the quarterly estimate uses profit before bonus. The true-up at year-end adjusts for the circular reference (bonus reduces profit which reduces bonus).
151
+
152
+ **13th month salary (Philippines / Juan):** Similar to leave accrual — fixed monthly accrual of 1/12 of annual salary, settled in December. Use the scheduler pattern.
153
+
154
+ **Leave encashment policy:** If unused leave can be cashed out, the accrued liability stays on the balance sheet until encashment or termination. No year-end reversal — only adjustment for forfeited leave (if policy allows).