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.
- 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 +15 -3
- 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 +199 -0
- package/assets/skills/transaction-recipes/references/accrued-expenses.md +157 -0
- package/assets/skills/transaction-recipes/references/bad-debt-provision.md +145 -0
- package/assets/skills/transaction-recipes/references/bank-loan.md +145 -0
- package/assets/skills/transaction-recipes/references/building-blocks.md +135 -0
- package/assets/skills/transaction-recipes/references/capital-wip.md +167 -0
- package/assets/skills/transaction-recipes/references/declining-balance.md +190 -0
- package/assets/skills/transaction-recipes/references/deferred-revenue.md +125 -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/ifrs16-lease.md +188 -0
- package/assets/skills/transaction-recipes/references/intercompany.md +150 -0
- package/assets/skills/transaction-recipes/references/prepaid-amortization.md +123 -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/commands/init.js +8 -3
- package/dist/index.js +2 -0
- package/dist/types/index.js +2 -1
- package/dist/utils/template.js +1 -1
- 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).
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# Recipe: Bank Loan
|
|
2
|
+
|
|
3
|
+
## Scenario
|
|
4
|
+
|
|
5
|
+
Your company takes a $100,000 bank loan at 6% annual interest, repaid in 60 equal monthly installments of $1,933.28. Each payment splits between principal (reducing the loan balance) and interest (expense), with the split changing every month as the outstanding balance decreases.
|
|
6
|
+
|
|
7
|
+
**Pattern:** Manual journals + capsule (interest amount changes each period)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Accounts Involved
|
|
12
|
+
|
|
13
|
+
| Account | Type | Subtype | Role |
|
|
14
|
+
|---|---|---|---|
|
|
15
|
+
| Loan Payable | Liability | Non-Current Liability | Long-term portion of loan balance |
|
|
16
|
+
| Loan Payable (Current) | Liability | Current Liability | Portion due within 12 months |
|
|
17
|
+
| Interest Expense | Expense | Expense | Monthly interest charge |
|
|
18
|
+
| Cash / Bank Account | Asset | Bank | Receives disbursement, makes payments |
|
|
19
|
+
|
|
20
|
+
> **Note on current/non-current split:** For simplicity, this recipe uses a single "Loan Payable" account. In practice, you may maintain two accounts and periodically reclassify the next 12 months' principal as current. A year-end reclassification journal (Dr Loan Payable Non-Current / Cr Loan Payable Current) can be added to the capsule.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Journal Entries
|
|
25
|
+
|
|
26
|
+
### Step 1: Loan Disbursement (Day 1)
|
|
27
|
+
|
|
28
|
+
| Line | Account | Debit | Credit |
|
|
29
|
+
|---|---|---|---|
|
|
30
|
+
| 1 | Cash / Bank Account | $100,000 | |
|
|
31
|
+
| 2 | Loan Payable | | $100,000 |
|
|
32
|
+
|
|
33
|
+
### Step 2: Monthly Payment (each month)
|
|
34
|
+
|
|
35
|
+
Each payment is a fixed installment of $1,933.28, split as follows:
|
|
36
|
+
|
|
37
|
+
| Line | Account | Debit | Credit |
|
|
38
|
+
|---|---|---|---|
|
|
39
|
+
| 1 | Loan Payable | *principal portion* | |
|
|
40
|
+
| 2 | Interest Expense | *interest portion* | |
|
|
41
|
+
| 3 | Cash / Bank Account | | $1,933.28 |
|
|
42
|
+
|
|
43
|
+
**Calculation per month:**
|
|
44
|
+
- Monthly rate = 6% / 12 = 0.5%
|
|
45
|
+
- Interest = Outstanding balance × 0.005
|
|
46
|
+
- Principal = $1,933.28 − Interest
|
|
47
|
+
- New balance = Outstanding balance − Principal
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Capsule Structure
|
|
52
|
+
|
|
53
|
+
**Capsule:** "Bank Loan — ABC Bank — 2025"
|
|
54
|
+
**Capsule Type:** "Loan Repayment"
|
|
55
|
+
|
|
56
|
+
Contents:
|
|
57
|
+
- 1 disbursement journal
|
|
58
|
+
- 60 monthly payment journals
|
|
59
|
+
- Optional: year-end current/non-current reclassification journals
|
|
60
|
+
- **Total entries:** 61+
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Worked Example
|
|
65
|
+
|
|
66
|
+
**Loan terms:**
|
|
67
|
+
- Principal: $100,000
|
|
68
|
+
- Annual rate: 6% (monthly rate: 0.5%)
|
|
69
|
+
- Term: 60 months
|
|
70
|
+
- Fixed installment: $1,933.28
|
|
71
|
+
|
|
72
|
+
**Monthly installment formula:**
|
|
73
|
+
```
|
|
74
|
+
PMT = P × r / (1 − (1 + r)^−n)
|
|
75
|
+
PMT = 100,000 × 0.005 / (1 − 1.005^−60)
|
|
76
|
+
PMT = 500 / 0.2586 = $1,933.28
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Amortization Table (first 6 months + last 2)
|
|
80
|
+
|
|
81
|
+
| Month | Opening Balance | Interest (0.5%) | Principal | Closing Balance |
|
|
82
|
+
|---|---|---|---|---|
|
|
83
|
+
| 1 | $100,000.00 | $500.00 | $1,433.28 | $98,566.72 |
|
|
84
|
+
| 2 | $98,566.72 | $492.83 | $1,440.45 | $97,126.27 |
|
|
85
|
+
| 3 | $97,126.27 | $485.63 | $1,447.65 | $95,678.62 |
|
|
86
|
+
| 4 | $95,678.62 | $478.39 | $1,454.89 | $94,223.73 |
|
|
87
|
+
| 5 | $94,223.73 | $471.12 | $1,462.16 | $92,761.57 |
|
|
88
|
+
| 6 | $92,761.57 | $463.81 | $1,469.47 | $91,292.10 |
|
|
89
|
+
| ... | ... | ... | ... | ... |
|
|
90
|
+
| 59 | $3,847.42 | $19.24 | $1,914.04 | $1,933.38 |
|
|
91
|
+
| 60 | $1,933.38 | $9.67 | $1,923.61 | $0.00* |
|
|
92
|
+
|
|
93
|
+
> *Final payment may need a small rounding adjustment (±$0.10) to close the balance exactly to zero.
|
|
94
|
+
|
|
95
|
+
**Month 1 journal entry:**
|
|
96
|
+
- Dr Loan Payable $1,433.28
|
|
97
|
+
- Dr Interest Expense $500.00
|
|
98
|
+
- Cr Cash $1,933.28
|
|
99
|
+
- Description: "Loan payment — Month 1 of 60 (ABC Bank)"
|
|
100
|
+
- Assign to capsule
|
|
101
|
+
|
|
102
|
+
**Month 6 journal entry:**
|
|
103
|
+
- Dr Loan Payable $1,469.47
|
|
104
|
+
- Dr Interest Expense $463.81
|
|
105
|
+
- Cr Cash $1,933.28
|
|
106
|
+
- Description: "Loan payment — Month 6 of 60 (ABC Bank)"
|
|
107
|
+
- Assign to capsule
|
|
108
|
+
|
|
109
|
+
**Totals over 60 months:**
|
|
110
|
+
- Total payments: $1,933.28 × 60 = $115,996.80
|
|
111
|
+
- Total interest: $15,996.80
|
|
112
|
+
- Total principal: $100,000.00
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Enrichment Suggestions
|
|
117
|
+
|
|
118
|
+
| Enrichment | Value | Why |
|
|
119
|
+
|---|---|---|
|
|
120
|
+
| Tracking Tag | "Bank Loan" | Filter all loan-related transactions |
|
|
121
|
+
| Nano Classifier | Facility → "Term Loan" | Distinguish from revolving credit or overdraft |
|
|
122
|
+
| Custom Field | "Loan Reference" → "LN-2025-0042" | Record the bank's loan reference number |
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Verification
|
|
127
|
+
|
|
128
|
+
1. **Group General Ledger by Capsule** → Shows disbursement + all payments. Loan Payable should start at $100,000 credit and reduce to $0 by month 60.
|
|
129
|
+
2. **Trial Balance at any date** → Loan Payable balance should match the "Closing Balance" column in the amortization table for that month.
|
|
130
|
+
3. **P&L for Year 1** → Interest Expense = sum of interest column for months 1–12 (approximately $5,580).
|
|
131
|
+
4. **Cash movement** → Cash decreased by $1,933.28 × number of payments made, offset by the initial $100,000 disbursement.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Variations
|
|
136
|
+
|
|
137
|
+
**Variable rate loan:** Recalculate the installment amount whenever the rate changes. The capsule still holds all entries. Note in the journal description when the rate changed.
|
|
138
|
+
|
|
139
|
+
**Lump-sum principal repayment:** Record an additional journal: Dr Loan Payable / Cr Cash for the lump sum. Recalculate remaining monthly installments based on the new balance.
|
|
140
|
+
|
|
141
|
+
**Interest-only period:** During interest-only months, the journal is: Dr Interest Expense / Cr Cash (no principal portion). Once amortization begins, switch to the split format.
|
|
142
|
+
|
|
143
|
+
**Multi-currency loan:** If the loan is in USD but base currency is SGD, record the disbursement with `currency: { sourceCurrency: "USD" }`. Monthly payments should use the spot rate on payment date. FX gains/losses are captured automatically.
|
|
144
|
+
|
|
145
|
+
**Fees:** Loan origination fees can be recorded as a separate journal in the capsule: Dr Loan Origination Fee (expense or amortized asset) / Cr Cash.
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# Building Blocks
|
|
2
|
+
|
|
3
|
+
The Jaz features that transaction recipes combine to model complex, multi-period accounting scenarios.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Capsules — Workflow Containers
|
|
8
|
+
|
|
9
|
+
Capsules group related transactions into a single logical unit for a specific accounting workflow. They are **not** a classification tool — they represent the full lifecycle of a business event.
|
|
10
|
+
|
|
11
|
+
**How capsules work in recipes:**
|
|
12
|
+
- Create one capsule per scenario instance (e.g., "FY2025 Office Insurance")
|
|
13
|
+
- Assign the initial transaction (bill, invoice, or journal) to the capsule
|
|
14
|
+
- Assign the scheduler (if any) to the same capsule — every entry it generates automatically lands in that capsule
|
|
15
|
+
- For manual journal recipes, assign each monthly journal to the capsule as you create it
|
|
16
|
+
|
|
17
|
+
**Capsule Types** are labels that categorize capsules. Create types that match your recipes:
|
|
18
|
+
- Prepaid Expenses
|
|
19
|
+
- Deferred Revenue
|
|
20
|
+
- Accrued Expenses
|
|
21
|
+
- Loan Repayment
|
|
22
|
+
- Lease Accounting (IFRS 16)
|
|
23
|
+
- Depreciation (Non-Standard)
|
|
24
|
+
- FX Revaluation
|
|
25
|
+
- ECL Provision
|
|
26
|
+
- Employee Benefits
|
|
27
|
+
- Provisions
|
|
28
|
+
- Dividends
|
|
29
|
+
- Intercompany
|
|
30
|
+
- Capital Projects
|
|
31
|
+
|
|
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.
|
|
33
|
+
|
|
34
|
+
**API:** `POST /capsules`, `POST /capsuleTypes`, `POST /capsuleTypes/search`
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Schedulers — Recurring Entry Generators
|
|
39
|
+
|
|
40
|
+
Schedulers automate **fixed-amount** recurring transactions. A scheduler generates one entry per period (monthly, quarterly, annually) until its end date.
|
|
41
|
+
|
|
42
|
+
**Key limitation:** Scheduler amounts are **fixed** — every generated entry has the same amount. This makes schedulers perfect for:
|
|
43
|
+
- Prepaid amortization ($1,000/month for 12 months)
|
|
44
|
+
- Deferred revenue recognition ($2,000/month for 12 months)
|
|
45
|
+
|
|
46
|
+
But **not suitable** for:
|
|
47
|
+
- Loan interest (changes as principal balance reduces)
|
|
48
|
+
- IFRS 16 liability unwinding (interest component changes each period)
|
|
49
|
+
- Declining balance depreciation (amount changes as book value drops)
|
|
50
|
+
|
|
51
|
+
**Scheduler + capsule:** When a scheduler has a capsule assigned, every entry it generates is automatically created under that capsule. This is the automation sweet spot for fixed-amount recipes.
|
|
52
|
+
|
|
53
|
+
**Dynamic strings:** Scheduler descriptions support `{{YEAR}}`, `{{MONTH}}`, `{{MONTH_NAME}}` — e.g., "Insurance amortization — {{MONTH_NAME}} {{YEAR}}" produces "Insurance amortization — January 2025".
|
|
54
|
+
|
|
55
|
+
**API:** `POST /scheduled/journals` (manual journal scheduler), `POST /scheduled/invoices`, `POST /scheduled/bills`
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Manual Journals — Flexible Entries
|
|
60
|
+
|
|
61
|
+
Manual journals are multi-line debit/credit entries. Use them when amounts change each period or timing is irregular.
|
|
62
|
+
|
|
63
|
+
**In variable-amount recipes**, you record one journal per period with calculated amounts (from the amortization table or depreciation schedule). Each journal is assigned to the capsule manually.
|
|
64
|
+
|
|
65
|
+
**Requirements:** Minimum 2 lines, debits must equal credits. Journal descriptions should identify the period (e.g., "Loan payment — Month 3 of 60").
|
|
66
|
+
|
|
67
|
+
**API:** `POST /journals`
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Fixed Assets — Native Straight-Line Depreciation
|
|
72
|
+
|
|
73
|
+
Jaz has built-in fixed asset management with **straight-line depreciation only**. Register an asset and Jaz auto-posts monthly depreciation journal entries.
|
|
74
|
+
|
|
75
|
+
**Formula:** `(Cost - Salvage Value) / Useful Life in Months`
|
|
76
|
+
|
|
77
|
+
**Used in IFRS 16:** The ROU (right-of-use) asset is registered as a native fixed asset. Jaz handles its straight-line depreciation automatically — you only need manual journals for the liability unwinding side.
|
|
78
|
+
|
|
79
|
+
**Not suitable for:** Declining balance, units of production, sum-of-years-digits, or any non-straight-line method. Use manual journals instead.
|
|
80
|
+
|
|
81
|
+
**API:** `POST /fixed-assets`
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Enrichments — Metadata for Recipes
|
|
86
|
+
|
|
87
|
+
Apply enrichments to recipe transactions for richer reporting and record-keeping:
|
|
88
|
+
|
|
89
|
+
| Enrichment | Level | Recipe Use |
|
|
90
|
+
|---|---|---|
|
|
91
|
+
| **Tracking Tags** | Transaction | Tag all entries with scenario label (e.g., "Insurance", "Office Lease") |
|
|
92
|
+
| **Nano Classifiers** | Line item | Classify by department or cost center on each journal line |
|
|
93
|
+
| **Custom Fields** | Transaction | Record reference numbers (policy #, loan #, lease contract #) |
|
|
94
|
+
|
|
95
|
+
**Schedulers inherit tags and nano classifiers** — set them once on the scheduler and all generated entries get them automatically.
|
|
96
|
+
|
|
97
|
+
**Custom fields are not available on schedulers** — only on individual transactions.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Accounts Required
|
|
102
|
+
|
|
103
|
+
Each recipe lists the specific CoA accounts needed. Common patterns:
|
|
104
|
+
|
|
105
|
+
| Account | Type | Subtype | Used In |
|
|
106
|
+
|---|---|---|---|
|
|
107
|
+
| Prepaid Expenses | Asset | Current Asset | Prepaid amortization |
|
|
108
|
+
| Deferred Revenue | Liability | Current Liability | Deferred revenue |
|
|
109
|
+
| Accrued Expenses | Liability | Current Liability | Accrued expenses |
|
|
110
|
+
| Loan Payable | Liability | Non-Current Liability | Bank loan |
|
|
111
|
+
| Loan Payable (Current) | Liability | Current Liability | Bank loan (current portion) |
|
|
112
|
+
| Interest Expense | Expense | Expense | Bank loan, IFRS 16 |
|
|
113
|
+
| Right-of-Use Asset | Asset | Non-Current Asset | IFRS 16 |
|
|
114
|
+
| Lease Liability | Liability | Non-Current Liability | IFRS 16 |
|
|
115
|
+
| Lease Liability (Current) | Liability | Current Liability | IFRS 16 |
|
|
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 |
|
|
134
|
+
|
|
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.
|