jaz-cli 2.3.0 → 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.
- package/assets/skills/api/SKILL.md +35 -34
- package/assets/skills/api/references/errors.md +15 -7
- package/assets/skills/api/references/feature-glossary.md +2 -0
- package/assets/skills/api/references/field-map.md +3 -3
- package/assets/skills/conversion/SKILL.md +1 -1
- package/assets/skills/transaction-recipes/SKILL.md +124 -14
- package/assets/skills/transaction-recipes/references/bad-debt-provision.md +145 -0
- package/assets/skills/transaction-recipes/references/building-blocks.md +25 -2
- package/assets/skills/transaction-recipes/references/capital-wip.md +167 -0
- package/assets/skills/transaction-recipes/references/dividend.md +111 -0
- package/assets/skills/transaction-recipes/references/employee-accruals.md +154 -0
- package/assets/skills/transaction-recipes/references/fx-revaluation.md +135 -0
- package/assets/skills/transaction-recipes/references/intercompany.md +150 -0
- package/assets/skills/transaction-recipes/references/provisions.md +142 -0
- package/dist/calc/amortization.js +104 -0
- package/dist/calc/blueprint.js +21 -0
- package/dist/calc/depreciation.js +177 -0
- package/dist/calc/ecl.js +89 -0
- package/dist/calc/format.js +389 -0
- package/dist/calc/fx-reval.js +83 -0
- package/dist/calc/lease.js +117 -0
- package/dist/calc/loan.js +97 -0
- package/dist/calc/provision.js +112 -0
- package/dist/calc/types.js +21 -0
- package/dist/calc/validate.js +48 -0
- package/dist/commands/calc.js +200 -0
- package/dist/index.js +2 -0
- package/package.json +3 -2
|
@@ -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).
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# Recipe: FX Revaluation — Non-AR/AP Items (IAS 21)
|
|
2
|
+
|
|
3
|
+
## Scenario
|
|
4
|
+
|
|
5
|
+
Your Singapore company (base currency SGD) has a USD 50,000 intercompany loan receivable from a subsidiary, originally booked at a rate of 1.35 (SGD 67,500). At the December 31 reporting date, the USD/SGD closing rate is 1.38. IAS 21.23 requires all monetary items translated at the closing rate, so you post a revaluation journal to recognize the unrealized FX gain, then reverse it on Day 1 of the next period.
|
|
6
|
+
|
|
7
|
+
**Pattern:** Manual journals + capsule (revaluation journal + Day 1 reversal, repeated each period-end)
|
|
8
|
+
|
|
9
|
+
**When this recipe applies:**
|
|
10
|
+
- Intercompany loan receivables/payables booked as manual journals (not invoices/bills)
|
|
11
|
+
- Foreign currency term deposits or escrow outside bank accounts
|
|
12
|
+
- FX-denominated provisions (e.g., USD warranty obligation)
|
|
13
|
+
- Any manual journal balance in a non-AR/AP, non-cash foreign currency account
|
|
14
|
+
|
|
15
|
+
**When this recipe does NOT apply — the platform handles it automatically:**
|
|
16
|
+
- Invoices, bills, customer/supplier credit notes (auto-revalued)
|
|
17
|
+
- Cash and bank account balances (auto-revalued)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Accounts Involved
|
|
22
|
+
|
|
23
|
+
| Account | Type | Subtype | Role |
|
|
24
|
+
|---|---|---|---|
|
|
25
|
+
| [Source Account] | Asset or Liability | Varies | The FX monetary item being revalued |
|
|
26
|
+
| FX Unrealized Gain | Revenue | Other Income | Holds gains when closing rate > book rate |
|
|
27
|
+
| FX Unrealized Loss | Expense | Other Expense | Holds losses when closing rate < book rate |
|
|
28
|
+
|
|
29
|
+
> **Note:** Jaz auto-creates FX gain/loss/rounding accounts when FX features are enabled. Use the platform-created accounts — do not create duplicates.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Journal Entries
|
|
34
|
+
|
|
35
|
+
### Step 1: Revaluation Journal (period-end)
|
|
36
|
+
|
|
37
|
+
Calculate the unrealized gain or loss:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
Gain/Loss = Foreign Amount × (Closing Rate − Book Rate)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**If gain (closing rate > book rate):**
|
|
44
|
+
|
|
45
|
+
| Line | Account | Debit | Credit |
|
|
46
|
+
|---|---|---|---|
|
|
47
|
+
| 1 | [Source Account] | *gain amount* | |
|
|
48
|
+
| 2 | FX Unrealized Gain | | *gain amount* |
|
|
49
|
+
|
|
50
|
+
**If loss (closing rate < book rate):**
|
|
51
|
+
|
|
52
|
+
| Line | Account | Debit | Credit |
|
|
53
|
+
|---|---|---|---|
|
|
54
|
+
| 1 | FX Unrealized Loss | *loss amount* | |
|
|
55
|
+
| 2 | [Source Account] | | *loss amount* |
|
|
56
|
+
|
|
57
|
+
### Step 2: Reversal Journal (Day 1 of next period)
|
|
58
|
+
|
|
59
|
+
Post the exact opposite of Step 1. This ensures the next period starts clean — the FX impact is recognized in the correct period only.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Capsule Structure
|
|
64
|
+
|
|
65
|
+
**Capsule:** "FX Revaluation — Non-AR/AP — Dec 2025"
|
|
66
|
+
**Capsule Type:** "FX Revaluation"
|
|
67
|
+
|
|
68
|
+
Contents:
|
|
69
|
+
- 1 revaluation journal (period-end)
|
|
70
|
+
- 1 reversal journal (Day 1 of next period)
|
|
71
|
+
- **Total entries:** 2 per period
|
|
72
|
+
|
|
73
|
+
For ongoing monthly revaluations, create one capsule per quarter or fiscal year (e.g., "FX Reval — FY2025") containing all months' reval/reversal pairs.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Worked Example
|
|
78
|
+
|
|
79
|
+
**Setup:**
|
|
80
|
+
- Intercompany loan receivable: USD 50,000
|
|
81
|
+
- Book rate (at original booking): 1.35 SGD/USD
|
|
82
|
+
- Book value: SGD 67,500
|
|
83
|
+
- Closing rate (Dec 31): 1.38 SGD/USD
|
|
84
|
+
- Closing value: SGD 69,000
|
|
85
|
+
|
|
86
|
+
**Calculation:**
|
|
87
|
+
```
|
|
88
|
+
Gain = USD 50,000 × (1.38 − 1.35) = USD 50,000 × 0.03 = SGD 1,500
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**Dec 31, 2025 — Revaluation journal:**
|
|
92
|
+
- Dr Intercompany Loan Receivable SGD 1,500
|
|
93
|
+
- Dr/Cr FX Unrealized Gain SGD 1,500
|
|
94
|
+
- Description: "FX revaluation — USD 50,000 @ 1.38 (was 1.35)"
|
|
95
|
+
- Assign to capsule
|
|
96
|
+
|
|
97
|
+
**Jan 1, 2026 — Reversal journal:**
|
|
98
|
+
- Dr FX Unrealized Gain SGD 1,500
|
|
99
|
+
- Cr Intercompany Loan Receivable SGD 1,500
|
|
100
|
+
- Description: "Reversal of FX revaluation — USD 50,000"
|
|
101
|
+
- Assign to same capsule
|
|
102
|
+
|
|
103
|
+
**Use the calculator:** `jaz calc fx-reval --amount 50000 --book-rate 1.35 --closing-rate 1.38 --currency USD --base-currency SGD`
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Enrichment Suggestions
|
|
108
|
+
|
|
109
|
+
| Enrichment | Value | Why |
|
|
110
|
+
|---|---|---|
|
|
111
|
+
| Tracking Tag | "FX Revaluation" | Filter all reval entries in GL |
|
|
112
|
+
| Tracking Tag | "USD" | Filter by currency for multi-currency reval |
|
|
113
|
+
| Custom Field | "Source Account" → "Intercompany Loan — SubCo" | Identify the item being revalued |
|
|
114
|
+
| Custom Field | "Period End Date" → "2025-12-31" | Link to reporting period |
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Verification
|
|
119
|
+
|
|
120
|
+
1. **Group General Ledger by Capsule** → Reval + reversal should net to zero across both entries.
|
|
121
|
+
2. **Trial Balance at Dec 31** → Intercompany Loan Receivable shows SGD 69,000 (original 67,500 + 1,500 reval). FX Unrealized Gain shows SGD 1,500 credit.
|
|
122
|
+
3. **Trial Balance at Jan 1 (after reversal)** → Intercompany Loan Receivable back to SGD 67,500. FX Unrealized Gain cleared.
|
|
123
|
+
4. **P&L for December** → FX Unrealized Gain of SGD 1,500 recognized in the correct period.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Variations
|
|
128
|
+
|
|
129
|
+
**Multiple FX items:** If you have several non-AR/AP FX balances (e.g., USD loan + EUR deposit + JPY provision), you can combine them into a single multi-line revaluation journal. Each pair of lines handles one item. All in the same capsule.
|
|
130
|
+
|
|
131
|
+
**Loss scenario:** If the closing rate is lower than the book rate, the journal debits FX Unrealized Loss instead of crediting FX Unrealized Gain. The reversal mirrors accordingly.
|
|
132
|
+
|
|
133
|
+
**No reversal method:** Some firms keep the reval in place and adjust the book rate for the next period. This avoids the reversal journal but requires updating the "book rate" each period. The reversal method shown here is more conservative and widely used.
|
|
134
|
+
|
|
135
|
+
**Quarterly vs. monthly:** Reval can be done monthly or quarterly depending on materiality. For material FX exposures, monthly is recommended (IAS 21 does not prescribe frequency — it's a reporting date requirement).
|