jaz-cli 2.3.0 → 2.6.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 (33) 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 +2 -0
  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 +158 -14
  7. package/assets/skills/transaction-recipes/references/asset-disposal.md +174 -0
  8. package/assets/skills/transaction-recipes/references/bad-debt-provision.md +145 -0
  9. package/assets/skills/transaction-recipes/references/building-blocks.md +25 -2
  10. package/assets/skills/transaction-recipes/references/capital-wip.md +167 -0
  11. package/assets/skills/transaction-recipes/references/dividend.md +111 -0
  12. package/assets/skills/transaction-recipes/references/employee-accruals.md +154 -0
  13. package/assets/skills/transaction-recipes/references/fixed-deposit.md +164 -0
  14. package/assets/skills/transaction-recipes/references/fx-revaluation.md +135 -0
  15. package/assets/skills/transaction-recipes/references/hire-purchase.md +190 -0
  16. package/assets/skills/transaction-recipes/references/intercompany.md +150 -0
  17. package/assets/skills/transaction-recipes/references/provisions.md +142 -0
  18. package/dist/calc/amortization.js +122 -0
  19. package/dist/calc/asset-disposal.js +151 -0
  20. package/dist/calc/blueprint.js +46 -0
  21. package/dist/calc/depreciation.js +200 -0
  22. package/dist/calc/ecl.js +101 -0
  23. package/dist/calc/fixed-deposit.js +169 -0
  24. package/dist/calc/format.js +494 -0
  25. package/dist/calc/fx-reval.js +93 -0
  26. package/dist/calc/lease.js +146 -0
  27. package/dist/calc/loan.js +107 -0
  28. package/dist/calc/provision.js +128 -0
  29. package/dist/calc/types.js +21 -0
  30. package/dist/calc/validate.js +48 -0
  31. package/dist/commands/calc.js +252 -0
  32. package/dist/index.js +2 -0
  33. package/package.json +3 -2
@@ -0,0 +1,145 @@
1
+ # Recipe: Bad Debt Provision / Expected Credit Loss (IFRS 9)
2
+
3
+ ## Scenario
4
+
5
+ Your company has $185,000 in trade receivables across five aging buckets. IFRS 9.5.5.15 requires you to recognize lifetime expected credit losses using the simplified approach (provision matrix). You apply historical loss rates to each aging bucket, calculate the total required allowance, compare it to the existing provision balance, and post a journal for the difference.
6
+
7
+ **Pattern:** Manual journal + capsule (provision amount recalculated each quarter)
8
+
9
+ ---
10
+
11
+ ## Accounts Involved
12
+
13
+ | Account | Type | Subtype | Role |
14
+ |---|---|---|---|
15
+ | Bad Debt Expense | Expense | Expense | Period charge for provision increase |
16
+ | Allowance for Doubtful Debts | Asset | Current Asset (contra) | Contra-asset reducing receivables on balance sheet |
17
+ | Accounts Receivable | Asset | Current Asset | Trade receivables (affected on write-off only) |
18
+
19
+ > **Note on write-offs:** When a specific debt is confirmed uncollectible, the write-off journal is: Dr Allowance for Doubtful Debts / Cr Accounts Receivable. Use the `DEBT_WRITE_OFF` payment method in Jaz to record this against the specific invoice.
20
+
21
+ ---
22
+
23
+ ## Journal Entries
24
+
25
+ ### Step 1: Calculate Provision Matrix
26
+
27
+ Run the aged receivables report and apply loss rates:
28
+
29
+ | Aging Bucket | Balance | Loss Rate | ECL |
30
+ |---|---|---|---|
31
+ | Current (not overdue) | | *%* | |
32
+ | 1-30 days overdue | | *%* | |
33
+ | 31-60 days overdue | | *%* | |
34
+ | 61-90 days overdue | | *%* | |
35
+ | 91+ days overdue | | *%* | |
36
+ | **Total** | | | **Total ECL** |
37
+
38
+ ### Step 2: Provision Adjustment
39
+
40
+ ```
41
+ Adjustment = Total ECL − Existing Provision Balance
42
+ ```
43
+
44
+ **If increase (ECL > existing provision):**
45
+
46
+ | Line | Account | Debit | Credit |
47
+ |---|---|---|---|
48
+ | 1 | Bad Debt Expense | *adjustment* | |
49
+ | 2 | Allowance for Doubtful Debts | | *adjustment* |
50
+
51
+ **If release (ECL < existing provision):**
52
+
53
+ | Line | Account | Debit | Credit |
54
+ |---|---|---|---|
55
+ | 1 | Allowance for Doubtful Debts | *adjustment* | |
56
+ | 2 | Bad Debt Expense | | *adjustment* |
57
+
58
+ ### Step 3: Write-Off (when confirmed uncollectible)
59
+
60
+ Use the `DEBT_WRITE_OFF` payment method against the specific invoice:
61
+
62
+ | Line | Account | Debit | Credit |
63
+ |---|---|---|---|
64
+ | 1 | Allowance for Doubtful Debts | *write-off amount* | |
65
+ | 2 | Accounts Receivable | | *write-off amount* |
66
+
67
+ ---
68
+
69
+ ## Capsule Structure
70
+
71
+ **Capsule:** "ECL Provision — Q4 2025"
72
+ **Capsule Type:** "ECL Provision"
73
+
74
+ Contents:
75
+ - 1 provision adjustment journal per quarter
76
+ - Write-off entries as they occur
77
+ - **Total entries:** Varies (typically 1 per quarter + write-offs)
78
+
79
+ ---
80
+
81
+ ## Worked Example
82
+
83
+ **Setup:**
84
+ - Reporting date: December 31, 2025
85
+ - Existing provision balance: $3,000
86
+
87
+ **Aged receivables and loss rates:**
88
+
89
+ | Aging Bucket | Balance | Loss Rate | ECL |
90
+ |---|---|---|---|
91
+ | Current | $100,000 | 0.5% | $500 |
92
+ | 1-30 days | $50,000 | 2% | $1,000 |
93
+ | 31-60 days | $20,000 | 5% | $1,000 |
94
+ | 61-90 days | $10,000 | 10% | $1,000 |
95
+ | 91+ days | $5,000 | 50% | $2,500 |
96
+ | **Total** | **$185,000** | **3.24%** | **$6,000** |
97
+
98
+ **Adjustment:**
99
+ ```
100
+ Required provision: $6,000
101
+ Existing provision: $3,000
102
+ Increase needed: $3,000
103
+ ```
104
+
105
+ **Dec 31, 2025 — Provision journal:**
106
+ - Dr Bad Debt Expense $3,000
107
+ - Cr Allowance for Doubtful Debts $3,000
108
+ - Description: "ECL provision increase — Q4 2025"
109
+ - Assign to capsule
110
+
111
+ **Use the calculator:** `jaz calc ecl --current 100000 --30d 50000 --60d 20000 --90d 10000 --120d 5000 --rates 0.5,2,5,10,50 --existing-provision 3000`
112
+
113
+ ---
114
+
115
+ ## Enrichment Suggestions
116
+
117
+ | Enrichment | Value | Why |
118
+ |---|---|---|
119
+ | Tracking Tag | "ECL" | Filter all provision-related entries |
120
+ | Tracking Tag | "Bad Debt" | Broader filter including write-offs |
121
+ | Custom Field | "Reporting Period" → "Q4 2025" | Link to specific reporting quarter |
122
+ | Custom Field | "Aged Receivables Report Date" → "2025-12-31" | Audit trail to source report |
123
+
124
+ ---
125
+
126
+ ## Verification
127
+
128
+ 1. **Trial Balance** → Allowance for Doubtful Debts should equal the Total ECL amount ($6,000) after the adjustment.
129
+ 2. **P&L for the quarter** → Bad Debt Expense shows only the delta ($3,000), not the full provision.
130
+ 3. **Balance Sheet** → Accounts Receivable minus Allowance for Doubtful Debts = net realizable value ($185,000 − $6,000 = $179,000).
131
+ 4. **Group General Ledger by Capsule** → Shows all provision adjustments and write-offs for the period.
132
+
133
+ ---
134
+
135
+ ## Variations
136
+
137
+ **First-time adoption:** If no existing provision, the full ECL amount is the initial charge. No "adjustment" calculation needed — just post the total.
138
+
139
+ **Quarterly vs. annual:** IFRS 9 requires assessment at each reporting date. Listed companies do quarterly; SMEs typically do semi-annually or annually. Adjust frequency to match your reporting calendar.
140
+
141
+ **Specific provision overlay:** In addition to the matrix (general provision), you may identify specific receivables that require a higher provision (e.g., a customer in bankruptcy). Add the specific overlay amount to the matrix total.
142
+
143
+ **Recovery of written-off debt:** If a previously written-off customer pays, record: Dr Cash / Cr Bad Debt Expense (or Cr Allowance). This can be handled as a regular receipt against the original invoice using the "Payment" method in Jaz.
144
+
145
+ **Loss rate calibration:** Loss rates should be based on historical data (typically 3-5 years of actual write-offs by aging bucket). Forward-looking adjustments may be needed for macroeconomic conditions (IFRS 9.5.5.17).
@@ -21,6 +21,13 @@ Capsules group related transactions into a single logical unit for a specific ac
21
21
  - Loan Repayment
22
22
  - Lease Accounting (IFRS 16)
23
23
  - Depreciation (Non-Standard)
24
+ - FX Revaluation
25
+ - ECL Provision
26
+ - Employee Benefits
27
+ - Provisions
28
+ - Dividends
29
+ - Intercompany
30
+ - Capital Projects
24
31
 
25
32
  **Reporting:** Capsules are the **only enrichment that supports group-by** in the General Ledger. Grouping by capsule shows the complete lifecycle of a multi-step transaction in one view.
26
33
 
@@ -106,7 +113,23 @@ Each recipe lists the specific CoA accounts needed. Common patterns:
106
113
  | Right-of-Use Asset | Asset | Non-Current Asset | IFRS 16 |
107
114
  | Lease Liability | Liability | Non-Current Liability | IFRS 16 |
108
115
  | Lease Liability (Current) | Liability | Current Liability | IFRS 16 |
109
- | Accumulated Depreciation | Asset | Non-Current Asset | Declining balance |
110
- | Depreciation Expense | Expense | Expense | Declining balance |
116
+ | Accumulated Depreciation | Asset | Non-Current Asset | Declining balance, Capital WIP |
117
+ | Depreciation Expense | Expense | Expense | Declining balance, Capital WIP |
118
+ | FX Unrealized Gain | Revenue | Other Income | FX revaluation |
119
+ | FX Unrealized Loss | Expense | Other Expense | FX revaluation |
120
+ | Bad Debt Expense | Expense | Expense | ECL provision |
121
+ | Allowance for Doubtful Debts | Asset | Current Asset (contra) | ECL provision |
122
+ | Leave Expense | Expense | Expense | Employee accruals |
123
+ | Accrued Leave Liability | Liability | Current Liability | Employee accruals |
124
+ | Bonus Expense | Expense | Expense | Employee accruals |
125
+ | Accrued Bonus Liability | Liability | Current Liability | Employee accruals |
126
+ | Provision Expense | Expense | Expense | IAS 37 provisions |
127
+ | Provision for Obligations | Liability | Non-Current Liability | IAS 37 provisions |
128
+ | Finance Cost — Unwinding | Expense | Expense | IAS 37 provisions, Lease |
129
+ | Retained Earnings | Equity | Retained Earnings | Dividends |
130
+ | Dividends Payable | Liability | Current Liability | Dividends |
131
+ | Intercompany Receivable | Asset | Current Asset | Intercompany |
132
+ | Intercompany Payable | Liability | Current Liability | Intercompany |
133
+ | Capital Work-in-Progress | Asset | Non-Current Asset | Capital WIP |
111
134
 
112
135
  **API:** `POST /chart-of-accounts` or `POST /chart-of-accounts/bulk-upsert`
@@ -0,0 +1,167 @@
1
+ # Recipe: Capital WIP to Fixed Asset Transfer
2
+
3
+ ## Scenario
4
+
5
+ Your company is renovating its office at a total estimated cost of $150,000, incurred over 4 months through multiple bills (contractor, materials, permits). During construction, all costs are accumulated in a Capital Work-in-Progress (CIP/CWIP) account. Once the renovation is complete, the total cost is transferred to a Fixed Asset and registered in Jaz's FA module for automatic straight-line depreciation.
6
+
7
+ **Pattern:** Bills/journals coded to CIP (accumulation phase) + transfer journal + FA registration + capsule
8
+
9
+ ---
10
+
11
+ ## Accounts Involved
12
+
13
+ | Account | Type | Subtype | Role |
14
+ |---|---|---|---|
15
+ | Capital Work-in-Progress | Asset | Non-Current Asset | Accumulates costs during construction/development |
16
+ | Fixed Asset — [Asset Name] | Asset | Non-Current Asset | Completed asset (after transfer) |
17
+ | Accumulated Depreciation | Asset | Non-Current Asset (contra) | Depreciation reserve (auto by Jaz FA module) |
18
+ | Depreciation Expense | Expense | Expense | Monthly depreciation charge (auto by Jaz FA module) |
19
+ | Cash / Bank Account | Asset | Bank | Pays supplier bills |
20
+ | Accounts Payable | Liability | Current Liability | When bills are recorded |
21
+
22
+ ---
23
+
24
+ ## Journal Entries
25
+
26
+ ### Phase 1: Cost Accumulation (during construction)
27
+
28
+ Each supplier bill or expense is coded to the CIP account — **not** to expense.
29
+
30
+ **Supplier bill example:**
31
+ - Create bill: $40,000 to "ABC Contractors"
32
+ - Code to: Capital Work-in-Progress
33
+ - Assign to capsule
34
+
35
+ **Internal labor capitalization (if applicable):**
36
+
37
+ | Line | Account | Debit | Credit |
38
+ |---|---|---|---|
39
+ | 1 | Capital Work-in-Progress | *labor cost* | |
40
+ | 2 | Salaries Expense | | *labor cost* |
41
+
42
+ ### Phase 2: Transfer to Fixed Asset (on completion)
43
+
44
+ When the project is complete, transfer the total accumulated cost from CIP to the fixed asset account:
45
+
46
+ | Line | Account | Debit | Credit |
47
+ |---|---|---|---|
48
+ | 1 | Fixed Asset — Office Renovation | $150,000 | |
49
+ | 2 | Capital Work-in-Progress | | $150,000 |
50
+
51
+ ### Phase 3: Register Fixed Asset
52
+
53
+ Register the completed asset in Jaz's Fixed Asset module:
54
+ - Asset name: "Office Renovation — 2025"
55
+ - Cost: $150,000 (must match the transfer amount)
56
+ - Salvage value: $0 (or estimated residual)
57
+ - Useful life: 60 months (5 years for leasehold improvements)
58
+ - Method: Straight-line (Jaz native FA module)
59
+
60
+ Jaz will then auto-post monthly depreciation:
61
+ - Dr Depreciation Expense $2,500 / Cr Accumulated Depreciation $2,500
62
+
63
+ ---
64
+
65
+ ## Capsule Structure
66
+
67
+ **Capsule:** "Office Renovation — 2025"
68
+ **Capsule Type:** "Capital Projects"
69
+
70
+ Contents:
71
+ - Multiple supplier bills (Phase 1)
72
+ - Internal labor journals (if any)
73
+ - 1 transfer journal (Phase 2)
74
+ - **Total entries:** Varies (typically 5-20 depending on project complexity)
75
+
76
+ > **Note:** The auto-generated depreciation entries from the FA module are separate from the capsule. If you want them tracked, assign the FA to the same capsule tags.
77
+
78
+ ---
79
+
80
+ ## Worked Example
81
+
82
+ **Project: Office Renovation**
83
+ - Budget: $150,000
84
+ - Duration: Jan 2025 — Apr 2025
85
+ - Useful life after completion: 5 years (60 months)
86
+ - Salvage value: $0
87
+
88
+ **Jan 15 — Contractor deposit:**
89
+ - Create bill: $40,000 to "ABC Contractors"
90
+ - Code to Capital Work-in-Progress
91
+ - Capsule: "Office Renovation — 2025"
92
+ - Pay bill when due
93
+
94
+ **Feb 10 — Materials purchase:**
95
+ - Create bill: $35,000 to "BuildMart Supplies"
96
+ - Code to Capital Work-in-Progress
97
+ - Capsule: same
98
+
99
+ **Mar 5 — Permits and fees:**
100
+ - Create bill: $5,000 to "City Planning Authority"
101
+ - Code to Capital Work-in-Progress
102
+ - Capsule: same
103
+
104
+ **Mar 28 — Contractor final payment:**
105
+ - Create bill: $60,000 to "ABC Contractors"
106
+ - Code to Capital Work-in-Progress
107
+ - Capsule: same
108
+
109
+ **Apr 1 — Internal labor capitalized:**
110
+ - Journal: Dr CIP $10,000 / Cr Salaries Expense $10,000
111
+ - Description: "Capitalize internal project management labor — Office Renovation"
112
+ - Capsule: same
113
+
114
+ **Apr 15 — CIP balance check:**
115
+ - CIP account: $150,000 debit ($40K + $35K + $5K + $60K + $10K)
116
+
117
+ **Apr 15 — Transfer journal:**
118
+ - Dr Fixed Asset — Office Renovation $150,000
119
+ - Cr Capital Work-in-Progress $150,000
120
+ - Description: "Transfer CIP to Fixed Asset — renovation complete"
121
+ - Capsule: same
122
+
123
+ **Apr 15 — Register in FA module:**
124
+ - Name: "Office Renovation — 2025"
125
+ - Cost: $150,000
126
+ - Salvage: $0
127
+ - Life: 60 months
128
+ - Start date: April 2025
129
+
130
+ **May 31 onwards — Auto-depreciation:**
131
+ - $150,000 / 60 months = $2,500/month
132
+ - Jaz auto-posts: Dr Depreciation Expense $2,500 / Cr Accumulated Depreciation $2,500
133
+
134
+ ---
135
+
136
+ ## Enrichment Suggestions
137
+
138
+ | Enrichment | Value | Why |
139
+ |---|---|---|
140
+ | Tracking Tag | "Capital Project" | Filter all CWIP and transfer entries |
141
+ | Tracking Tag | "Office Renovation" | Project-specific filter |
142
+ | Nano Classifier | Cost Category → "Contractor" / "Materials" / "Permits" | Break down project costs by category |
143
+ | Custom Field | "Project #" → "CAPEX-2025-001" | Internal project reference |
144
+
145
+ ---
146
+
147
+ ## Verification
148
+
149
+ 1. **Trial Balance during accumulation** → Capital Work-in-Progress balance should equal the sum of all bills and journals coded to CIP.
150
+ 2. **After transfer** → CIP balance should be $0. Fixed Asset balance should equal the total project cost.
151
+ 3. **After FA registration** → Monthly depreciation should start from the completion month. Check first month's entry.
152
+ 4. **Group General Ledger by Capsule** → "Office Renovation — 2025" shows all bills + transfer. Complete project audit trail.
153
+ 5. **Fixed Asset Register** → Asset appears with correct cost, salvage, life, and monthly depreciation amount.
154
+
155
+ ---
156
+
157
+ ## Variations
158
+
159
+ **Software development capitalization (IAS 38):** Same pattern but for internal software development. Research phase costs are expensed; development phase costs (once feasibility is established) are capitalized to CIP. Transfer to "Intangible Asset — Software" on go-live.
160
+
161
+ **Multi-phase project:** If a large project has distinct milestones (e.g., Building A, Building B), you can create sub-capsules per phase or use nano classifiers to tag costs by phase. Transfer each phase to a separate fixed asset when that phase completes.
162
+
163
+ **Cost overrun:** If actual costs exceed budget, the full actual cost is capitalized. The higher cost simply means higher depreciation per period. No separate treatment needed — CIP captures everything.
164
+
165
+ **Borrowing costs (IAS 23):** If the project is funded by a specific loan, the interest during construction can be capitalized: Dr CIP / Cr Interest Expense. Stop capitalizing when the asset is ready for use.
166
+
167
+ **Asset under construction — partial use:** If part of the asset starts being used before the project is complete (e.g., one floor of a building), transfer and register that portion. Continue accumulating costs for the remainder in CIP.
@@ -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).