@classytic/ca-tax 0.0.17 → 0.0.19
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/CHANGELOG.md +182 -0
- package/dist/forms/index.d.mts +2 -2
- package/dist/forms/index.mjs +2 -2
- package/dist/forms.mjs +746 -1356
- package/dist/index.d.mts +132 -20
- package/dist/index.mjs +3 -3
- package/dist/index3.d.mts +187 -1198
- package/dist/index4.d.mts +3 -3
- package/dist/t2/index.d.mts +3 -3
- package/dist/t2/index.mjs +3 -3
- package/dist/t2.mjs +213 -839
- package/package.json +4 -2
package/dist/index3.d.mts
CHANGED
|
@@ -289,6 +289,15 @@ interface LossCarrybackYear {
|
|
|
289
289
|
/** The prior tax year the loss is applied to (ISO date of its year-end). */
|
|
290
290
|
taxYearEnd: string;
|
|
291
291
|
amount: number;
|
|
292
|
+
/**
|
|
293
|
+
* Net-capital pools only, and only where it differs from the schedule-wide
|
|
294
|
+
* default: the inclusion rate of the year the loss is APPLIED to, not of the
|
|
295
|
+
* year the loss arose. ¾ before 2000-02-28, ⅔ from then to 2000-10-17, ½
|
|
296
|
+
* after — so a three-year carry-back reaching across those dates carries
|
|
297
|
+
* three different rates, which is why this sits per-year and not per-pool.
|
|
298
|
+
* AT1 Schedule 10 transmits it on 043/045/047 to six decimals.
|
|
299
|
+
*/
|
|
300
|
+
inclusionRate?: number;
|
|
292
301
|
}
|
|
293
302
|
interface LossCarrybackInput {
|
|
294
303
|
/** The loss created in the current year (non-capital or net-capital). */
|
|
@@ -880,7 +889,7 @@ type Schedule8Entry = {
|
|
|
880
889
|
method: 'limited-life';
|
|
881
890
|
class: Class14Input;
|
|
882
891
|
};
|
|
883
|
-
interface Schedule8Result
|
|
892
|
+
interface Schedule8Result {
|
|
884
893
|
decliningBalance: CcaClassResult[];
|
|
885
894
|
leasehold: Class13Result[];
|
|
886
895
|
limitedLife: Class14Result[];
|
|
@@ -906,9 +915,9 @@ interface Schedule8Result$1 {
|
|
|
906
915
|
* proceeds reach its capital cost, and the class caps at its own undepreciated
|
|
907
916
|
* capital cost — so neither produces a recapture inclusion here.
|
|
908
917
|
*/
|
|
909
|
-
declare function computeSchedule8
|
|
918
|
+
declare function computeSchedule8(entries: readonly Schedule8Entry[], rates?: CcaRateTable, /** Short-tax-year proration (days ÷ 365) for the declining-balance rows. */
|
|
910
919
|
|
|
911
|
-
prorationFactor?: number): Schedule8Result
|
|
920
|
+
prorationFactor?: number): Schedule8Result;
|
|
912
921
|
//#endregion
|
|
913
922
|
//#region src/t2/at1/schedules/schedule13-cca.d.ts
|
|
914
923
|
/**
|
|
@@ -1415,9 +1424,19 @@ interface At1CategoryResult {
|
|
|
1415
1424
|
differsFromFederal: boolean;
|
|
1416
1425
|
}
|
|
1417
1426
|
interface At1AbilResult {
|
|
1427
|
+
/** 018082 — name of the small business corporation. */
|
|
1418
1428
|
name: string;
|
|
1429
|
+
/** 018084 — shares (1) or debt (2). */
|
|
1419
1430
|
kind: 'shares' | 'debt';
|
|
1420
|
-
/**
|
|
1431
|
+
/** 018086 — date of acquisition, ISO `YYYY-MM-DD`, when supplied. */
|
|
1432
|
+
dateOfAcquisition?: string;
|
|
1433
|
+
/** 018088 — A, proceeds of disposition. */
|
|
1434
|
+
proceeds: number;
|
|
1435
|
+
/** 018090 — B, adjusted cost base. */
|
|
1436
|
+
acb: number;
|
|
1437
|
+
/** 018092 — C, outlays and expenses. */
|
|
1438
|
+
outlays: number;
|
|
1439
|
+
/** 088 − (090 + 092) — the business investment loss before the inclusion rate. Not itself a printed line; feeds 018094's total. */
|
|
1421
1440
|
businessInvestmentLoss: number;
|
|
1422
1441
|
}
|
|
1423
1442
|
interface AlbertaSchedule18Result {
|
|
@@ -2593,6 +2612,108 @@ interface Schedule12FilingInput {
|
|
|
2593
2612
|
alberta: number;
|
|
2594
2613
|
federal: number;
|
|
2595
2614
|
};
|
|
2615
|
+
/**
|
|
2616
|
+
* 012040 / 012041 / 012048 — "Other for Alberta / federal purposes — specify",
|
|
2617
|
+
* and the explanation line 048 that TRA requires alongside it.
|
|
2618
|
+
*
|
|
2619
|
+
* A CATCH-ALL, not a single reconciling item: §3.2.3.13 defines 040 as "the
|
|
2620
|
+
* total amount of any other discretionary account items not specifically
|
|
2621
|
+
* listed on form 012", plus two named inclusions. Callers accumulate their
|
|
2622
|
+
* components into one figure per side.
|
|
2623
|
+
*
|
|
2624
|
+
* The two named inclusions, verbatim:
|
|
2625
|
+
*
|
|
2626
|
+
* 1. If form 018 exists, 040 must include `018076 + 018094` as an addition
|
|
2627
|
+
* — the taxable capital gain and the allowable business investment loss.
|
|
2628
|
+
* The matching federal side of 041 is `fed 001113 minus 001406`, which
|
|
2629
|
+
* is federal Schedule 1's "Taxable capital gains from Schedule 6" less
|
|
2630
|
+
* its "Allowable business investment loss from Schedule 6".
|
|
2631
|
+
*
|
|
2632
|
+
* The asymmetry is the spec's, not a transcription slip, and it is
|
|
2633
|
+
* consistent once the signs are seen: an ABIL reaches 018094 already
|
|
2634
|
+
* NEGATIVE (see `albertaAbilDifference` — "the inputs arrive negative
|
|
2635
|
+
* per the form"), while federal line 406 is a deduction line reported
|
|
2636
|
+
* positive. Both expressions therefore net the loss out of the gain.
|
|
2637
|
+
* Do not "correct" either into matching the other.
|
|
2638
|
+
*
|
|
2639
|
+
* 2. If form 015 exists, 040 must also include the Schedule 15 Area C, D,
|
|
2640
|
+
* F, G and H expense computations — but only where a computation comes
|
|
2641
|
+
* out NEGATIVE, and then entered as a positive amount. That component is
|
|
2642
|
+
* NOT modelled here; a caller with Schedule 15 resource pools has to add
|
|
2643
|
+
* it to `alberta` itself. Named rather than silently omitted.
|
|
2644
|
+
*
|
|
2645
|
+
* Line 048 is not optional decoration: "If 012040 exists, then 012048 must
|
|
2646
|
+
* exist." Supply `explanation` whenever the pair is non-nil.
|
|
2647
|
+
*/
|
|
2648
|
+
other?: {
|
|
2649
|
+
alberta: number;
|
|
2650
|
+
federal: number;
|
|
2651
|
+
explanation?: string;
|
|
2652
|
+
};
|
|
2653
|
+
/** 012060 / 012061 — taxable dividends deductible under ITA s.112, 113 or 138(6). Both sides are federal T2 line 320. */
|
|
2654
|
+
taxableDividendsDeductible?: {
|
|
2655
|
+
alberta: number;
|
|
2656
|
+
federal: number;
|
|
2657
|
+
};
|
|
2658
|
+
/** 012062 / 012063 — Part VI.1 tax deduction. Both sides are federal T2 line 325. */
|
|
2659
|
+
partVI1Deduction?: {
|
|
2660
|
+
alberta: number;
|
|
2661
|
+
federal: number;
|
|
2662
|
+
};
|
|
2663
|
+
/** 012074 / 012075 — taxable capital gains or taxable dividends allocated from a central credit union. Both sides are federal T2 line 340. */
|
|
2664
|
+
centralCreditUnion?: {
|
|
2665
|
+
alberta: number;
|
|
2666
|
+
federal: number;
|
|
2667
|
+
};
|
|
2668
|
+
/** 012078 / 012079 — prospector's and grubstaker's shares. Both sides are federal T2 line 350. */
|
|
2669
|
+
prospectorsShares?: {
|
|
2670
|
+
alberta: number;
|
|
2671
|
+
federal: number;
|
|
2672
|
+
};
|
|
2673
|
+
/** 012140 / 012141 — employer deduction for non-qualified securities. Both sides are federal T2 line 352. */
|
|
2674
|
+
nonQualifiedSecurities?: {
|
|
2675
|
+
alberta: number;
|
|
2676
|
+
federal: number;
|
|
2677
|
+
};
|
|
2678
|
+
/**
|
|
2679
|
+
* 012082 / 012083 — ITA s.110.5 and/or subparagraph 115(1)(a)(vii) ADDITIONS,
|
|
2680
|
+
* the one Area B item that adds to taxable income rather than deducting.
|
|
2681
|
+
*
|
|
2682
|
+
* Alberta's side comes from AT1 Schedule 21 line 017; the federal side is T2
|
|
2683
|
+
* line 355, "Section 110.5 additions or subparagraph 115(1)(a)(vii)
|
|
2684
|
+
* additions".
|
|
2685
|
+
*
|
|
2686
|
+
* The printed AT1 Schedule 12 annotates 083 as "T2 line 335" — that is a
|
|
2687
|
+
* TYPO on TRA's form. T2 line 335 is "Limited partnership losses of previous
|
|
2688
|
+
* tax years from Schedule 4", which is already this schedule's 072/073 pair
|
|
2689
|
+
* and is a deduction, not an addition. §3.2.3.13's own rule for 083 says
|
|
2690
|
+
* "Must equal fed 200355", and CRA's line 355 is the s.110.5 additions line.
|
|
2691
|
+
* Follow the spec and CRA, not the annotation.
|
|
2692
|
+
*/
|
|
2693
|
+
section110_5Additions?: {
|
|
2694
|
+
alberta: number;
|
|
2695
|
+
federal: number;
|
|
2696
|
+
};
|
|
2697
|
+
/**
|
|
2698
|
+
* 012090 / 012091 — taxable income, when the caller already knows it.
|
|
2699
|
+
*
|
|
2700
|
+
* Prefer supplying these. This builder can derive them from the Area B lines
|
|
2701
|
+
* it emits, and does when they are absent, but that derivation is only as
|
|
2702
|
+
* complete as the deduction lines actually modelled: any Division C item this
|
|
2703
|
+
* engine does not carry (a central credit union allocation, prospector's
|
|
2704
|
+
* shares, the non-qualified-securities deduction) is missing from the sum and
|
|
2705
|
+
* OVERSTATES taxable income — and 090 is what AT1 page 2 line 062 is taken
|
|
2706
|
+
* from, so an overstatement there is Alberta tax on income the corporation
|
|
2707
|
+
* does not have.
|
|
2708
|
+
*
|
|
2709
|
+
* A caller that ran the engine has the real figure. Passing it makes the
|
|
2710
|
+
* filed line agree with the tax actually computed, and leaves the derived
|
|
2711
|
+
* value as a cross-check rather than the source.
|
|
2712
|
+
*/
|
|
2713
|
+
taxableIncome?: {
|
|
2714
|
+
alberta: number;
|
|
2715
|
+
federal: number;
|
|
2716
|
+
};
|
|
2596
2717
|
/**
|
|
2597
2718
|
* Area B — losses of preceding taxation years, deducted in arriving at Alberta
|
|
2598
2719
|
* taxable income. Same federal/Alberta pairing as Area A, but NOT the same
|
|
@@ -3153,13 +3274,13 @@ declare function computeSchedule3(input: Schedule3Input): Schedule3Result;
|
|
|
3153
3274
|
* file rather than the shared filing module per the task instructions — other
|
|
3154
3275
|
* agents are editing `at1-schedule-line-items.ts` concurrently.
|
|
3155
3276
|
*/
|
|
3156
|
-
interface At1ScheduleValueLike$
|
|
3277
|
+
interface At1ScheduleValueLike$1 {
|
|
3157
3278
|
lineItemId: string;
|
|
3158
3279
|
value: string | number;
|
|
3159
3280
|
}
|
|
3160
|
-
interface At1ScheduleDataLike$
|
|
3281
|
+
interface At1ScheduleDataLike$1 {
|
|
3161
3282
|
scheduleId: string;
|
|
3162
|
-
values: At1ScheduleValueLike$
|
|
3283
|
+
values: At1ScheduleValueLike$1[];
|
|
3163
3284
|
}
|
|
3164
3285
|
/**
|
|
3165
3286
|
* Field ids per the spec transcription above: 100-108 (ITC), 200-208 (CITC),
|
|
@@ -3169,7 +3290,7 @@ interface At1ScheduleDataLike$5 {
|
|
|
3169
3290
|
* per-vintage figures this DOES compute (304/306/308/310) are filed on the
|
|
3170
3291
|
* 300-series rollup, not re-emitted as an AAPITC occurrence table.
|
|
3171
3292
|
*/
|
|
3172
|
-
declare function schedule3Values(result: Schedule3Result): At1ScheduleDataLike$
|
|
3293
|
+
declare function schedule3Values(result: Schedule3Result): At1ScheduleDataLike$1;
|
|
3173
3294
|
//#endregion
|
|
3174
3295
|
//#region src/t2/at1/schedules/schedule4-foreign-investment-tax-credit.d.ts
|
|
3175
3296
|
/**
|
|
@@ -3300,1167 +3421,6 @@ declare function computeSchedule4(input: Schedule4Input$1): Schedule4Result$1;
|
|
|
3300
3421
|
*/
|
|
3301
3422
|
declare function schedule4Values(result: Schedule4Result$1): At1ScheduleData;
|
|
3302
3423
|
//#endregion
|
|
3303
|
-
//#region src/t2/at1/schedules/schedule5-royalty-tax-deduction.d.ts
|
|
3304
|
-
/**
|
|
3305
|
-
* Alberta AT1 Schedule 5 — Alberta Royalty Tax Deduction.
|
|
3306
|
-
*
|
|
3307
|
-
* TRA spec §3.2.3.6 (Chapter 3, lines 5083-6291). The Alberta Royalty Tax
|
|
3308
|
-
* Deduction (RTD) shelters "Attributed Canadian Royalty Income" — Crown
|
|
3309
|
-
* charges net of the resource allowance and reimbursements — against Alberta
|
|
3310
|
-
* taxable income. Form 005 (this schedule) is required whenever the
|
|
3311
|
-
* corporation has Attributed Canadian Royalty Income, and **Form 007 (AT1
|
|
3312
|
-
* Schedule 7 — Royalty Tax Credit/Deduction Supplemental Information) must be
|
|
3313
|
-
* completed before Form 005** (line 5133-5138): "IF FORM 007 IS NOT INCLUDED
|
|
3314
|
-
* WITH FORMS 005 AND/OR 006, THEN THE CLIENT'S RTC ENTITLEMENT WILL BE
|
|
3315
|
-
* DISALLOWED."
|
|
3316
|
-
*
|
|
3317
|
-
* ── Structure ────────────────────────────────────────────────────────────
|
|
3318
|
-
*
|
|
3319
|
-
* The schedule has two independent pool systems that both feed AT1 core line
|
|
3320
|
-
* 064 (Royalty Tax Deduction):
|
|
3321
|
-
*
|
|
3322
|
-
* 1. **CRTD** ("Calculation of the Royalty Tax Deduction", 005001-005027) —
|
|
3323
|
-
* the corporation's OWN unsuccessored royalty pool. A single running
|
|
3324
|
-
* pool with a discretionary claim (line 016), capped by what remains
|
|
3325
|
-
* available.
|
|
3326
|
-
* 2. **Successored pools** (Area C/D, 005101-005140) — per-vendor pools
|
|
3327
|
-
* acquired on a change in control or the acquisition of substantially
|
|
3328
|
-
* all Canadian resource properties, split into "second successored"
|
|
3329
|
-
* (SSPI, 005101-005115) and "first successored" (FSPI, 005121-005135)
|
|
3330
|
-
* generations. Unlike the CRTD, each occurrence's claim is MANDATORY
|
|
3331
|
-
* arithmetic (marked "M" in the spec), not discretionary: it is exactly
|
|
3332
|
-
* `min(pool base, property income)`.
|
|
3333
|
-
*
|
|
3334
|
-
* AT1 core line 064 = `005016 + 005140`, capped at AT1 core line 062 (Alberta
|
|
3335
|
-
* Taxable Income before the deduction). This engine cannot see line 062 (it
|
|
3336
|
-
* belongs to the AT1 jacket, not this schedule) so it is accepted as a plain
|
|
3337
|
-
* numeric input, `albertaTaxableIncomeBeforeDeduction`.
|
|
3338
|
-
*
|
|
3339
|
-
* ── Cross-references accepted as plain inputs (NOT re-derived here) ────────
|
|
3340
|
-
*
|
|
3341
|
-
* • **005001** (Crown charges, line 001) is "the amount from [AT1] Schedule
|
|
3342
|
-
* 7, line 061" — a nine-term sum over Schedule 7's own Crown-payment,
|
|
3343
|
-
* partnership-share and prior-year-adjustment sections (007003 + 007005 +
|
|
3344
|
-
* 007007 + 007009 + 007011 + 007013 + 007017 + 007025 + 007029 + Σ007077
|
|
3345
|
-
* + Σ007079 + Σ007081 − 007051). AT1 Schedule 7 is a separate schedule
|
|
3346
|
-
* with its own filing requirement (see above) built independently of this
|
|
3347
|
-
* module. This engine accepts the finished Schedule 7 line 061 figure —
|
|
3348
|
-
* `crownChargesNetOfReimbursements` — and applies only the final "if
|
|
3349
|
-
* negative, default to zero" step that line 001 itself specifies.
|
|
3350
|
-
* • **005005** (resource allowance, line 005): "Value = 012024 if it
|
|
3351
|
-
* exists, otherwise default to fed 001346." AT1 Schedule 12
|
|
3352
|
-
* (income/loss reconciliation) and federal Schedule 1 are both external
|
|
3353
|
-
* to this module; the two candidate figures are accepted as plain inputs
|
|
3354
|
-
* and this schedule applies only the stated precedence.
|
|
3355
|
-
*
|
|
3356
|
-
* ── A literal-spec asymmetry worth flagging (not "fixed") ──────────────────
|
|
3357
|
-
*
|
|
3358
|
-
* Line 013 (the pool available before the current year's claim, used to
|
|
3359
|
-
* build lines 016 and 017) is `005001 − 005005 − 005007 + 005011` — it nets
|
|
3360
|
-
* out **reimbursements (005007)**. Line 025 (the Attributed Royalty Income
|
|
3361
|
-
* carried forward to NEXT year) is defined by the spec as `005001 − 005005 +
|
|
3362
|
-
* 005011 − 000064 − 005023` (or, when `005001 − 005005 < 0`, `005011 − 000064
|
|
3363
|
-
* − 005023`) — with **no 005007 term at all**. That is exactly what TRA's
|
|
3364
|
-
* EFILE business rule states (lines 5379-5386 of the spec); this module
|
|
3365
|
-
* implements it literally rather than assuming the omission is a transcription
|
|
3366
|
-
* error and "fixing" it to match line 013's shape.
|
|
3367
|
-
*
|
|
3368
|
-
* Also note line 025 subtracts **000064**, the COMBINED royalty tax deduction
|
|
3369
|
-
* (CRTD claim + successored total, capped at Alberta taxable income) — not
|
|
3370
|
-
* just the CRTD's own claim (005016). That is likewise the literal EFILE
|
|
3371
|
-
* mapping, not a simplification made here.
|
|
3372
|
-
*
|
|
3373
|
-
* Whole dollars, pure.
|
|
3374
|
-
*/
|
|
3375
|
-
/** One predecessor's transfer into the corporation's unsuccessored pool (Area B, 005031-005037). */
|
|
3376
|
-
interface At1Schedule5PredecessorTransfer {
|
|
3377
|
-
/** 005031 — predecessor's legal name. */
|
|
3378
|
-
predecessorName: string;
|
|
3379
|
-
/** 005033 — Alberta Corporate Account Number, if the predecessor was Alberta-registered. */
|
|
3380
|
-
albertaCorporateAccountNumber?: string;
|
|
3381
|
-
/** 005035 — date of the transfer event (ISO `YYYY-MM-DD`), within the corporation's taxation year. */
|
|
3382
|
-
dateOfEvent: string;
|
|
3383
|
-
/** 005037 — carry-forward amount transferred to this corporation. */
|
|
3384
|
-
amountTransferred: number;
|
|
3385
|
-
}
|
|
3386
|
-
/**
|
|
3387
|
-
* One occurrence in a successored-pool section (SSPI 005101-005115 or FSPI
|
|
3388
|
-
* 005121-005135). `poolBroughtForward` and `acquisitionAmount` are mutually
|
|
3389
|
-
* exclusive per the spec ("only one field can exist" for 105/107 and for
|
|
3390
|
-
* 125/127) — supply exactly one.
|
|
3391
|
-
*/
|
|
3392
|
-
interface At1Schedule5SuccessoredPoolEntry {
|
|
3393
|
-
/** 005101 / 005121 — legal name of the vendor, predecessor, or the corporation itself on a change in control. */
|
|
3394
|
-
vendorName: string;
|
|
3395
|
-
/** 005103 / 005123 — date of the event (ISO `YYYY-MM-DD`), oldest to newest across occurrences. */
|
|
3396
|
-
dateOfEvent: string;
|
|
3397
|
-
/**
|
|
3398
|
-
* 005105 / 005125 — pool amount available for carry-forward at the end of
|
|
3399
|
-
* the preceding year (continuing an existing successored pool). Mutually
|
|
3400
|
-
* exclusive with `acquisitionAmount` for the same occurrence.
|
|
3401
|
-
*/
|
|
3402
|
-
poolBroughtForward?: number;
|
|
3403
|
-
/**
|
|
3404
|
-
* 005107 / 005127 — cost on acquisition of all/substantially all Canadian
|
|
3405
|
-
* resource properties, or on a change in control, under s.20(8) or 20(14)
|
|
3406
|
-
* (a NEW successored pool this year). Mutually exclusive with
|
|
3407
|
-
* `poolBroughtForward` for the same occurrence.
|
|
3408
|
-
*/
|
|
3409
|
-
acquisitionAmount?: number;
|
|
3410
|
-
/** 005109 / 005129 — property income under s.20(1)(c). A loss (negative) is treated as nil. */
|
|
3411
|
-
propertyIncome: number;
|
|
3412
|
-
}
|
|
3413
|
-
/** Result for one successored-pool occurrence (005111/005113 or 005131/005133). */
|
|
3414
|
-
interface At1Schedule5SuccessoredPoolEntryResult {
|
|
3415
|
-
vendorName: string;
|
|
3416
|
-
dateOfEvent: string;
|
|
3417
|
-
/** (105 or 107) / (125 or 127) — the pool base for this occurrence. */
|
|
3418
|
-
base: number;
|
|
3419
|
-
/**
|
|
3420
|
-
* Which mutually-exclusive field `base` came from — 105/125 for
|
|
3421
|
-
* `'broughtForward'`, 107/127 for `'acquired'`, or `'unspecified'` when
|
|
3422
|
-
* neither was supplied (base is nil; see the `issues` entry for the
|
|
3423
|
-
* occurrence). Drives which line `schedule5Values` files `base` under.
|
|
3424
|
-
*/
|
|
3425
|
-
baseKind: 'broughtForward' | 'acquired' | 'unspecified';
|
|
3426
|
-
/** Property income, floored at zero. */
|
|
3427
|
-
propertyIncome: number;
|
|
3428
|
-
/** 005111 / 005131 — mandatory arithmetic: min(base, propertyIncome). */
|
|
3429
|
-
claim: number;
|
|
3430
|
-
/** 005113 / 005133 — base minus claim. */
|
|
3431
|
-
carryForwardBeforeTransfer: number;
|
|
3432
|
-
}
|
|
3433
|
-
/** 005026/005027 — whether the resource pools were transferred during the year. */
|
|
3434
|
-
interface At1Schedule5PoolTransfer {
|
|
3435
|
-
/**
|
|
3436
|
-
* 005026 — 1: transfer due to disposition of all/substantially all Canadian
|
|
3437
|
-
* resource properties (s.20(8)); 2: transfer due to a change in control or
|
|
3438
|
-
* ceasing to be exempt under s.20(14); 3: no transfer occurred.
|
|
3439
|
-
*/
|
|
3440
|
-
type: 1 | 2 | 3;
|
|
3441
|
-
/** 005027 — legal name of the acquiring corporation. Required when `type` is 1 or 2; must be absent when 3. */
|
|
3442
|
-
acquirerName?: string;
|
|
3443
|
-
}
|
|
3444
|
-
interface AlbertaSchedule5Input {
|
|
3445
|
-
/**
|
|
3446
|
-
* 005001 — Crown charges under s.20(6)(a)-(e), with reference to s.20(13):
|
|
3447
|
-
* AT1 Schedule 7, line 061. See the module docstring — this is Schedule 7's
|
|
3448
|
-
* finished output, not re-derived here. Floored at zero per the spec's
|
|
3449
|
-
* final step on line 001.
|
|
3450
|
-
*/
|
|
3451
|
-
crownChargesNetOfReimbursements?: number;
|
|
3452
|
-
/**
|
|
3453
|
-
* 005005 — resource allowance claimed under s.20(6)(g). Prefer
|
|
3454
|
-
* `albertaResourceAllowance` (AT1 Schedule 12, line 024); falls back to
|
|
3455
|
-
* `federalResourceAllowance` (federal Schedule 1, line 346) when absent,
|
|
3456
|
-
* per the spec's stated precedence.
|
|
3457
|
-
*/
|
|
3458
|
-
albertaResourceAllowance?: number;
|
|
3459
|
-
/** 005005 fallback — federal Schedule 1, line 346. Used only when `albertaResourceAllowance` is not supplied. */
|
|
3460
|
-
federalResourceAllowance?: number;
|
|
3461
|
-
/**
|
|
3462
|
-
* 005007 — reimbursements received under a contract in respect of amounts
|
|
3463
|
-
* on line 001, under s.20(6)(f). Must not already be netted into
|
|
3464
|
-
* `crownChargesNetOfReimbursements`. Excludes ARTC and other government
|
|
3465
|
-
* rebates or credits (per the spec note).
|
|
3466
|
-
*/
|
|
3467
|
-
reimbursementsForCrownCharges?: number;
|
|
3468
|
-
/** 005043 — corporation's own unsuccessored pool C/F from the preceding year (normally last year's 005017; enter manually if unavailable). */
|
|
3469
|
-
openingUnsuccessoredPoolBalance?: number;
|
|
3470
|
-
/** 005031-005037 — predecessor transfers into the unsuccessored pool (amalgamation under s.20(10), or wind-up of a wholly-owned subsidiary under s.20(11)). */
|
|
3471
|
-
predecessorTransfers?: readonly At1Schedule5PredecessorTransfer[];
|
|
3472
|
-
/**
|
|
3473
|
-
* 005016 — the CRTD claim actually made against the unsuccessored pool.
|
|
3474
|
-
* Discretionary (spec marks it "X", not "M"): omit to claim the maximum
|
|
3475
|
-
* available (lesser of the pool balance and remaining Alberta taxable
|
|
3476
|
-
* income capacity).
|
|
3477
|
-
*/
|
|
3478
|
-
crtdAmountClaimed?: number;
|
|
3479
|
-
/** 005023 — Attributed Royalty Income transferred to another corporation during the year on disposal of substantially all Canadian resource properties. */
|
|
3480
|
-
transferredOnDisposal?: number;
|
|
3481
|
-
/** 005200 — whether the corporation has any successored pools to report. When false, `secondSuccessoredPools`/`firstSuccessoredPools` must be empty (spec: 005101-005140 "must not exist"). */
|
|
3482
|
-
hasSuccessoredPools?: boolean;
|
|
3483
|
-
/** SSPI, 005101-005115 — second successored pool occurrences, oldest date of event first. */
|
|
3484
|
-
secondSuccessoredPools?: readonly At1Schedule5SuccessoredPoolEntry[];
|
|
3485
|
-
/** FSPI, 005121-005135 — first successored pool occurrences, oldest date of event first. */
|
|
3486
|
-
firstSuccessoredPools?: readonly At1Schedule5SuccessoredPoolEntry[];
|
|
3487
|
-
/** 005026/005027 — pool transfer during the year, if any. */
|
|
3488
|
-
poolTransfer?: At1Schedule5PoolTransfer;
|
|
3489
|
-
/**
|
|
3490
|
-
* 005100 — was there a change in control that created the immediately
|
|
3491
|
-
* preceding taxation year end? Informational; cross-checked against the
|
|
3492
|
-
* AT1 core fields below when both are supplied.
|
|
3493
|
-
*/
|
|
3494
|
-
changeInControlEndedPrecedingYear?: boolean;
|
|
3495
|
-
/** AT1 core 000038 — tax year end changed since the last return filed. For the 005100 cross-check only. */
|
|
3496
|
-
at1TaxYearEndChanged?: boolean;
|
|
3497
|
-
/** AT1 core 000039 — reason for the tax year end change (2 = change in control). For the 005100 cross-check only. */
|
|
3498
|
-
at1TaxYearEndChangeReason?: 1 | 2 | 3;
|
|
3499
|
-
/**
|
|
3500
|
-
* AT1 core 000062 — Alberta Taxable Income (Loss) before this deduction.
|
|
3501
|
-
* Owned by the AT1 jacket, not this schedule; caps both the CRTD claim
|
|
3502
|
-
* (line 016) and the combined total (line 064).
|
|
3503
|
-
*/
|
|
3504
|
-
albertaTaxableIncomeBeforeDeduction?: number;
|
|
3505
|
-
}
|
|
3506
|
-
interface AlbertaSchedule5Result {
|
|
3507
|
-
/** 005001, floored at zero. */
|
|
3508
|
-
crownCharges: number;
|
|
3509
|
-
/** 005005. */
|
|
3510
|
-
resourceAllowance: number;
|
|
3511
|
-
/** 005007. */
|
|
3512
|
-
reimbursements: number;
|
|
3513
|
-
/** Sum of 005037 across predecessor transfers. */
|
|
3514
|
-
predecessorTransfersTotal: number;
|
|
3515
|
-
/** 005011 = 005043 + Σ005037. */
|
|
3516
|
-
attributedRoyaltyIncomeCarryForwardIn: number;
|
|
3517
|
-
/** Line 013 (unlabeled internal subtotal) = 005001 − 005005 − 005007 + 005011. */
|
|
3518
|
-
unsuccessoredPoolAvailable: number;
|
|
3519
|
-
/** The maximum line 016 could claim: max(0, min(unsuccessoredPoolAvailable, 000062 − 005140)). */
|
|
3520
|
-
crtdMaxClaimable: number;
|
|
3521
|
-
/** 005016 — the CRTD claim actually made. */
|
|
3522
|
-
crtdClaim: number;
|
|
3523
|
-
/** 005017 = unsuccessoredPoolAvailable − crtdClaim. */
|
|
3524
|
-
poolAvailableCarryForward: number;
|
|
3525
|
-
/** 005023, passed through. */
|
|
3526
|
-
transferredOnDisposal: number;
|
|
3527
|
-
/** SSPI results, in input order. */
|
|
3528
|
-
secondSuccessoredPools: At1Schedule5SuccessoredPoolEntryResult[];
|
|
3529
|
-
/** FSPI results, in input order. */
|
|
3530
|
-
firstSuccessoredPools: At1Schedule5SuccessoredPoolEntryResult[];
|
|
3531
|
-
/** 005115 = Σ SSPI carryForwardBeforeTransfer. */
|
|
3532
|
-
secondSuccessoredSubtotal: number;
|
|
3533
|
-
/** 005135 = Σ FSPI carryForwardBeforeTransfer. */
|
|
3534
|
-
firstSuccessoredSubtotal: number;
|
|
3535
|
-
/** 005140 = Σ SSPI claims + Σ FSPI claims. */
|
|
3536
|
-
successoredTotal: number;
|
|
3537
|
-
/** AT1 core 000064 = min(005016 + 005140, 000062), floored at zero (see `issues` when this floor binds). */
|
|
3538
|
-
totalRoyaltyTaxDeduction: number;
|
|
3539
|
-
/** 005025, floored at zero. */
|
|
3540
|
-
attributedRoyaltyIncomeCarryForwardOut: number;
|
|
3541
|
-
/** 005026/005027, passed through from input for filing — see `schedule5Values`. */
|
|
3542
|
-
poolTransfer?: At1Schedule5PoolTransfer;
|
|
3543
|
-
/** 005100, passed through from input for filing — see `schedule5Values`. */
|
|
3544
|
-
changeInControlEndedPrecedingYear?: boolean;
|
|
3545
|
-
/** True once there is Attributed Canadian Royalty Income (per the spec, this is when Form 005 must be filed). */
|
|
3546
|
-
formRequired: boolean;
|
|
3547
|
-
issues: string[];
|
|
3548
|
-
}
|
|
3549
|
-
declare function computeAlbertaSchedule5(input: AlbertaSchedule5Input): AlbertaSchedule5Result;
|
|
3550
|
-
/**
|
|
3551
|
-
* `scheduleNNValues` for Schedule 5, following the `at1-schedule-line-items.ts`
|
|
3552
|
-
* builder pattern (see `schedule17Values`, `schedule18Values`, and the sibling
|
|
3553
|
-
* `schedule3Values` in `schedule3-other-deductions-credits.ts`). Kept in THIS
|
|
3554
|
-
* file rather than the shared filing module per the task instructions — other
|
|
3555
|
-
* agents are wiring their own schedules into `at1-schedule-line-items.ts`
|
|
3556
|
-
* concurrently.
|
|
3557
|
-
*
|
|
3558
|
-
* Emits every line `AlbertaSchedule5Result` carries a value for:
|
|
3559
|
-
* 005001, 005005, 005007, 005011, 005016, 005017, 005023, 005025, 005026,
|
|
3560
|
-
* 005027, 005100, and the successored-pool occurrences 005101-005140.
|
|
3561
|
-
*
|
|
3562
|
-
* NOT emitted, because the result does not retain them distinctly:
|
|
3563
|
-
* 005031-005043 (Area B predecessor-transfer detail and the opening pool
|
|
3564
|
-
* balance) — the module aggregates both into 005011
|
|
3565
|
-
* (`attributedRoyaltyIncomeCarryForwardIn`) and does not carry the
|
|
3566
|
-
* per-predecessor breakdown or the raw opening balance forward into the
|
|
3567
|
-
* result; and 005200, which gates whether the successored sections are
|
|
3568
|
-
* processed at all but is not itself a filed dollar/detail line.
|
|
3569
|
-
*/
|
|
3570
|
-
interface At1ScheduleValueLike$4 {
|
|
3571
|
-
lineItemId: string;
|
|
3572
|
-
value: string | number;
|
|
3573
|
-
}
|
|
3574
|
-
interface At1ScheduleDataLike$4 {
|
|
3575
|
-
scheduleId: string;
|
|
3576
|
-
values: At1ScheduleValueLike$4[];
|
|
3577
|
-
}
|
|
3578
|
-
declare function schedule5Values(result: AlbertaSchedule5Result): At1ScheduleDataLike$4;
|
|
3579
|
-
//#endregion
|
|
3580
|
-
//#region src/t2/at1/schedules/schedule6-royalty-tax-credit.d.ts
|
|
3581
|
-
/**
|
|
3582
|
-
* Alberta AT1 Schedule 6 — Alberta Royalty Tax Credit.
|
|
3583
|
-
*
|
|
3584
|
-
* TRA spec §3.2.3.7 (Chapter 3, lines 6292-6653). Required "If the corp, for
|
|
3585
|
-
* the taxation year, has incurred Alberta Crown Royalty in respect of a
|
|
3586
|
-
* royalty receivable by or payable to Alberta under a lease or licence
|
|
3587
|
-
* granting petroleum rights, natural gas rights or petroleum and natural gas
|
|
3588
|
-
* rights" (spec lines 6342-6361). Two filing preconditions worth carrying
|
|
3589
|
-
* into any caller, neither of which this pure module can enforce itself:
|
|
3590
|
-
* **AT1 Schedule 7 must be completed before Schedule 6** ("IF FORM 007 IS NOT
|
|
3591
|
-
* INCLUDED WITH FORMS 005 AND/OR 006, THEN THE CLIENT'S RTC ENTITLEMENT WILL
|
|
3592
|
-
* BE DISALLOWED" — spec lines 6710-6715), and the completed form "must be
|
|
3593
|
-
* submitted to Treasury Board and Finance within three years of the taxation
|
|
3594
|
-
* year end in which the Alberta Crown Royalty was incurred" (spec lines
|
|
3595
|
-
* 6354-6360).
|
|
3596
|
-
*
|
|
3597
|
-
* ── The four fields this schedule's own MAPPINGS table actually defines ────
|
|
3598
|
-
*
|
|
3599
|
-
* 006002 ARTC Is the corp associated with one or more corporations that
|
|
3600
|
-
* have incurred Alberta Crown Royalty in the year? 1 = Yes,
|
|
3601
|
-
* default 2 = No. (spec lines 6363-6373)
|
|
3602
|
-
* 006004 Alberta Crown Royalty incurred in the taxation year:
|
|
3603
|
-
* 007003 + Σ007077 − Σ007087 + Σ007089. (spec lines 6375-6384)
|
|
3604
|
-
* 006006 Crown Royalty Shelter — see below. (spec lines 6443-6448)
|
|
3605
|
-
* 006008 Weighted Average Rate — see below. (spec lines 6450-6464)
|
|
3606
|
-
*
|
|
3607
|
-
* plus two sections that exist ONLY when 006002 = 1 (associated):
|
|
3608
|
-
*
|
|
3609
|
-
* ACRS (006022-006028) — the ASSOCIATED corporation with the longest
|
|
3610
|
-
* taxation year: its Corporate Account Number, tax year dates, and
|
|
3611
|
-
* the number of days in that year (max 365). (spec lines 6466-6558)
|
|
3612
|
-
* AACRS (006030-006034) — the $2,000,000 shelter pool, sized by the
|
|
3613
|
-
* longest associated year (006028), ALLOCATED among the associated
|
|
3614
|
-
* group. Sort such that the FIRST occurrence (006030001) is the
|
|
3615
|
-
* corporation filing this return — 006006 (this filer's own
|
|
3616
|
-
* shelter) then equals 006034001 exactly. Each allocation, and the
|
|
3617
|
-
* sum of all allocations, is capped at $2,000,000 ×
|
|
3618
|
-
* (006028 / 365). (spec lines 6559-6652)
|
|
3619
|
-
*
|
|
3620
|
-
* ── 006004 is accepted as a plain input, not re-derived here ───────────────
|
|
3621
|
-
*
|
|
3622
|
-
* Every term of 006004's formula (007003, 007077, 007087, 007089) lives on
|
|
3623
|
-
* AT1 Schedule 7, which this package also implements
|
|
3624
|
-
* (`schedule7-royalty-supplemental.ts`). Rather than re-import Schedule 7's
|
|
3625
|
-
* internals here, `albertaCrownRoyaltyIncurred` is taken as a plain numeric
|
|
3626
|
-
* input — pass `computeAlbertaSchedule7(...).albertaCrownRoyaltyForSchedule6`,
|
|
3627
|
-
* which computes that exact formula. This mirrors how AT1 Schedule 20 takes
|
|
3628
|
-
* its Schedule 12 income ceiling as a plain input rather than importing
|
|
3629
|
-
* Schedule 12: the two schedules stay independently testable, and the wiring
|
|
3630
|
-
* between them is the caller's job (`alberta-return.ts`), not this module's.
|
|
3631
|
-
*
|
|
3632
|
-
* ── 006006 Crown Royalty Shelter — two mutually exclusive paths ────────────
|
|
3633
|
-
*
|
|
3634
|
-
* associated (006002 = 1): 006006 = 006034001 (this filer's own
|
|
3635
|
-
* allocation from the AACRS pool below)
|
|
3636
|
-
* not associated (006002 = 2): 006006 = $2,000,000 × (days in this corp's
|
|
3637
|
-
* own taxation year, max 365) / 365
|
|
3638
|
-
*
|
|
3639
|
-
* ── 006008 Weighted Average Rate — an EXTERNAL rate table, not computed ─────
|
|
3640
|
-
*
|
|
3641
|
-
* "For each calendar quarter that the taxation year spans, enter the sum of
|
|
3642
|
-
* the number of days in the taxation year that fall within the calendar
|
|
3643
|
-
* quarter / total number of days in the taxation year X RTC quarterly rate
|
|
3644
|
-
* ... Note that the rate can be found on website:
|
|
3645
|
-
* http://www.finance.alberta.ca/publications/tax_rebates/rates/rtc1.html"
|
|
3646
|
-
* (spec lines 6450-6464). The RTC quarterly rate itself is a published
|
|
3647
|
-
* external figure this engine has no source for; `quarters` therefore takes
|
|
3648
|
-
* BOTH the day-count weight and the already-looked-up rate per quarter, and
|
|
3649
|
-
* this module only does the weighting arithmetic the spec states, to 4
|
|
3650
|
-
* decimal places (e.g. `.7500`, `.6667`).
|
|
3651
|
-
*
|
|
3652
|
-
* ── CONFIRMED: there is no "credit" dollar amount to compute here ──────────
|
|
3653
|
-
*
|
|
3654
|
-
* The transcribed range for this schedule (spec lines 6292-6653) ends after
|
|
3655
|
-
* 006034 with no field that multiplies the weighted average rate (006008) by
|
|
3656
|
-
* the royalty incurred (006004) or the shelter (006006) into a claimable
|
|
3657
|
-
* credit — and this is not a transcription gap. Traced through the AT1
|
|
3658
|
-
* jacket's own MAPPINGS (spec §3.2.3.1): the balance-owing reconciliation is
|
|
3659
|
-
* `090 = 080 − (081 + 082 + 085 + 086 + 087)`, where 080 is Alberta Tax
|
|
3660
|
-
* Payable, 081 is the SR&ED credit (form 009), 082 is "Instalments and other
|
|
3661
|
-
* payments **and ARTC instalments** credited to income tax account for this
|
|
3662
|
-
* taxation year" — a single, plain, preparer-entered figure — and 086/087 are
|
|
3663
|
-
* the capital gains refund and other credits. No line in that sequence reads
|
|
3664
|
-
* "if form 006 exists, value = ...", unlike every other schedule's credit
|
|
3665
|
-
* (see 072 = form 004, 074 = form 008, 081 = form 009).
|
|
3666
|
-
*
|
|
3667
|
-
* The Alberta Royalty Tax Credit is administered as an INSTALMENT PROGRAM,
|
|
3668
|
-
* not an annual claimed credit: TRA pays or credits ARTC instalments to the
|
|
3669
|
-
* corporation during the year based on estimated entitlement, and the
|
|
3670
|
-
* corporation simply reports what it already received at line 082 (already
|
|
3671
|
-
* collected in this app's shared "Payments & Instalments" schedule) — it
|
|
3672
|
-
* does not compute a fresh credit from Schedule 6/7's own figures on this
|
|
3673
|
-
* return. Schedule 6/7 exist to establish the royalty amount, shelter and
|
|
3674
|
-
* rate TRA uses to determine those instalments (and to support TRA's own
|
|
3675
|
-
* assessment), not to produce a number the corporation deducts here. So this
|
|
3676
|
-
* module correctly stops at the three components (006004, 006006, 006008)
|
|
3677
|
-
* — that is the schedule's whole job.
|
|
3678
|
-
*
|
|
3679
|
-
* Whole dollars, pure.
|
|
3680
|
-
*/
|
|
3681
|
-
/** ACRS (006022-006028) — the associated corporation with the longest taxation year. */
|
|
3682
|
-
interface RoyaltyTaxCreditLongestAssociatedYear {
|
|
3683
|
-
/** 006022 — Alberta Corporate Account Number of that corporation. */
|
|
3684
|
-
albertaCan?: string;
|
|
3685
|
-
/** 006024 — that corporation's taxation year beginning, ISO `YYYY-MM-DD`. */
|
|
3686
|
-
taxationYearBeginning?: string;
|
|
3687
|
-
/** 006026 — that corporation's taxation year ending, ISO `YYYY-MM-DD`. */
|
|
3688
|
-
taxationYearEnding?: string;
|
|
3689
|
-
/** 006028 — number of days in that taxation year, capped at 365 on the form. */
|
|
3690
|
-
days: number;
|
|
3691
|
-
}
|
|
3692
|
-
/** One row of the AACRS allocation table (006030-006034). */
|
|
3693
|
-
interface RoyaltyTaxCreditShelterAllocation {
|
|
3694
|
-
/** 006030 — name of the corporation. Sort so the FIRST row is the corporation filing this return. */
|
|
3695
|
-
name: string;
|
|
3696
|
-
/** 006032 — Alberta Corporate Account Number, if this row is not the filer. */
|
|
3697
|
-
albertaCan?: string;
|
|
3698
|
-
/** 006034 — amount of the $2,000,000 shelter pool allocated to this corporation. */
|
|
3699
|
-
allocatedAmount: number;
|
|
3700
|
-
}
|
|
3701
|
-
/** One resolved allocation row, after the per-row and aggregate caps are applied. */
|
|
3702
|
-
interface RoyaltyTaxCreditShelterAllocationResult {
|
|
3703
|
-
name: string;
|
|
3704
|
-
albertaCan?: string;
|
|
3705
|
-
/** 006034, capped at the pool per row. See `AlbertaSchedule6Result.issues` if capping occurred. */
|
|
3706
|
-
allocatedAmount: number;
|
|
3707
|
-
/** What was actually requested before capping, for the audit trail. */
|
|
3708
|
-
requestedAmount: number;
|
|
3709
|
-
}
|
|
3710
|
-
/** One quarter the taxation year spans, for the 006008 weighted-average-rate calculation. */
|
|
3711
|
-
interface RoyaltyTaxCreditQuarter {
|
|
3712
|
-
/** Number of days in the taxation year that fall within this calendar quarter. */
|
|
3713
|
-
days: number;
|
|
3714
|
-
/** The published RTC quarterly rate for this calendar quarter, as a decimal (e.g. 0.0473). */
|
|
3715
|
-
rate: number;
|
|
3716
|
-
}
|
|
3717
|
-
interface AlbertaSchedule6Input {
|
|
3718
|
-
/** 006002 — is the corp associated with one or more corporations that incurred Alberta Crown Royalty in the year? Defaults to No. */
|
|
3719
|
-
associatedWithCrownRoyaltyCorporations?: boolean;
|
|
3720
|
-
/**
|
|
3721
|
-
* 006004 — Alberta Crown Royalty incurred in the taxation year. Pass
|
|
3722
|
-
* `computeAlbertaSchedule7(...).albertaCrownRoyaltyForSchedule6`; see the
|
|
3723
|
-
* module docstring for why this is a plain input rather than re-derived.
|
|
3724
|
-
*/
|
|
3725
|
-
albertaCrownRoyaltyIncurred?: number;
|
|
3726
|
-
/**
|
|
3727
|
-
* Days in THIS corporation's own taxation year — used only on the
|
|
3728
|
-
* NOT-associated shelter path (006002 = 2). Defaults to 365 (a full year)
|
|
3729
|
-
* and is capped at 365, per the form's own "(max 365)".
|
|
3730
|
-
*/
|
|
3731
|
-
taxationYearDays?: number;
|
|
3732
|
-
/** ACRS — required when `associatedWithCrownRoyaltyCorporations` is true. */
|
|
3733
|
-
longestAssociatedYear?: RoyaltyTaxCreditLongestAssociatedYear;
|
|
3734
|
-
/**
|
|
3735
|
-
* AACRS — required when `associatedWithCrownRoyaltyCorporations` is true.
|
|
3736
|
-
* The FIRST entry must be the corporation filing this return — its
|
|
3737
|
-
* (possibly capped) `allocatedAmount` becomes 006006.
|
|
3738
|
-
*/
|
|
3739
|
-
allocations?: readonly RoyaltyTaxCreditShelterAllocation[];
|
|
3740
|
-
/** 006008 — one entry per calendar quarter the taxation year spans. */
|
|
3741
|
-
quarters?: readonly RoyaltyTaxCreditQuarter[];
|
|
3742
|
-
}
|
|
3743
|
-
interface AlbertaSchedule6Result {
|
|
3744
|
-
/** 006002. */
|
|
3745
|
-
associatedWithCrownRoyaltyCorporations: boolean;
|
|
3746
|
-
/** 006004. */
|
|
3747
|
-
albertaCrownRoyaltyIncurred: number;
|
|
3748
|
-
/** 006006. */
|
|
3749
|
-
crownRoyaltyShelter: number;
|
|
3750
|
-
/** 006008, to 4 decimal places. */
|
|
3751
|
-
weightedAverageRate: number;
|
|
3752
|
-
/** ACRS, echoed through with `days` resolved — present only when associated. */
|
|
3753
|
-
longestAssociatedYear?: RoyaltyTaxCreditLongestAssociatedYear;
|
|
3754
|
-
/** The $2,000,000 × (006028 / 365) pool being allocated — present only when associated. */
|
|
3755
|
-
aggregateShelterPool: number;
|
|
3756
|
-
/** AACRS, after per-row and aggregate capping. */
|
|
3757
|
-
allocations: RoyaltyTaxCreditShelterAllocationResult[];
|
|
3758
|
-
/** Σ allocated (post-cap). Cannot exceed `aggregateShelterPool`. */
|
|
3759
|
-
totalAllocated: number;
|
|
3760
|
-
/** Whether Alberta Crown Royalty was incurred at all — the form's own trigger condition (spec lines 6342-6361), evaluated from `albertaCrownRoyaltyIncurred` alone. */
|
|
3761
|
-
formRequired: boolean;
|
|
3762
|
-
issues: string[];
|
|
3763
|
-
}
|
|
3764
|
-
/**
|
|
3765
|
-
* `scheduleNNValues` for Schedule 6, following the `at1-schedule-line-items.ts`
|
|
3766
|
-
* builder pattern (see `schedule3Values` in `schedule3-other-deductions-credits.ts`
|
|
3767
|
-
* for the identical local-type convention). Kept in THIS file rather than the
|
|
3768
|
-
* shared filing module — other agents edit `at1-schedule-line-items.ts`
|
|
3769
|
-
* concurrently.
|
|
3770
|
-
*/
|
|
3771
|
-
interface At1ScheduleValueLike$3 {
|
|
3772
|
-
lineItemId: string;
|
|
3773
|
-
value: string | number;
|
|
3774
|
-
}
|
|
3775
|
-
interface At1ScheduleDataLike$3 {
|
|
3776
|
-
scheduleId: string;
|
|
3777
|
-
values: At1ScheduleValueLike$3[];
|
|
3778
|
-
}
|
|
3779
|
-
/**
|
|
3780
|
-
* Emits every field this module's own MAPPINGS transcription actually defines
|
|
3781
|
-
* a number for: 006002/004/006/008, and — only when the corporation is
|
|
3782
|
-
* associated — the ACRS section (006022-028) and the AACRS allocation table
|
|
3783
|
-
* (006030-034, one occurrence per row).
|
|
3784
|
-
*
|
|
3785
|
-
* ── No credit amount is filed here, because none exists on this schedule ────
|
|
3786
|
-
*
|
|
3787
|
-
* See the module docstring's "CONFIRMED: there is no 'credit' dollar amount
|
|
3788
|
-
* to compute here" section — the Alberta Royalty Tax Credit is an instalment
|
|
3789
|
-
* program (AT1 jacket line 000082, the shared "Payments & Instalments"
|
|
3790
|
-
* schedule), not a value Schedule 6 computes and files. This builder emits
|
|
3791
|
-
* exactly the three components the schedule DOES define (006004, 006006,
|
|
3792
|
-
* 006008) plus the ACRS/AACRS detail when associated — matching
|
|
3793
|
-
* `schedule3Values`'s `At1ScheduleDataLike` shape exactly: `{ scheduleId,
|
|
3794
|
-
* values }`.
|
|
3795
|
-
*/
|
|
3796
|
-
declare function schedule6Values(result: AlbertaSchedule6Result): At1ScheduleDataLike$3;
|
|
3797
|
-
declare function computeAlbertaSchedule6(input: AlbertaSchedule6Input): AlbertaSchedule6Result;
|
|
3798
|
-
//#endregion
|
|
3799
|
-
//#region src/t2/at1/schedules/schedule7-royalty-supplemental.d.ts
|
|
3800
|
-
/**
|
|
3801
|
-
* Alberta AT1 Schedule 7 — Alberta Royalty Tax Credit/Deduction Supplemental
|
|
3802
|
-
* Information.
|
|
3803
|
-
*
|
|
3804
|
-
* TRA spec §3.2.3.8 (Chapter 3, lines 6654-7251). Schedule 7 is not itself a
|
|
3805
|
-
* claim — it is the disclosure schedule that supports BOTH AT1 Schedule 5
|
|
3806
|
-
* (Royalty Tax Deduction) and AT1 Schedule 6 (Royalty Tax Credit): "If there
|
|
3807
|
-
* is a requirement for forms 005 and/or form 006, then form 007 must be
|
|
3808
|
-
* completed. IF FORM 007 IS NOT INCLUDED WITH FORMS 005 AND/OR 006, THEN THE
|
|
3809
|
-
* CLIENT'S RTC ENTITLEMENT WILL BE DISALLOWED" (spec lines 6704-6715).
|
|
3810
|
-
* Schedule 5 is built independently by another module in this package; this
|
|
3811
|
-
* one only produces the figures Schedule 5 and Schedule 6 each cite as coming
|
|
3812
|
-
* "from Schedule 7".
|
|
3813
|
-
*
|
|
3814
|
-
* ── Structure ────────────────────────────────────────────────────────────
|
|
3815
|
-
*
|
|
3816
|
-
* CPI (Crown Payment Information, 007003-007029) — the corporation's own
|
|
3817
|
-
* crown charges, transcribed line by line from the income statement
|
|
3818
|
-
* (fed form 125) and balance sheet (fed form 100).
|
|
3819
|
-
* PITI (Partnership Income Tax Information, 007071-007081) — one row per
|
|
3820
|
-
* partnership the corporation is a member of, repeating.
|
|
3821
|
-
* ACRA (Adjustments to ACR Reported in the Current year but Relating to
|
|
3822
|
-
* prior taxation years, 007083-007091) — one row per prior-year
|
|
3823
|
-
* correction, repeating.
|
|
3824
|
-
*
|
|
3825
|
-
* ── Two totals with NO defining row of their own in this MAPPINGS table ────
|
|
3826
|
-
*
|
|
3827
|
-
* Both totals below are cited BY NAME from other schedules' own field
|
|
3828
|
-
* definitions elsewhere in the same spec document, but neither has its own
|
|
3829
|
-
* row inside Schedule 7's MAPPINGS block (spec lines 6654-7251, the full
|
|
3830
|
-
* extent of Schedule 7 in this document) — the field numbering jumps
|
|
3831
|
-
* 007051 → 007071 with no 007061 row ever printed, even though line 061 is
|
|
3832
|
-
* referenced as an existing, fully-defined line. Both are modelled here
|
|
3833
|
-
* because their formulas are stated explicitly elsewhere in the spec, not
|
|
3834
|
-
* guessed:
|
|
3835
|
-
*
|
|
3836
|
-
* **007051** ("Total Adjustments to current year Alberta Crown Royalty due
|
|
3837
|
-
* to adjustments from Prior Production Years") DOES have its own row
|
|
3838
|
-
* (spec lines 6939-6947):
|
|
3839
|
-
* 051 = Σ (007087 − 007089 + 007091), default zero if no ACRA rows.
|
|
3840
|
-
*
|
|
3841
|
-
* **007061** has no row in 6654-7251, but AT1 Schedule 5's own field 005001
|
|
3842
|
-
* ("Crown charges") cites it verbatim, formula included in full (spec
|
|
3843
|
-
* lines 5237-5248, inside Schedule 5's own MAPPINGS block, not Schedule
|
|
3844
|
-
* 7's):
|
|
3845
|
-
* "Enter the amount from Schedule 7, line 061.
|
|
3846
|
-
* 007003 + 007005 + 007007 + 007009 + 007011 + 007013 + 007017 +
|
|
3847
|
-
* 007025 + 007029 + (sum of all 007077) + (sum of all 007079) +
|
|
3848
|
-
* (sum of all 007081) − 007051
|
|
3849
|
-
* if negative, default to zero."
|
|
3850
|
-
* The "if negative, default to zero" step is Schedule 5's own 005001 rule
|
|
3851
|
-
* (confirmed against the Schedule 5 module in this package, which applies
|
|
3852
|
-
* that floor itself), so `crownChargesNetOfReimbursements` here is left
|
|
3853
|
-
* SIGNED — un-floored — and the floor is Schedule 5's job, not this
|
|
3854
|
-
* module's.
|
|
3855
|
-
*
|
|
3856
|
-
* ── A sign asymmetry between 007051 and 006004, not resolved here ──────────
|
|
3857
|
-
*
|
|
3858
|
-
* AT1 Schedule 6's own field 006004 ("Alberta Crown Royalty incurred in the
|
|
3859
|
-
* taxation year") is defined, also elsewhere in the spec (Schedule 6's own
|
|
3860
|
-
* block, lines 6375-6384), as:
|
|
3861
|
-
*
|
|
3862
|
-
* 006004 = 007003 + (sum of all 007077) − (sum of all 007087)
|
|
3863
|
-
* + (sum of all 007089)
|
|
3864
|
-
*
|
|
3865
|
-
* That is the OPPOSITE sign treatment of 007087/007089 from 007051 above
|
|
3866
|
-
* (which adds 087 and subtracts 089). Both formulas are transcribed exactly
|
|
3867
|
-
* as printed — this module does not "correct" the apparent inversion, and
|
|
3868
|
-
* `albertaCrownRoyaltyForSchedule6` and `totalAdjustments` are computed
|
|
3869
|
-
* independently, each per its own literal spec text. Flagged for the filer
|
|
3870
|
-
* to confirm against the live form rather than silently normalized.
|
|
3871
|
-
*
|
|
3872
|
-
* ── Cross-reference to Schedule 5 (built independently, out of scope here) ──
|
|
3873
|
-
*
|
|
3874
|
-
* `totalPartnershipShareOtherCrownCharges` (Σ007081, "corporation's share of
|
|
3875
|
-
* other Crown charges eligible for Royalty Tax Deduction") feeds Schedule 5,
|
|
3876
|
-
* not this schedule — it is exposed here purely as data collected on this
|
|
3877
|
-
* form, computed and passed through, never consumed by Schedule 6 or by any
|
|
3878
|
-
* calculation inside this module.
|
|
3879
|
-
*
|
|
3880
|
-
* Whole dollars, pure.
|
|
3881
|
-
*/
|
|
3882
|
-
/** One partnership the corporation is a member of (PITI, 007071-007081). */
|
|
3883
|
-
interface RoyaltySupplementalPartnership {
|
|
3884
|
-
/** 007071 — legal name of the partnership. */
|
|
3885
|
-
name: string;
|
|
3886
|
-
/** 007073 — corporation's percentage interest, as a decimal (0.75, not 75). Expressed to 4 decimal places on the form. */
|
|
3887
|
-
interestPercent: number;
|
|
3888
|
-
/** 007075 — partnership fiscal period end, ISO `YYYY-MM-DD`. */
|
|
3889
|
-
fiscalPeriodEnd?: string;
|
|
3890
|
-
/** 007077 — corporation's share of Alberta Crown Royalties eligible for the Royalty Tax Credit. */
|
|
3891
|
-
shareEligibleForCredit?: number;
|
|
3892
|
-
/** 007079 — corporation's share of other royalties paid to Alberta not eligible for the Royalty Tax Credit. */
|
|
3893
|
-
shareOtherRoyaltiesNotEligible?: number;
|
|
3894
|
-
/**
|
|
3895
|
-
* 007081 — corporation's share of other Crown charges eligible for the
|
|
3896
|
-
* Royalty Tax Deduction. Feeds AT1 Schedule 5 (built independently); not
|
|
3897
|
-
* used anywhere in this module's own arithmetic beyond being summed and
|
|
3898
|
-
* passed through.
|
|
3899
|
-
*/
|
|
3900
|
-
shareOtherCrownChargesEligibleForDeduction?: number;
|
|
3901
|
-
}
|
|
3902
|
-
/** One resolved partnership row. */
|
|
3903
|
-
interface RoyaltySupplementalPartnershipResult {
|
|
3904
|
-
name: string;
|
|
3905
|
-
interestPercent: number;
|
|
3906
|
-
fiscalPeriodEnd?: string;
|
|
3907
|
-
shareEligibleForCredit: number;
|
|
3908
|
-
shareOtherRoyaltiesNotEligible: number;
|
|
3909
|
-
shareOtherCrownChargesEligibleForDeduction: number;
|
|
3910
|
-
}
|
|
3911
|
-
/**
|
|
3912
|
-
* One prior-year Alberta Crown Royalty adjustment reported in the current
|
|
3913
|
-
* accounting period (ACRA, 007083-007091).
|
|
3914
|
-
*/
|
|
3915
|
-
interface RoyaltySupplementalPriorYearAdjustment {
|
|
3916
|
-
/** 007083 — the prior production period (taxation year end) the adjustment relates to, ISO `YYYY-MM-DD`. */
|
|
3917
|
-
priorProductionPeriodEnd?: string;
|
|
3918
|
-
/** 007085 — 1 = Department of Resource Development (formerly Energy), 2 = Operator. */
|
|
3919
|
-
sourceOfAdjustment?: 1 | 2;
|
|
3920
|
-
/** 007087 — amount of INCREASE to eligible crown royalties for that prior year (positive magnitude). */
|
|
3921
|
-
increase?: number;
|
|
3922
|
-
/** 007089 — amount of DECREASE to eligible crown royalties for that prior year (positive magnitude). */
|
|
3923
|
-
decrease?: number;
|
|
3924
|
-
/** 007091 — signed adjustment to the amount NOT eligible for the Royalty Tax Credit for that prior year. */
|
|
3925
|
-
adjustmentNotEligibleForCredit?: number;
|
|
3926
|
-
}
|
|
3927
|
-
/** One resolved prior-year adjustment row. */
|
|
3928
|
-
interface RoyaltySupplementalPriorYearAdjustmentResult {
|
|
3929
|
-
priorProductionPeriodEnd?: string;
|
|
3930
|
-
sourceOfAdjustment?: 1 | 2;
|
|
3931
|
-
increase: number;
|
|
3932
|
-
decrease: number;
|
|
3933
|
-
adjustmentNotEligibleForCredit: number;
|
|
3934
|
-
}
|
|
3935
|
-
interface AlbertaSchedule7Input {
|
|
3936
|
-
/** 007003 — Alberta crown royalty eligible for the Royalty Tax Credit, from the income statement (fed form 125). */
|
|
3937
|
-
eligibleCrownRoyalty?: number;
|
|
3938
|
-
/** 007005 — other royalties paid to Alberta not eligible for the Royalty Tax Credit (fed form 125). */
|
|
3939
|
-
otherRoyaltiesNotEligible?: number;
|
|
3940
|
-
/** 007007 — crown royalty paid to other provincial or federal jurisdictions (fed form 125). */
|
|
3941
|
-
royaltyPaidToOtherJurisdictions?: number;
|
|
3942
|
-
/** 007009 — non-deductible crown lease rentals (fed form 125). */
|
|
3943
|
-
nonDeductibleCrownLeaseRentals?: number;
|
|
3944
|
-
/** 007011 — mineral taxes (fed form 125). */
|
|
3945
|
-
mineralTaxes?: number;
|
|
3946
|
-
/** 007013 — Saskatchewan resources surcharge, non-deductible portion only (fed form 125). */
|
|
3947
|
-
saskatchewanResourcesSurcharge?: number;
|
|
3948
|
-
/** 007014 / 007015 / 007016 — up to three names of other non-deductible crown charge types (fed form 125). */
|
|
3949
|
-
otherNonDeductibleCrownChargeTypes?: readonly string[];
|
|
3950
|
-
/**
|
|
3951
|
-
* 007017 — total dollar amount of the other non-deductible crown charges
|
|
3952
|
-
* named above. The spec sums the underlying source-document amounts for
|
|
3953
|
-
* whichever types are named; those per-type amounts are not themselves
|
|
3954
|
-
* separate transmitted fields, so the total is taken as a pass-through
|
|
3955
|
-
* input. Defaults to zero when no types are named, per spec.
|
|
3956
|
-
*/
|
|
3957
|
-
otherNonDeductibleCrownCharges?: number;
|
|
3958
|
-
/** 007025 — crown lease rentals capitalized during the year on non-producing properties, non-deductible portion (balance sheet, fed form 100). */
|
|
3959
|
-
crownLeaseRentalsCapitalized?: number;
|
|
3960
|
-
/** 007027 — name of another balance sheet (fed form 100) eligible deduction. */
|
|
3961
|
-
otherBalanceSheetDeductionName?: string;
|
|
3962
|
-
/** 007029 — dollar amount of the deduction named at 007027. Defaults to zero when no name is given, per spec. */
|
|
3963
|
-
otherBalanceSheetDeduction?: number;
|
|
3964
|
-
/** PITI — one row per partnership the corporation is a member of. */
|
|
3965
|
-
partnerships?: readonly RoyaltySupplementalPartnership[];
|
|
3966
|
-
/** ACRA — one row per prior-year Alberta Crown Royalty adjustment reported in the current year. */
|
|
3967
|
-
priorYearAdjustments?: readonly RoyaltySupplementalPriorYearAdjustment[];
|
|
3968
|
-
}
|
|
3969
|
-
interface AlbertaSchedule7Result {
|
|
3970
|
-
eligibleCrownRoyalty: number;
|
|
3971
|
-
otherRoyaltiesNotEligible: number;
|
|
3972
|
-
royaltyPaidToOtherJurisdictions: number;
|
|
3973
|
-
nonDeductibleCrownLeaseRentals: number;
|
|
3974
|
-
mineralTaxes: number;
|
|
3975
|
-
saskatchewanResourcesSurcharge: number;
|
|
3976
|
-
otherNonDeductibleCrownChargeTypes: string[];
|
|
3977
|
-
/** 007017. */
|
|
3978
|
-
otherNonDeductibleCrownCharges: number;
|
|
3979
|
-
crownLeaseRentalsCapitalized: number;
|
|
3980
|
-
otherBalanceSheetDeductionName?: string;
|
|
3981
|
-
/** 007029. */
|
|
3982
|
-
otherBalanceSheetDeduction: number;
|
|
3983
|
-
partnerships: RoyaltySupplementalPartnershipResult[];
|
|
3984
|
-
/** Σ 007077 across all partnerships. */
|
|
3985
|
-
totalPartnershipShareEligibleForCredit: number;
|
|
3986
|
-
/** Σ 007079 across all partnerships. */
|
|
3987
|
-
totalPartnershipShareOtherRoyaltiesNotEligible: number;
|
|
3988
|
-
/** Σ 007081 across all partnerships — feeds AT1 Schedule 5, not used here. */
|
|
3989
|
-
totalPartnershipShareOtherCrownCharges: number;
|
|
3990
|
-
priorYearAdjustments: RoyaltySupplementalPriorYearAdjustmentResult[];
|
|
3991
|
-
/** 007051 = Σ (087 − 089 + 091). */
|
|
3992
|
-
totalAdjustments: number;
|
|
3993
|
-
/**
|
|
3994
|
-
* 007061 — no defining row in this schedule's own MAPPINGS block; formula
|
|
3995
|
-
* transcribed from AT1 Schedule 5's field 005001 definition, which cites it
|
|
3996
|
-
* as "Schedule 7, line 061" in full. Left SIGNED — Schedule 5 applies its
|
|
3997
|
-
* own floor at zero.
|
|
3998
|
-
*/
|
|
3999
|
-
crownChargesNetOfReimbursements: number;
|
|
4000
|
-
/**
|
|
4001
|
-
* AT1 Schedule 6's 006004 ("Alberta Crown Royalty incurred in the taxation
|
|
4002
|
-
* year"): 007003 + Σ077 − Σ087 + Σ089. Pass this into
|
|
4003
|
-
* `computeAlbertaSchedule6`'s `albertaCrownRoyaltyIncurred` input.
|
|
4004
|
-
*/
|
|
4005
|
-
albertaCrownRoyaltyForSchedule6: number;
|
|
4006
|
-
issues: string[];
|
|
4007
|
-
}
|
|
4008
|
-
/**
|
|
4009
|
-
* `scheduleNNValues` for Schedule 7, following the `at1-schedule-line-items.ts`
|
|
4010
|
-
* builder pattern (see `schedule3Values` in `schedule3-other-deductions-credits.ts`
|
|
4011
|
-
* for the identical local-type convention this file reuses). Kept in THIS
|
|
4012
|
-
* file rather than the shared filing module — other agents edit
|
|
4013
|
-
* `at1-schedule-line-items.ts` concurrently.
|
|
4014
|
-
*/
|
|
4015
|
-
interface At1ScheduleValueLike$2 {
|
|
4016
|
-
lineItemId: string;
|
|
4017
|
-
value: string | number;
|
|
4018
|
-
}
|
|
4019
|
-
interface At1ScheduleDataLike$2 {
|
|
4020
|
-
scheduleId: string;
|
|
4021
|
-
values: At1ScheduleValueLike$2[];
|
|
4022
|
-
}
|
|
4023
|
-
/**
|
|
4024
|
-
* Emits CPI (007003-029), the computed totals 007051 and 007061, and the two
|
|
4025
|
-
* repeating sections — PITI (007071-081, one occurrence per partnership) and
|
|
4026
|
-
* ACRA (007083-091, one occurrence per prior-year adjustment).
|
|
4027
|
-
*
|
|
4028
|
-
* 007061 is filed even though it has no defining row of its own anywhere in
|
|
4029
|
-
* this schedule's MAPPINGS block (spec lines 6654-7251) — see the module
|
|
4030
|
-
* docstring's "Two totals with NO defining row of their own in this MAPPINGS
|
|
4031
|
-
* table" section. It is a real Schedule 7 output line: AT1 Schedule 5's own
|
|
4032
|
-
* field 005001 definition (spec lines 5237-5248) names it explicitly as
|
|
4033
|
-
* "Schedule 7, line 061" and gives its formula in full, so it is filed here
|
|
4034
|
-
* under that citation rather than omitted for lack of a home row.
|
|
4035
|
-
*/
|
|
4036
|
-
declare function schedule7Values$1(result: AlbertaSchedule7Result): At1ScheduleDataLike$2;
|
|
4037
|
-
declare function computeAlbertaSchedule7(input: AlbertaSchedule7Input): AlbertaSchedule7Result;
|
|
4038
|
-
//#endregion
|
|
4039
|
-
//#region src/t2/at1/schedules/schedule8-political-contributions.d.ts
|
|
4040
|
-
/**
|
|
4041
|
-
* Alberta AT1 Schedule 8 — Alberta Political Contributions Tax Credit.
|
|
4042
|
-
*
|
|
4043
|
-
* Schedule 8 itself (TRA spec §3.2.3.9, lines 7252-7450, form "008") is a
|
|
4044
|
-
* detail schedule, not a calculation: it collects one PCD occurrence per
|
|
4045
|
-
* receipted contribution —
|
|
4046
|
-
*
|
|
4047
|
-
* 008002 name of party / constituency association / candidate M
|
|
4048
|
-
* 008004 official receipt number M
|
|
4049
|
-
* 008006 date of donation (the spec: "do not let ... blank") M
|
|
4050
|
-
* 008008 donation amount M
|
|
4051
|
-
*
|
|
4052
|
-
* — plus two APC (Alberta Political Contributions) totals for contributions
|
|
4053
|
-
* made THROUGH A PARTNERSHIP, sourced from federal form T5013 and not
|
|
4054
|
-
* derivable from anything else in this schedule:
|
|
4055
|
-
*
|
|
4056
|
-
* 008012 partnership contributions made in 2003 or earlier (T5013 box 37)
|
|
4057
|
-
* 008013 partnership contributions made in 2004 or later (T5013)
|
|
4058
|
-
*
|
|
4059
|
-
* The actual TIERED CREDIT FORMULA that turns those totals into a dollar
|
|
4060
|
-
* credit is not on Schedule 8's own line map at all — it lives on the AT1
|
|
4061
|
-
* JACKET, line 000074 (§3.2.3.1, "AT1 - Alberta Corporate Income Tax Return"),
|
|
4062
|
-
* which consumes Schedule 8's own totals (008008, 008012, 008013). Because it
|
|
4063
|
-
* is entirely built from Schedule 8's own numbers and the module's name is
|
|
4064
|
-
* "the Alberta Political Contributions Tax Credit", it is reproduced here —
|
|
4065
|
-
* transcribed exactly, three rate periods:
|
|
4066
|
-
*
|
|
4067
|
-
* **All contributions made in 2003 or earlier:**
|
|
4068
|
-
* A = (sum of 008008) + 008012
|
|
4069
|
-
* B = A ≤ $150 → A×.75 | A ≤ $825 → $112.50 + (A−150)×.50 | else $450 + (A−825)×.333
|
|
4070
|
-
* credit = least of B, $750, `000068 − (000070 + 000071 + 000072)`
|
|
4071
|
-
*
|
|
4072
|
-
* **All contributions made in 2004 or later:**
|
|
4073
|
-
* A = (sum of 008008) + 008013
|
|
4074
|
-
* B = A ≤ $200 → A×.75 | A ≤ $900 → $150 + (A−200)×.50 | else $600 + (A−900)×.333
|
|
4075
|
-
* credit = least of B, $1000, `000068 − (000070 + 000071 + 000072)`
|
|
4076
|
-
*
|
|
4077
|
-
* **Contributions made in BOTH 2003 and 2004, AND the tax year itself begins
|
|
4078
|
-
* in 2003 and ends in 2004** (a straddling fiscal year-end, not just mixed
|
|
4079
|
-
* donation dates):
|
|
4080
|
-
* X = (sum of 008008 dated in 2004 only) + 008013
|
|
4081
|
-
* Y = (sum of 008008) + 008012 + 008013
|
|
4082
|
-
* A = min(Y, 150); B = min(X−A, 50); C = min(Y−(A+B), 675)
|
|
4083
|
-
* D = min(X−(A+B+C), 225); E = min(Y−(A+B+C+D), 900); F = min(X−(A+B+C+D+E), 300)
|
|
4084
|
-
* credit = .75A + .75B + .50C + .50D + ⅓E + ⅓F
|
|
4085
|
-
* — the spec states NO $750/$1000/remaining-tax ceiling for this branch,
|
|
4086
|
-
* unlike the other two. Reproduced literally: this module does not invent
|
|
4087
|
-
* one. (Jacket line 080, "Alberta Tax Payable", cannot go negative, and
|
|
4088
|
-
* that reconciliation is enforced elsewhere, e.g. `at1-line-items.ts`'s
|
|
4089
|
-
* `At1TaxPayableMismatchError` — not this module's job.)
|
|
4090
|
-
*
|
|
4091
|
-
* If contributions span both periods WITHOUT the tax year itself straddling
|
|
4092
|
-
* 2003/2004, the spec defines no formula for that combination; this module
|
|
4093
|
-
* computes nothing and raises an issue rather than guessing which branch to
|
|
4094
|
-
* apply.
|
|
4095
|
-
*
|
|
4096
|
-
* `000068 − (000070 + 000071 + 000072)` (basic Alberta tax minus the small
|
|
4097
|
-
* business deduction, M&P profits deduction and foreign investment tax
|
|
4098
|
-
* credit) is an AT1 JACKET figure built from schedules this module doesn't
|
|
4099
|
-
* reach — taken here as a single `remainingBasicTax` input, following the
|
|
4100
|
-
* same fail-closed convention as `schedule20-donations.ts`'s `incomeLimit`:
|
|
4101
|
-
* absent means no claim for the two capped rate periods.
|
|
4102
|
-
*
|
|
4103
|
-
* Whole dollars, pure.
|
|
4104
|
-
*/
|
|
4105
|
-
interface PoliticalContributionInput {
|
|
4106
|
-
/** 008002 — name of the party, constituency association or candidate. */
|
|
4107
|
-
name: string;
|
|
4108
|
-
/** 008004 — official receipt number. */
|
|
4109
|
-
receiptNumber: string;
|
|
4110
|
-
/** 008006 — date of the official receipt, ISO `YYYY-MM-DD`. Mandatory per spec. */
|
|
4111
|
-
dateOfDonation: string;
|
|
4112
|
-
/** 008008 — donation amount. */
|
|
4113
|
-
amount: number;
|
|
4114
|
-
}
|
|
4115
|
-
interface Schedule8Input {
|
|
4116
|
-
/** One PCD occurrence per receipted contribution. */
|
|
4117
|
-
contributions: PoliticalContributionInput[];
|
|
4118
|
-
/**
|
|
4119
|
-
* 008012 — Alberta political contributions from a partnership made in 2003
|
|
4120
|
-
* or earlier, sourced from federal T5013 box 37. Defaults to nil.
|
|
4121
|
-
*/
|
|
4122
|
-
partnershipContributionsTo2003?: number;
|
|
4123
|
-
/**
|
|
4124
|
-
* 008013 — Alberta political contributions from a partnership made in 2004
|
|
4125
|
-
* or later, sourced from federal T5013. Defaults to nil.
|
|
4126
|
-
*/
|
|
4127
|
-
partnershipContributionsFrom2004?: number;
|
|
4128
|
-
/**
|
|
4129
|
-
* The corporation's tax year start/end, ISO `YYYY-MM-DD`. Needed ONLY to
|
|
4130
|
-
* confirm the third (straddling) rate-period formula applies — it
|
|
4131
|
-
* additionally requires the tax year itself to begin in 2003 and end in
|
|
4132
|
-
* 2004, not just that contribution dates span both years.
|
|
4133
|
-
*/
|
|
4134
|
-
taxYearBegin?: string;
|
|
4135
|
-
taxYearEnd?: string;
|
|
4136
|
-
/**
|
|
4137
|
-
* `000068 − (000070 + 000071 + 000072)` — remaining basic Alberta tax after
|
|
4138
|
-
* the small business deduction, M&P profits deduction and foreign
|
|
4139
|
-
* investment tax credit. Required for the 2003-or-earlier and
|
|
4140
|
-
* 2004-or-later rate periods, which the spec caps against it; absent means
|
|
4141
|
-
* no claim for those periods (fail closed). NOT applied to the straddling
|
|
4142
|
-
* period, which the spec states no ceiling for.
|
|
4143
|
-
*/
|
|
4144
|
-
remainingBasicTax?: number;
|
|
4145
|
-
}
|
|
4146
|
-
interface Schedule8Result {
|
|
4147
|
-
contributions: PoliticalContributionInput[];
|
|
4148
|
-
partnershipContributionsTo2003: number;
|
|
4149
|
-
partnershipContributionsFrom2004: number;
|
|
4150
|
-
/** Which of the three rate-period formulas applied, or 'none'. */
|
|
4151
|
-
period: 'to-2003' | 'from-2004' | 'straddle-2003-2004' | 'none';
|
|
4152
|
-
/** B in the to-2003/from-2004 branches, or the weighted A..F sum in the straddle branch — before any ceiling. */
|
|
4153
|
-
creditBeforeCeiling: number;
|
|
4154
|
-
/** 000074 (jacket) — the Alberta Political Contributions Tax Credit, after whatever ceiling applies. */
|
|
4155
|
-
credit: number;
|
|
4156
|
-
issues: string[];
|
|
4157
|
-
}
|
|
4158
|
-
declare function computeSchedule8(input: Schedule8Input): Schedule8Result;
|
|
4159
|
-
/**
|
|
4160
|
-
* Net File line items for AT1 Schedule 8: one PCD occurrence per contribution
|
|
4161
|
-
* (002 name, 004 receipt number, 006 date, 008 amount), plus the two APC
|
|
4162
|
-
* partnership totals (012, 013).
|
|
4163
|
-
*
|
|
4164
|
-
* Does NOT emit jacket line 000074 (the actual tax credit) — that is a
|
|
4165
|
-
* jacket line, not a Schedule 8 line. Use `result.credit` for that.
|
|
4166
|
-
*/
|
|
4167
|
-
declare function schedule8Values$1(result: Schedule8Result): At1ScheduleData;
|
|
4168
|
-
//#endregion
|
|
4169
|
-
//#region src/t2/at1/schedules/schedule9-sred-tax-credit.d.ts
|
|
4170
|
-
/**
|
|
4171
|
-
* AT1 Schedule 9 — Alberta Scientific Research & Experimental Development Tax
|
|
4172
|
-
* Credit.
|
|
4173
|
-
*
|
|
4174
|
-
* Alberta's OWN investment tax credit on SR&ED spending — not the same thing as
|
|
4175
|
-
* either of the two SR&ED-adjacent modules already in this package:
|
|
4176
|
-
*
|
|
4177
|
-
* • AT1 Schedule 16 (`schedule16-sred.ts`) — the Alberta SR&ED expenditure
|
|
4178
|
-
* **pool**, a deduction against income; and
|
|
4179
|
-
* • federal Schedule 31 (`t2/schedules/schedule31-sred-itc.ts`) — the FEDERAL
|
|
4180
|
-
* investment tax credit, computed under s.127/127.1 at 35%/15%.
|
|
4181
|
-
*
|
|
4182
|
-
* This module is Alberta's PARALLEL investment tax credit, at a flat 10% (line
|
|
4183
|
-
* 120, "lesser of line 009031 and 009108 X 10%") — an entirely separate credit
|
|
4184
|
-
* mechanism from the federal one, not a top-up or a share of it.
|
|
4185
|
-
*
|
|
4186
|
-
* **The credit is WOUND DOWN.** Per the spec's own framing text (TRA spec
|
|
4187
|
-
* §3.2.3.10, page 3-84): "eligible expenditures" are federal-expenditure amounts
|
|
4188
|
-
* "carried out in Alberta before January 1, 2020, [and] the SR&ED Tax Credit may
|
|
4189
|
-
* not be claimed in respect of any such expenditures carried out in Alberta after
|
|
4190
|
-
* that date." This module does not filter expenditures by date itself — the
|
|
4191
|
-
* `albertaPortionOfExpenditures` (005) input must already exclude anything
|
|
4192
|
-
* incurred after 2019-12-31. `taxationYearEnd` is accepted purely to raise a
|
|
4193
|
-
* reminder issue when the return's own year end falls after that cut-off, since
|
|
4194
|
-
* a straddling year is exactly where a preparer is most likely to include an
|
|
4195
|
-
* ineligible period by mistake.
|
|
4196
|
-
*
|
|
4197
|
-
* Line map (TRA spec §3.2.3.10, "Schedule 9 - Alberta Scientific Research &
|
|
4198
|
-
* Experimental Development Tax Credit", pp. 3-84 to 3-90):
|
|
4199
|
-
*
|
|
4200
|
-
* 009003 federal total qualified SR&ED expenditures (fed T661 line 559) M
|
|
4201
|
-
* 009005 portion of 003 incurred in Alberta X
|
|
4202
|
-
* 009007 deduct: federal prescribed proxy amount in the Alberta portion X
|
|
4203
|
-
* 009009 add: Alberta proxy amount X
|
|
4204
|
-
* 009011 add: Alberta SR&ED credit that reduced the federal expense X
|
|
4205
|
-
* on fed T661 line 559 in the taxation year
|
|
4206
|
-
* 009015 federal ITC received in the immediately preceding year X
|
|
4207
|
-
* (fed T661 line 435)
|
|
4208
|
-
* 009017 total Alberta-eligible expenditures for years in which the X
|
|
4209
|
-
* expenditure was incurred (009031 from all relevant years)
|
|
4210
|
-
* 009019 total federal expenditures for those same years (fed T661 X
|
|
4211
|
-
* line 570 from all relevant years)
|
|
4212
|
-
* 009023 deduct: Alberta portion of the prior-year federal ITC X
|
|
4213
|
-
* = 009015 x 009017 / 009019
|
|
4214
|
-
* 009025 add: Alberta portion of any repayment of assistance and X
|
|
4215
|
-
* contract payments relating to amounts in 009005
|
|
4216
|
-
* 009040 primary field of science or technology (1-4) M
|
|
4217
|
-
* 009100 associated with one or more corporations for SR&ED purposes? M
|
|
4218
|
-
* 009102 if associated: allocated amount from line 240 (page 3) X
|
|
4219
|
-
* 009104 if not associated: maximum expenditure limit = $4,000,000 x X
|
|
4220
|
-
* (days in the corporation's tax year / 365, max 365 or 366)
|
|
4221
|
-
* 009106 eligible expenditures for Alberta purposes = 009031 X
|
|
4222
|
-
* 009108 maximum expenditure limit for the year (102 or 104) M
|
|
4223
|
-
* 009112 recapture on disposal of Alberta SR&ED property O
|
|
4224
|
-
* 009116 less: Alberta portion of prior-year federal ITC (Schedule 9 X
|
|
4225
|
-
* Supplemental line 428 — only where the year end is on or
|
|
4226
|
-
* before 2012-03-31)
|
|
4227
|
-
* 009120 NET ALBERTA SR&ED TAX CREDIT (REPAYMENT), to AT1 page 2 line M
|
|
4228
|
-
* 081 = (lesser of 009031 and 009108 x 10%) - 009112 - 009116
|
|
4229
|
-
*
|
|
4230
|
-
* Allocation of the Maximum Expenditure Limit (page 3, required when 100 = 1):
|
|
4231
|
-
* 009200 CAN of the associated corporation with the longest tax year X
|
|
4232
|
-
* 009202 / 009204 that corporation's own tax year begin / end M
|
|
4233
|
-
* 009206 days in the longest year (max 365, or 366 across Feb 29) M
|
|
4234
|
-
* 009220 name of each associated corporation (row 1 = the filer) M
|
|
4235
|
-
* 009230 Alberta Corporate Account Number of each X
|
|
4236
|
-
* 009240 allocated amount — each occurrence AND the sum of all M
|
|
4237
|
-
* occurrences must not exceed $4,000,000 x (009206 / 365)
|
|
4238
|
-
*
|
|
4239
|
-
* ── Line 009031 has no formula in the spec text ─────────────────────────────
|
|
4240
|
-
*
|
|
4241
|
-
* Lines 009003-009025 and 009106/009017 all reference "009031" ("Total eligible
|
|
4242
|
-
* expenditures for Alberta purposes") as the figure they equal or feed into, but
|
|
4243
|
-
* the mapping tables jump straight from 009025 to 009040 — 009027, 009029 and
|
|
4244
|
-
* 009031 themselves are never defined in the spec's MAPPINGS chapter, most
|
|
4245
|
-
* likely because they are calculated-on-paper subtotals that are not, unlike
|
|
4246
|
-
* every field above them, separately transmitted EFILE data elements. Rather
|
|
4247
|
-
* than invent a number, this module DERIVES 031 from the six lines the spec DOES
|
|
4248
|
-
* define and caption unambiguously as "Deduct" or "Add" against the Alberta
|
|
4249
|
-
* expenditure pool (005, 007, 009, 011, 023, 025):
|
|
4250
|
-
*
|
|
4251
|
-
* 031 = 005 − 007 + 009 + 011 − 023 + 025
|
|
4252
|
-
*
|
|
4253
|
-
* That derivation is used only when `eligibleExpenditures` is not supplied
|
|
4254
|
-
* directly, and an issue is always raised when it is, so a preparer with the
|
|
4255
|
-
* authoritative figure (e.g. from the Guide to Claiming the Alberta SR&ED Tax
|
|
4256
|
-
* Credit) knows to override it via `eligibleExpenditures`.
|
|
4257
|
-
*
|
|
4258
|
-
* ── Line 009011 cites a line that does not exist ────────────────────────────
|
|
4259
|
-
*
|
|
4260
|
-
* The spec's own business rule for 011 reads "Value = 009110. See Guide to
|
|
4261
|
-
* Claiming The Alberta SR&ED Tax Credit for calculation" — but no line 009110 is
|
|
4262
|
-
* defined anywhere in this schedule (the lines run ...009108, 009112...). It is
|
|
4263
|
-
* most likely a transposed "009011" (self-reference) or a Guide-only figure with
|
|
4264
|
-
* no corresponding transmitted line at all. Either way its actual calculation is
|
|
4265
|
-
* explicitly deferred to an external guide this package does not model, so
|
|
4266
|
-
* `albertaCreditReducingFederalExpense` is accepted as a plain numeric INPUT.
|
|
4267
|
-
*
|
|
4268
|
-
* ── Line 009116 is a legacy, pre-2012 field ─────────────────────────────────
|
|
4269
|
-
*
|
|
4270
|
-
* "If the taxation year end is on or before March 31, 2012, value = line 428 of
|
|
4271
|
-
* Schedule 9 Supplemental." The Schedule 9 Supplemental and its own line 428 are
|
|
4272
|
-
* not modelled — `priorYearFederalItcAdjustment` is a plain numeric input,
|
|
4273
|
-
* expected to be nil for any current return.
|
|
4274
|
-
*
|
|
4275
|
-
* Whole dollars, pure.
|
|
4276
|
-
*/
|
|
4277
|
-
/** Valid codes for line 009040 — "Primary field of science or technology". */
|
|
4278
|
-
type Schedule9FieldOfScience = 1 | 2 | 3 | 4;
|
|
4279
|
-
interface AlbertaSchedule9Input {
|
|
4280
|
-
/** 009003 — federal total qualified SR&ED expenditures. Must equal fed T661 line 559. */
|
|
4281
|
-
federalQualifiedExpenditures?: number;
|
|
4282
|
-
/** 009005 — the portion of 003 incurred in Alberta. Must not exceed 003. */
|
|
4283
|
-
albertaPortionOfExpenditures?: number;
|
|
4284
|
-
/** 009007 — deduct: federal prescribed proxy amount included in the Alberta portion. */
|
|
4285
|
-
federalProxyAmountInAlbertaPortion?: number;
|
|
4286
|
-
/** 009009 — add: Alberta proxy amount. */
|
|
4287
|
-
albertaProxyAmount?: number;
|
|
4288
|
-
/**
|
|
4289
|
-
* 009011 — add: Alberta SR&ED credit that reduced the federal expense on fed
|
|
4290
|
-
* T661 line 559 in the taxation year. Its calculation is deferred by the spec
|
|
4291
|
-
* to the Guide to Claiming the Alberta SR&ED Tax Credit — see the module
|
|
4292
|
-
* docstring. Plain input.
|
|
4293
|
-
*/
|
|
4294
|
-
albertaCreditReducingFederalExpense?: number;
|
|
4295
|
-
/** 009015 — federal ITC received in the immediately preceding year (fed T661 line 435). */
|
|
4296
|
-
priorYearFederalItcReceived?: number;
|
|
4297
|
-
/** 009017 — total Alberta-eligible expenditures for years in which incurred (009031, all years). */
|
|
4298
|
-
totalAlbertaExpendituresAllYears?: number;
|
|
4299
|
-
/** 009019 — total federal expenditures for those same years (fed T661 line 570, all years). */
|
|
4300
|
-
totalFederalExpendituresAllYears?: number;
|
|
4301
|
-
/** 009025 — add: Alberta portion of any repayment of assistance relating to 005. */
|
|
4302
|
-
albertaPortionOfRepayments?: number;
|
|
4303
|
-
/**
|
|
4304
|
-
* 009031 / 009106 — "Total eligible expenditures for Alberta purposes."
|
|
4305
|
-
* Overrides the derived figure (005 − 007 + 009 + 011 − 023 + 025) when the
|
|
4306
|
-
* authoritative amount is known. See the module docstring for why this is
|
|
4307
|
-
* derived rather than read directly off the spec.
|
|
4308
|
-
*/
|
|
4309
|
-
eligibleExpenditures?: number;
|
|
4310
|
-
/** 009040 — primary field of science or technology. Mandatory on the live form. */
|
|
4311
|
-
fieldOfScience?: Schedule9FieldOfScience;
|
|
4312
|
-
/** 009100 — associated with one or more corporations for SR&ED purposes? Defaults to false (line default = 2/No). */
|
|
4313
|
-
isAssociated?: boolean;
|
|
4314
|
-
/** 009102 — required when associated: this corporation's allocated share of line 240. */
|
|
4315
|
-
allocatedExpenditureLimit?: number;
|
|
4316
|
-
/**
|
|
4317
|
-
* Days in the corporation's own taxation year, for the non-associated 009104
|
|
4318
|
-
* proration. Defaults to 365 (a full year); clamped to [0, 366]. Per the
|
|
4319
|
-
* spec, days before 2009-01-01 (when the Alberta SR&ED program began) must
|
|
4320
|
-
* already be excluded by the caller — day-of-year proration from real
|
|
4321
|
-
* calendar dates is not modelled here, matching this package's convention
|
|
4322
|
-
* elsewhere (e.g. the AT1 Schedule 29 group allocation).
|
|
4323
|
-
*/
|
|
4324
|
-
daysInTaxYear?: number;
|
|
4325
|
-
/** 009112 — recapture on disposal (or deemed disposal) of Alberta SR&ED property. */
|
|
4326
|
-
disposalRecapture?: number;
|
|
4327
|
-
/**
|
|
4328
|
-
* 009116 — legacy pre-2012 adjustment from the Schedule 9 Supplemental line
|
|
4329
|
-
* 428. See the module docstring; expected nil for a current return.
|
|
4330
|
-
*/
|
|
4331
|
-
priorYearFederalItcAdjustment?: number;
|
|
4332
|
-
/**
|
|
4333
|
-
* The return's taxation year end (ISO `YYYY-MM-DD`), used only to flag a
|
|
4334
|
-
* reminder when it falls after the 2019-12-31 wind-down date — see the
|
|
4335
|
-
* module docstring's "WOUND DOWN" note.
|
|
4336
|
-
*/
|
|
4337
|
-
taxationYearEnd?: string;
|
|
4338
|
-
}
|
|
4339
|
-
interface AlbertaSchedule9Result {
|
|
4340
|
-
federalQualifiedExpenditures: number;
|
|
4341
|
-
albertaPortionOfExpenditures: number;
|
|
4342
|
-
federalProxyAmountInAlbertaPortion: number;
|
|
4343
|
-
albertaProxyAmount: number;
|
|
4344
|
-
albertaCreditReducingFederalExpense: number;
|
|
4345
|
-
priorYearFederalItcReceived: number;
|
|
4346
|
-
totalAlbertaExpendituresAllYears: number;
|
|
4347
|
-
totalFederalExpendituresAllYears: number;
|
|
4348
|
-
/** 009023 = 009015 x 009017 / 009019. */
|
|
4349
|
-
priorYearItcAlbertaPortion: number;
|
|
4350
|
-
albertaPortionOfRepayments: number;
|
|
4351
|
-
/**
|
|
4352
|
-
* 009031 / 009106 — the figure actually used at 009108's lesser-of test.
|
|
4353
|
-
* Equal to `eligibleExpenditures` when supplied, otherwise the derived
|
|
4354
|
-
* figure (see `derivedEligibleExpenditures` and the module docstring).
|
|
4355
|
-
*/
|
|
4356
|
-
eligibleExpenditures: number;
|
|
4357
|
-
/** The derived cross-check: 005 − 007 + 009 + 011 − 023 + 025, always computed. */
|
|
4358
|
-
derivedEligibleExpenditures: number;
|
|
4359
|
-
fieldOfScience: Schedule9FieldOfScience | undefined;
|
|
4360
|
-
isAssociated: boolean;
|
|
4361
|
-
/** 009104 — the non-associated day-prorated $4,000,000 limit (0 when associated). */
|
|
4362
|
-
nonAssociatedMaximumExpenditureLimit: number;
|
|
4363
|
-
/** 009108 — the maximum expenditure limit actually in effect (102 or 104). */
|
|
4364
|
-
maximumExpenditureLimit: number;
|
|
4365
|
-
disposalRecapture: number;
|
|
4366
|
-
priorYearFederalItcAdjustment: number;
|
|
4367
|
-
/** 009120 — signed; may be negative (a repayment). To AT1 page 2, line 081. */
|
|
4368
|
-
netCredit: number;
|
|
4369
|
-
issues: string[];
|
|
4370
|
-
}
|
|
4371
|
-
/** 009120's flat rate — "lesser of line 009031 and 009108 X 10%". */
|
|
4372
|
-
declare const ALBERTA_SRED_TAX_CREDIT_RATE = 0.1;
|
|
4373
|
-
/** Alberta's SR&ED program did not exist before this date (line 009104's note). */
|
|
4374
|
-
declare const ALBERTA_SRED_PROGRAM_START = "2009-01-01";
|
|
4375
|
-
/** Alberta SR&ED expenditures carried out after this date are not eligible (module docstring). */
|
|
4376
|
-
declare const ALBERTA_SRED_EXPENDITURE_CUTOFF = "2019-12-31";
|
|
4377
|
-
/**
|
|
4378
|
-
* 009104 / 009206's day-prorated $4,000,000 expenditure limit. Days are clamped
|
|
4379
|
-
* to [0, 366] — 366 only for a year genuinely spanning a February 29, per the
|
|
4380
|
-
* spec's own note.
|
|
4381
|
-
*/
|
|
4382
|
-
declare function computeSchedule9MaximumExpenditureLimit(daysInTaxYear?: number): number;
|
|
4383
|
-
declare function computeAlbertaSchedule9(input: AlbertaSchedule9Input): AlbertaSchedule9Result;
|
|
4384
|
-
/** One row of the page-3 allocation table. Row 1 must be the filing corporation. */
|
|
4385
|
-
interface Schedule9AllocationMember {
|
|
4386
|
-
/** 009220 — name of the associated corporation. */
|
|
4387
|
-
name: string;
|
|
4388
|
-
/** 009230 — Alberta Corporate Account Number. */
|
|
4389
|
-
albertaCan?: string;
|
|
4390
|
-
/** 009240 — this member's agreed share of the expenditure limit. */
|
|
4391
|
-
allocated: number;
|
|
4392
|
-
}
|
|
4393
|
-
interface Schedule9AllocationMemberResult {
|
|
4394
|
-
name: string;
|
|
4395
|
-
albertaCan?: string;
|
|
4396
|
-
allocated: number;
|
|
4397
|
-
}
|
|
4398
|
-
interface Schedule9AllocationResult {
|
|
4399
|
-
/** 009206 — days in the longest associated taxation year (clamped to [0, 366]). */
|
|
4400
|
-
daysInLongestYear: number;
|
|
4401
|
-
/** The shared $4,000,000-based ceiling every occurrence AND their sum must respect. */
|
|
4402
|
-
maximumExpenditureLimit: number;
|
|
4403
|
-
members: Schedule9AllocationMemberResult[];
|
|
4404
|
-
/** Σ 009240. Must not exceed maximumExpenditureLimit. */
|
|
4405
|
-
totalAllocated: number;
|
|
4406
|
-
/** The filing corporation's own allocated share (row 1) — feeds 009102. */
|
|
4407
|
-
claimantAllocatedAmount: number;
|
|
4408
|
-
unallocated: number;
|
|
4409
|
-
issues: string[];
|
|
4410
|
-
}
|
|
4411
|
-
/**
|
|
4412
|
-
* Allocate the day-prorated $4,000,000 maximum expenditure limit among an
|
|
4413
|
-
* associated group (page 3). Per the spec, EACH occurrence of 009240 and the
|
|
4414
|
-
* SUM of all occurrences are independently capped at the limit — unlike a
|
|
4415
|
-
* running-remainder split, one member requesting more than the limit does not
|
|
4416
|
-
* consume another member's room; it is simply capped and flagged.
|
|
4417
|
-
*/
|
|
4418
|
-
declare function allocateSchedule9ExpenditureLimit(daysInLongestYear: number, requested: readonly Schedule9AllocationMember[]): Schedule9AllocationResult;
|
|
4419
|
-
/**
|
|
4420
|
-
* `scheduleNNValues` for Schedule 9, following the `at1-schedule-line-items.ts`
|
|
4421
|
-
* builder pattern (see `schedule3Values` in `schedule3-other-deductions-credits.ts`,
|
|
4422
|
-
* `schedule16Values`, `schedule20Values`). Kept in THIS file rather than the
|
|
4423
|
-
* shared filing module per the task instructions — other agents are editing
|
|
4424
|
-
* `at1-schedule-line-items.ts` concurrently.
|
|
4425
|
-
*/
|
|
4426
|
-
interface At1ScheduleValueLike$1 {
|
|
4427
|
-
lineItemId: string;
|
|
4428
|
-
value: string | number;
|
|
4429
|
-
}
|
|
4430
|
-
interface At1ScheduleDataLike$1 {
|
|
4431
|
-
scheduleId: string;
|
|
4432
|
-
values: At1ScheduleValueLike$1[];
|
|
4433
|
-
}
|
|
4434
|
-
/**
|
|
4435
|
-
* The page-3 "Allocation of the Maximum Expenditure Limit" context that has no
|
|
4436
|
-
* home on `AlbertaSchedule9Result` itself — the CAN and tax-year dates of the
|
|
4437
|
-
* associated corporation with the longest year (009200/009202/009204), plus
|
|
4438
|
-
* the `allocateSchedule9ExpenditureLimit` result supplying 009206 and the
|
|
4439
|
-
* per-member 009220/009230/009240 rows. Supplied only when the corporation is
|
|
4440
|
-
* associated and a group was actually entered.
|
|
4441
|
-
*/
|
|
4442
|
-
interface Schedule9GroupFilingInput {
|
|
4443
|
-
/** 009200 — Alberta CAN of the associated corporation with the longest tax year. */
|
|
4444
|
-
longestYearCan?: string;
|
|
4445
|
-
/** 009202 — that corporation's own tax year begin, ISO `YYYY-MM-DD`. */
|
|
4446
|
-
longestYearBegin?: string;
|
|
4447
|
-
/** 009204 — that corporation's own tax year end, ISO `YYYY-MM-DD`. */
|
|
4448
|
-
longestYearEnd?: string;
|
|
4449
|
-
/** The result of `allocateSchedule9ExpenditureLimit` — supplies 009206/220/230/240. */
|
|
4450
|
-
allocation: Schedule9AllocationResult;
|
|
4451
|
-
}
|
|
4452
|
-
/**
|
|
4453
|
-
* Field ids per the spec transcription in the module docstring: 003-025 (the
|
|
4454
|
-
* expenditure buildup), 040 (field of science), 100-120 (the credit
|
|
4455
|
-
* calculation), and — when `group` is supplied — 200-240 (page 3's
|
|
4456
|
-
* allocation). Line 031 has no confirmed transmitted status of its own (see
|
|
4457
|
-
* the module docstring's "line 009031 has no formula in the spec text"), but
|
|
4458
|
-
* is filed anyway alongside 106 since both carry the identical "Total
|
|
4459
|
-
* eligible expenditures for Alberta purposes" figure per the spec's own
|
|
4460
|
-
* cross-reference ("106 ... Value must equal 009031").
|
|
4461
|
-
*/
|
|
4462
|
-
declare function schedule9Values(result: AlbertaSchedule9Result, group?: Schedule9GroupFilingInput): At1ScheduleDataLike$1;
|
|
4463
|
-
//#endregion
|
|
4464
3424
|
//#region src/t2/at1/schedules/schedule15-resource-related-deductions.d.ts
|
|
4465
3425
|
/**
|
|
4466
3426
|
* Alberta AT1 Schedule 15 — Alberta Resource Related Deductions.
|
|
@@ -5447,21 +4407,7 @@ interface AlbertaReturnInput {
|
|
|
5447
4407
|
smallBusinessDeduction?: Schedule1FilingInput;
|
|
5448
4408
|
allocation?: Schedule2FilingInput; /** Alberta other tax deductions and credits — ITC / CITC / APITC (Sch 3). */
|
|
5449
4409
|
otherDeductionsCredits?: Schedule3Result; /** Alberta foreign investment income tax credit (Sch 4). */
|
|
5450
|
-
foreignInvestmentTaxCredit?: Schedule4Result$1;
|
|
5451
|
-
royaltyTaxDeduction?: AlbertaSchedule5Result; /** Alberta royalty tax credit (Sch 6). */
|
|
5452
|
-
royaltyTaxCredit?: AlbertaSchedule6Result; /** Alberta royalty tax credit / deduction supplemental information (Sch 7). */
|
|
5453
|
-
royaltySupplemental?: AlbertaSchedule7Result; /** Alberta political contributions tax credit (Sch 8). */
|
|
5454
|
-
politicalContributions?: Schedule8Result;
|
|
5455
|
-
/**
|
|
5456
|
-
* Alberta SR&ED tax credit — the CREDIT, distinct from Sch 16's deduction
|
|
5457
|
-
* pool (Sch 9). `group` is the page-3 associated-group allocation detail;
|
|
5458
|
-
* supplied only when `AlbertaSchedule9Result` came from an associated
|
|
5459
|
-
* corporation with a group actually entered.
|
|
5460
|
-
*/
|
|
5461
|
-
sredTaxCredit?: {
|
|
5462
|
-
result: AlbertaSchedule9Result;
|
|
5463
|
-
group?: Schedule9GroupFilingInput;
|
|
5464
|
-
};
|
|
4410
|
+
foreignInvestmentTaxCredit?: Schedule4Result$1;
|
|
5465
4411
|
lossCarryback?: Schedule10FilingInput;
|
|
5466
4412
|
reconciliation?: Schedule12FilingInput;
|
|
5467
4413
|
cca?: AlbertaSchedule13Result; /** Alberta resource related deductions — eight expense-pool continuities (Sch 15). */
|
|
@@ -5764,12 +4710,26 @@ interface At1FilingData {
|
|
|
5764
4710
|
preparedByTaxPreparerForFee?: boolean;
|
|
5765
4711
|
}
|
|
5766
4712
|
/**
|
|
5767
|
-
* AT1 line 000090 — balance unpaid (overpayment),
|
|
4713
|
+
* AT1 line 000090 — balance unpaid (overpayment), as the PRINTED form strikes
|
|
4714
|
+
* it:
|
|
4715
|
+
*
|
|
4716
|
+
* 000088 = 000129 + 000082 + 000085 + 000086 + 000115 + 000087
|
|
4717
|
+
* 000090 = 000080 − 000088
|
|
5768
4718
|
*
|
|
5769
|
-
*
|
|
4719
|
+
* 088 is a printed subtotal with no line code of its own, so only 090 is
|
|
4720
|
+
* filed. Signed — a negative result is an overpayment, and line 000092 then
|
|
4721
|
+
* chooses between a refund and applying it to next year.
|
|
5770
4722
|
*
|
|
5771
|
-
*
|
|
5772
|
-
*
|
|
4723
|
+
* This used to follow §3.2.3.1's own line-090 rule,
|
|
4724
|
+
* `000080 - (000081 + 000082 + 00085 + 000086 + 000087)`, which nets the
|
|
4725
|
+
* ELIMINATED Alberta SR&ED tax credit and omits both the Innovation
|
|
4726
|
+
* Employment Grant and the Film and Television Tax Credit — two credits the
|
|
4727
|
+
* same specification marks mandatory. Every corporation claiming an IEG was
|
|
4728
|
+
* therefore filed with a balance overstated by the whole grant. See
|
|
4729
|
+
* `AT1_BALANCE_CREDIT_LINES` in `../forms/jacket.ts` for the full evidence,
|
|
4730
|
+
* and `albertaBalanceUnpaidPerSpec` below for the figure the specification
|
|
4731
|
+
* would produce — the review layer reports the difference rather than letting
|
|
4732
|
+
* the disagreement pass silently.
|
|
5773
4733
|
*/
|
|
5774
4734
|
declare function albertaBalanceUnpaid(d: At1FilingData): number;
|
|
5775
4735
|
/**
|
|
@@ -8890,14 +7850,19 @@ declare function computeTaxableCapital(input?: TaxableCapitalInput): TaxableCapi
|
|
|
8890
7850
|
* short-term preferred dividends first (the statutory order — which is also
|
|
8891
7851
|
* the highest band, so it is taxpayer-favourable; the two do not conflict).
|
|
8892
7852
|
*
|
|
8893
|
-
* ──
|
|
7853
|
+
* ── The s.110(1)(k) deduction lives next door ─────────────────────────────
|
|
7854
|
+
*
|
|
7855
|
+
* Part VI.1 tax paid is deductible in computing taxable income at a statutory
|
|
7856
|
+
* multiple of the tax. That multiple is not applied HERE, but it is applied:
|
|
7857
|
+
* `part-vi-1-deduction.ts` carries the three bands with the Act quoted beside
|
|
7858
|
+
* each, and `computeFederalT2` runs it on this schedule's `partVI1Tax` and
|
|
7859
|
+
* files the result on jacket line 325.
|
|
8894
7860
|
*
|
|
8895
|
-
*
|
|
8896
|
-
*
|
|
8897
|
-
*
|
|
8898
|
-
*
|
|
8899
|
-
*
|
|
8900
|
-
* `research/cra-schedules/S43-part-vi-1.md` [PIN].
|
|
7861
|
+
* This section used to say the multiple "has not been transcribed from the Act"
|
|
7862
|
+
* and that the deduction was not applied. Both were true once and neither is
|
|
7863
|
+
* now. The stale note propagated: a paper Form View repeated it to preparers as
|
|
7864
|
+
* a live gap, which invites someone to claim the deduction by hand on top of
|
|
7865
|
+
* the one the engine already took. See `research/cra-schedules/S43-part-vi-1.md`.
|
|
8901
7866
|
*
|
|
8902
7867
|
* Whole dollars, pure, no I/O.
|
|
8903
7868
|
*/
|
|
@@ -8941,8 +7906,15 @@ interface Schedule43Result {
|
|
|
8941
7906
|
/** Total Part VI.1 tax payable. */
|
|
8942
7907
|
partVI1Tax: number;
|
|
8943
7908
|
/**
|
|
8944
|
-
* True when tax is payable and
|
|
8945
|
-
*
|
|
7909
|
+
* True when Part VI.1 tax is payable, and therefore a s.110(1)(k) deduction
|
|
7910
|
+
* has been earned on it.
|
|
7911
|
+
*
|
|
7912
|
+
* The name is historical: it meant "earned but NOT yet applied" back when the
|
|
7913
|
+
* statutory multiple had not been transcribed. It is applied now, by
|
|
7914
|
+
* `computePartVI1Deduction` on jacket line 325, so this reads as "there is a
|
|
7915
|
+
* deduction to apply", not "something is outstanding". Kept rather than
|
|
7916
|
+
* renamed because it is published API; treat it as a signal that the
|
|
7917
|
+
* deduction path should have run, not as a warning to a preparer.
|
|
8946
7918
|
*/
|
|
8947
7919
|
deductionPending: boolean;
|
|
8948
7920
|
/** Blocking/advisory problems — e.g. an associated group with no agreement. */
|
|
@@ -9934,6 +8906,23 @@ interface FederalT2Result {
|
|
|
9934
8906
|
totalFederalTax: number;
|
|
9935
8907
|
/** Total tax = federal + provincial/territorial (Schedule 5). */
|
|
9936
8908
|
totalTax: number;
|
|
8909
|
+
/**
|
|
8910
|
+
* Anything a schedule wants the preparer to see: a fail-closed default that
|
|
8911
|
+
* suppressed a claim, an amount capped by a shared ceiling, an input the
|
|
8912
|
+
* engine could not derive.
|
|
8913
|
+
*
|
|
8914
|
+
* Alberta has surfaced these since its schedules were built. Federal
|
|
8915
|
+
* schedules RAISED them and nothing collected them, so the most important
|
|
8916
|
+
* one this engine produces — "several parts of the schedule are not modelled
|
|
8917
|
+
* at all… have this return reviewed by a qualified practitioner before
|
|
8918
|
+
* filing", on every EIFEL-restricted return — was computed and then dropped
|
|
8919
|
+
* on the floor.
|
|
8920
|
+
*
|
|
8921
|
+
* Gathered from every sub-result that carries an `issues` array rather than
|
|
8922
|
+
* from a hand-written list, so a schedule that starts raising them is
|
|
8923
|
+
* surfaced without anyone remembering to add it here.
|
|
8924
|
+
*/
|
|
8925
|
+
issues: string[];
|
|
9937
8926
|
/**
|
|
9938
8927
|
* Each schedule's computed figures, keyed by the CRA line they belong on.
|
|
9939
8928
|
*
|
|
@@ -10659,4 +9648,4 @@ interface CanadianMPProfitsResult {
|
|
|
10659
9648
|
declare function computeCanadianMPProfits(input: CanadianMPProfitsInput): CanadianMPProfitsResult;
|
|
10660
9649
|
declare function computeMpDeduction(input: MpDeductionInput, rates?: MpDeductionRates): MpDeductionResult;
|
|
10661
9650
|
//#endregion
|
|
10662
|
-
export { CertificationFixture as $, RsiScheduleInput as $a, InvestorTaxCreditInput as $c, computeLossCarryback as $d, AdjustedAggregateInvestmentIncomeResult as $i, IegEligibleExpendituresResult as $l, Schedule2Input as $n, CfreCountryRegularOverride as $o, computeBorrowings as $r, Schedule9AllocationMember as $s, AssociatedMemberInput as $t, AlbertaSchedule13ClassResult as $u, T2ReturnInput as A, albertaCurrentYearLoss as Aa, AlbertaSchedule5Result as Ac, computeClass14 as Ad, dayWeightedRate as Ai, schedule21Values$1 as Al, computeForeignExploration as An, CcogpeRegularResult as Ao, BorrowingRow as Ar, SfedeCountrySuccessorResult as As, computeSchedule54 as At, AlbertaSchedule18Result as Au, QuebecReturnResult as B, assertAt1TransmitterValid as Ba, Schedule4Result$1 as Bc, At4970JurisdictionAmount as Bd, TaxableIncomeResult as Bi, IegGroupResult as Bl, AllocatedProvince as Bn, CdeSuccessorInput as Bo, InterestAndFinancingExpensesInput as Br, computeCmedb as Bs, TaxableCapitalResult as Bt, AT1_RESERVE_TOTAL_LINES as Bu, T2CifGifi as C, Schedule12Input as Ca, RoyaltyTaxCreditLongestAssociatedYear as Cc, Class14PropertyResult as Cd, AdjustedTaxableIncomeInput as Ci, schedule12Values as Cl, Schedule12ResourceDeductionsInput as Cn, AlbertaReturnResult as Co, EIFEL_STANDARD_RATIO as Cr, SfedeCountryRegularFederal as Cs, computeSchedule55 as Ct, computeDonationMaximum as Cu, T2CifShareholder as D, albertaCapitalGainDifference as Da, computeAlbertaSchedule6 as Dc, MAX_LEASEHOLD_PERIODS as Dd, ProvincialRateChange as Di, schedule18Values as Dl, computeCogpe as Dn, CcogpeRegularFederal as Do, EifelLimitationResult as Dr, SfedeCountrySuccessorFederal as Ds, LripEventResult as Dt, computeSchedule20 as Du, T2CifSettlement as E, albertaAbilDifference as Ea, RoyaltyTaxCreditShelterAllocationResult as Ec, LeaseholdLayerResult as Ed, computeAdjustedTaxableIncome as Ei, schedule17Values as El, computeCee as En, AlbertaSchedule15Result as Eo, EifelLimitationInput as Er, SfedeCountryRegularResult as Es, LripDividendEvent as Et, Schedule20Result as Eu, Co17ReturnData as F, albertaTerminalLossDifference as Fa, computeAlbertaSchedule5 as Fc, CCA_RATE_BOOK as Fd, ProvincialRate as Fi, IegAgreementMember as Fl, Schedule6Result as Fn, CdeRegularFederal as Fo, Clause95IncludedRow as Fr, computeCdeSuccessor as Fs, Schedule43Rates as Ft, At1DispositionCategory as Fu, QuebecTaxInput as G, toRsiSchedule as Ga, AgriProcessingTaxCreditInput as Gc, computeAt4970 as Gd, nonCapitalLossApplied as Gi, computeIegGroupFigures as Gl, Schedule4Input as Gn, CeeRegularOverride as Go, LoansResult as Gr, computeSfedeCountryRegular as Gs, ITC_RECAPTURE_PERIOD_YEARS as Gt, At1ReserveRowResult as Gu, QuebecAllocationResult as H, toRsiHeader as Ha, schedule4Values as Hc, At4970ProjectRowResult as Hd, computeTaxableIncome as Hi, allocateIegEvenly as Hl, ProvincialAllocationInput as Hn, CdeSuccessorResult as Ho, InterestAndFinancingRevenuesInput as Hr, computeEdaSuccessor as Hs, Schedule31Input as Ht, AlbertaSchedule17Result as Hu, renderCo17DraftReturn as I, computeSchedule12 as Ia, schedule5Values as Ic, CcaRateTable as Id, isSchedule5Province as Ii, IegAgreementMemberResult as Il, computeSchedule6 as In, CdeRegularInput as Io, Clause95Result as Ir, computeCeeRegular as Is, Schedule43Result as It, SECTION_34_2_GROSS_UP as Iu, QC_TAX_2024 as J, RSI_NEGATIVE_PREFIX as Ja, AgriProcessingVintageResult as Jc, computeLossContinuity as Jd, PartITaxInput as Ji, IegResult as Jl, PART_IV_RATE as Jn, CeeSuccessorInput as Jo, PartnershipIfeResult as Jr, ALBERTA_SRED_EXPENDITURE_CUTOFF as Js, ItcRecaptureResult as Jt, AlbertaSchedule16Input as Ju, QuebecTaxResult as K, RSI_COLUMN_GAP as Ka, AgriProcessingTaxCreditResult as Kc, LossContinuityInput as Kd, CcpcActiveBusinessTaxInput as Ki, IEG_2024 as Kl, Schedule4Result as Kn, CeeRegularResult as Ko, LossPortionFromIfeResult as Kr, computeSfedeCountrySuccessor as Ks, ItcRecaptureItem as Kt, At1ReserveTable as Ku, Co17ReturnInput as L, reconcileAlbertaNetIncome as La, ForeignInvestmentCountryInput as Lc, isDecliningBalanceClass as Ld, resolveProvinceRates as Li, IegAgreementResult as Ll, Schedule5Input as Ln, CdeRegularOverride as Lo, EifelCounterpartyRelationship as Lr, computeCeeSuccessor as Ls, computeSchedule43 as Lt, computeAlbertaSchedule18 as Lu, Co17Address as M, albertaRecaptureDifference as Ma, At1Schedule5PredecessorTransfer as Mc, computeClass141RecaptureReduction as Md, PROVINCE_RATE_BOOK as Mi, schedule2Values$1 as Ml, computeSpecifiedForeignExploration as Mn, CcogpeSuccessorInput as Mo, CapitalizedIfeResult as Mr, computeCcogpeRegular as Ms, GripResult as Mt, At1AbilResult as Mu, Co17Certification as N, albertaReserveDifference as Na, At1Schedule5SuccessoredPoolEntry as Nc, leaseholdPeriods as Nd, ProvinceCode as Ni, schedule4970Values as Nl, CapitalDisposition as Nn, CcogpeSuccessorOverride as No, CapitalizedIfeRow as Nr, computeCcogpeSuccessor as Ns, computeGrip as Nt, At1CategoryResult as Nu, T2GifiLine as O, albertaCcaDifference as Oa, schedule6Values as Oc, MIN_LEASEHOLD_PERIODS as Od, ProvincialRateChanges as Oi, schedule1Values$1 as Ol, computeCumulativeForeignResource as On, CcogpeRegularInput as Oo, computeEifelLimitation as Or, SfedeCountrySuccessorInput as Os, Schedule54Input as Ot, AT1_DISPOSITION_CATEGORIES as Ou, Co17Identity as P, albertaResourceDeductionDifference as Pa, At1Schedule5SuccessoredPoolEntryResult as Pc, CCA_DECLINING_BALANCE_RATES_2024 as Pd, ProvinceRateTable as Pi, IegAgreementInput as Pl, DispositionResult as Pn, CcogpeSuccessorResult as Po, Clause95DeniedRow as Pr, computeCdeRegular as Ps, Schedule43Input as Pt, At1CategoryTotals as Pu, T2_CERTIFICATION_FIXTURES as Q, RsiLineItemError as Qa, CapitalInvestmentTaxCreditResult as Qc, LossCarrybackYear as Qd, AdjustedAggregateInvestmentIncomeInput as Qi, IegEligibleExpendituresInput as Ql, computePart4Rdtoh as Qn, CfreCountryRegularInput as Qo, ResourceIfeRow as Qr, AlbertaSchedule9Result as Qs, computeZetm as Qt, AlbertaCcaOverride as Qu, co17Engine as R, At1TransmitterDefect as Ra, ForeignInvestmentCountryResult as Rc, resolveCcaRates as Rd, TaxableIncomeInput as Ri, IegAllocationResult as Rl, Schedule5Result as Rn, CdeRegularResult as Ro, ExemptIfeResult as Rr, computeCfreRegular as Rs, LARGE_CORPORATION_THRESHOLD as Rt, AT1_RESERVE_KINDS as Ru, T2CifData as S, Schedule12Adjustment as Sa, AlbertaSchedule6Result as Sc, Class14Property as Sd, computeRifeUnderSubsection111_8 as Si, schedule12LossDeductions as Sl, ForeignPerCountryResult as Sn, AlbertaReturnInput as So, EIFEL_FIRST_YEAR_START as Sr, Schedule15FilingResult as Ss, Schedule55Result as St, DonationMaximumResult as Su, T2CifQuestionnaire as T, Schedule12Result as Ta, RoyaltyTaxCreditShelterAllocation as Tc, LeaseholdLayer as Td, FOREIGN_TAX_CREDIT_GROSS_UP as Ti, schedule16Values as Tl, computeCde as Tn, AlbertaSchedule15Input as To, EIFEL_TRANSITIONAL_RATIO as Tr, SfedeCountryRegularOverride as Ts, LRIP_INVESTMENT_INCOME_FACTOR as Tt, Schedule20Input as Tu, QuebecEstablishment as U, toRsiJacketSchedules as Ua, AgriProcessingCombinedVintageInput as Uc, At4970Result as Ud, dividendsDeductibleS112 as Ui, allocateIegExpenditureLimit as Ul, ProvincialAllocationResult as Un, CeeRegularFederal as Uo, InterestAndFinancingRevenuesResult as Ur, computeFedeRegular as Us, Schedule31Result as Ut, At1ReserveBalances as Uu, computeQuebecReturn as V, validateAt1Transmitter as Va, computeSchedule4 as Vc, At4970ProjectRow as Vd, charitableDonationsDeduction as Vi, IegLimitAllocation as Vl, PermanentEstablishment as Vn, CdeSuccessorOverride as Vo, InterestAndFinancingExpensesResult as Vr, computeEdaRegular as Vs, computeTaxableCapital as Vt, AlbertaSchedule17Input as Vu, computeQuebecAllocationFactor as W, toRsiLineItems as Wa, AgriProcessingCurrentYearInput as Wc, At4970Totals as Wd, netCapitalLossApplied as Wi, computeIegAgreement as Wl, computeProvincialAllocation as Wn, CeeRegularInput as Wo, LoanRow as Wr, computeFedeSuccessor as Ws, computeSchedule31 as Wt, At1ReserveKind as Wu, QuebecTaxRates as X, RsiHeaderInput as Xa, At1ScheduleValueLike$5 as Xc, LossCarrybackInput as Xd, computeCcpcActiveBusinessTax as Xi, computeIegBaseAmount as Xl, Part4RdtohResult as Xn, CeeSuccessorResult as Xo, ResourceIfePool as Xr, ALBERTA_SRED_TAX_CREDIT_RATE as Xs, ZetmInput as Xt, assistanceFrom as Xu, QC_TAX_RATE_BOOK as Y, RSI_WORD_GAP as Ya, At1ScheduleDataLike$5 as Yc, LossCarrybackError as Yd, PartITaxResult as Yi, computeIeg as Yl, Part4RdtohInput as Yn, CeeSuccessorOverride as Yo, PartnershipIfeRow as Yr, ALBERTA_SRED_PROGRAM_START as Ys, computeItcRecapture as Yt, AlbertaSchedule16Result as Yu, resolveQuebecTaxRates as Z, RsiLineItem as Za, CapitalInvestmentTaxCreditInput as Zc, LossCarrybackResult as Zd, computePartITax as Zi, computeIegReductionFactor as Zl, REFUNDABLE_PART_I_RATE as Zn, CfreCountryRegularFederal as Zo, ResourceIfeResult as Zr, AlbertaSchedule9Input as Zs, ZetmResult as Zt, computeAlbertaSchedule16 as Zu, computeSmallManufacturerTest as _, parseT2LineItemId as _a, RoyaltySupplementalPriorYearAdjustment as _c, Class13Result as _d, earliestRateYear as _f, EifelCapacityInput as _i, Schedule20FilingInput as _l, DepletionInput as _n, at1TaxPayableDeductions as _o, PART_VI_1_DEDUCTION_BANDS as _r, FedeRegularResult as _s, SCHEDULE_88_MAX_URLS as _t, computeLimitedPartnershipLossRow as _u, MP_RATES_2024 as a, SbdResult as aa, computeAlbertaSchedule9 as ac, CcaClassResult as ad, AlbertaSbdResult as af, computeInterestAndFinancingRevenues as ai, computeSchedule3 as al, Schedule21Input as an, renderRsiLineItem as ao, Schedule1NotFileableError as ar, CmedbFederal as as, T2_LINE_META as at, NonCapitalLossByYearOfOriginResult as au, computeT2Settlement as b, LossScheduleResult as ba, schedule7Values$1 as bc, Class141RecaptureReductionInput as bd, latestRateYear as bf, ReceivedCapacityRow as bi, at1LineItemId as bl, ForeignExplorationResult as bn, At1ReturnInput as bo, computePartVI1Deduction as br, FedeSuccessorOverride as bs, normalizeSchedule88 as bt, AT1_DONATION_INCOME_RATE as bu, MpDeductionResult as c, computeBusinessLimit as ca, PoliticalContributionInput as cc, Schedule8Result$1 as cd, DayWeightedRateResult as cf, computePartnershipIfe as ci, SINGLE_JURISDICTION_ALBERTA_FACTOR as cl, ReserveContinuityResult as cn, At1CriticalFieldMissingError as co, assertSchedule1Fileable as cr, EdaRegularFederal as cs, runConformance as ct, OtherLossVintageRowResult as cu, SMALL_MANUFACTURER_INCOME_THRESHOLD as d, CORP_TAX_RATE_BOOK as da, computeSchedule8 as dc, computeCcaSchedule as dd, AB_TAX_2024 as df, EIFEL_EFFECTIVE_FROM as di, AT1_SCHEDULES_WITH_BUILDERS as dl, CdeInput as dn, At1TaxPayableMismatchError as do, deferredIncomeTaxProvisionAddBack as dr, EdaSuccessorFederal as ds, FederalT2Result as dt, RifeContinuityInput as du, AggregateInvestmentIncomeInput as ea, Schedule9AllocationMemberResult as ec, AlbertaSchedule13Input as ed, AlbertaTaxInput as ef, computeCapitalizedIfe as ei, InvestorTaxCreditResult as el, AssociatedMemberResult as en, formatRsiAmount as eo, Schedule2Result as er, CfreCountryRegularResult as es, ConformanceResult as et, computeIegEligibleExpenditures as eu, SmallManufacturerTestInput as f, CorpTaxRates as fa, schedule8Values$1 as fc, computeSchedule8$1 as fd, AB_TAX_RATE_BOOK as ff, EifelExemption as fi, At1ScheduleData as fl, CdeResult as fn, At1TransmitterInfo as fo, findSchedule1LineDefects as fr, EdaSuccessorInput as fs, computeFederalT2 as ft, RifeContinuityResult as fu, computePart2MPProfits as g, federalSchedulePayloads as ga, RoyaltySupplementalPartnershipResult as gc, Class13Input as gd, RateBookEntry as gf, assessEifel as gi, Schedule1FilingInput as gl, CogpeResult as gn, assertCriticalFields as go, terminalLossDeduction as gr, FedeRegularOverride as gs, computeSchedule101 as gt, LimitedPartnershipLossesResult as gu, computeMpDeduction as h, T2ScheduleValue as ha, RoyaltySupplementalPartnership as hc, CLASS_14_1_TRANSITIONAL_RATE as hd, RateBook as hf, EifelThresholds as hi, Schedule12FilingInput as hl, CogpeInput as hn, assertAt1TaxPayableReconciles as ho, recaptureAddBack as hr, FedeRegularInput as hs, Schedule101Result as ht, LimitedPartnershipLossRowResult as hu, MP_GROSS_REVENUE_THRESHOLD as i, SbdInput as ia, allocateSchedule9ExpenditureLimit as ic, CcaClassInput as id, AlbertaSbdInput as if, computeInterestAndFinancingExpenses as ii, Schedule3Result as il, computeBusinessLimitAllocation as in, renderRsiHeader as io, Schedule1LineDefect as ir, CfreCountrySuccessorResult as is, T2LineKey as it, NonCapitalLossByYearOfOriginInput as iu, t2Engine as j, albertaDispositionAdjustments as ja, At1Schedule5PoolTransfer as jc, computeClass141AdditionalAllowance as jd, PROVINCE_RATES_2024 as ji, schedule29Values as jl, computeSchedule12ResourceDeductions as jn, CcogpeSuccessorFederal as jo, BorrowingsResult as jr, computeAlbertaSchedule15 as js, GripInput as jt, At1AbilEntry as ju, renderT2DraftReturn as k, albertaCcaScheduleAdjustments as ka, AlbertaSchedule5Input as kc, computeClass13 as kd, blendProvinceRateTable as ki, schedule20Values as kl, computeDepletion as kn, CcogpeRegularOverride as ko, ratioOfPermissibleExpenses as kr, SfedeCountrySuccessorOverride as ks, Schedule54Result as kt, AlbertaSchedule18Input as ku, Part2MPProfitsInput as l, computeSBD as la, Schedule8Input as lc, UnsupportedCcaClassError as ld, GeneralRateBand as lf, computePartnershipIfeAddBack as li, computeAllocationFactor as ll, ReserveContinuityRow as ln, At1FilingData as lo, ccaDeduction as lr, EdaRegularInput as ls, runConformanceSuite as lt, computeNonCapitalLossByYearOfOrigin as lu, computeCanadianMPProfits as m, T2ScheduleData as ma, AlbertaSchedule7Result as mc, CLASS_14_1_RECAPTURE_REDUCTION_RATE as md, resolveAlbertaTaxRates as mf, EifelResult as mi, Schedule10FilingInput as ml, CeeResult as mn, assertAt1MandatoryComplete as mo, mealsAndEntertainmentAddBack as mr, FedeRegularFederal as ms, Schedule101Input as mt, LimitedPartnershipLossRow as mu, CanadianMPProfitsResult as n, BusinessLimitInput as na, Schedule9FieldOfScience as nc, FederalCcaClass as nd, computeAlbertaTax as nf, computeExcessIfe as ni, MaximumAllowableDeductionResult as nl, BusinessLimitAllocationResult as nn, formatRsiText as no, Schedule1Input as nr, CfreCountrySuccessorInput as ns, ExpectedSource as nt, LossVintageEntry as nu, MpDeductionInput as o, computeAdjustedAggregateInvestmentIncome as oa, computeSchedule9MaximumExpenditureLimit as oc, CcaScheduleResult as od, computeAlbertaSbd as of, computeLoans as oi, schedule3Values as ol, Schedule21Result as on, renderAt1NetFile as oo, Schedule1Result as or, CmedbInput as os, foldT2Lines as ot, OtherLossByYearOfOriginResult as ou, SmallManufacturerTestResult as p, resolveCorpTaxRates as pa, AlbertaSchedule7Input as pc, CLASS_14_1_MINIMUM_DEDUCTION as pd, AlbertaTaxRates as pf, EifelInput as pi, At1ScheduleValue as pl, CeeInput as pn, albertaBalanceUnpaid as po, incomeTaxProvisionAddBack as pr, EdaSuccessorResult as ps, FirstReturnEvent as pt, computeRifeContinuity as pu, computeQuebecTax as q, RSI_DELIMITER as qa, AgriProcessingVintageInput as qc, LossContinuityResult as qd, CcpcActiveBusinessTaxResult as qi, IegInput as ql, computeSchedule4Losses as qn, CeeSuccessorFederal as qo, LossPortionFromIfeRow as qr, schedule15Values as qs, ItcRecaptureItemResult as qt, computeAlbertaSchedule17 as qu, MP_EXCLUDED_ACTIVITIES as r, BusinessLimitResult as ra, Schedule9GroupFilingInput as rc, computeAlbertaSchedule13 as rd, AlbertaCorporationStatus as rf, computeExemptIfe as ri, Schedule3Input as rl, allocateEvenly as rn, renderAt1Rsi as ro, Schedule1Line as rr, CfreCountrySuccessorOverride as rs, LineCheck as rt, LossVintageRowResult as ru, MpDeductionRates as s, computeAggregateInvestmentIncome as sa, schedule9Values as sc, Schedule8Entry as sd, AB_GENERAL_RATE_BANDS as sf, computeLossPortionFromIfe as si, AllocationFactorInput as sl, computeSchedule21 as sn, AT1_CRITICAL_MANDATORY_FIELDS as so, amortizationAddBack as sr, CmedbResult as ss, formatConformanceReport as st, OtherLossVintageEntry as su, CanadianMPProfitsInput as t, AggregateInvestmentIncomeResult as ta, Schedule9AllocationResult as tc, AlbertaSchedule13Result as td, AlbertaTaxResult as tf, computeClause95Amounts as ti, MaximumAllowableDeductionInput as tl, BusinessLimitAllocationInput as tn, formatRsiDate as to, computeSchedule2 as tr, CfreCountrySuccessorFederal as ts, ConformanceSummary as tt, iegT661SourceLine as tu, Part2MPProfitsResult as u, CORP_TAX_2024 as ua, Schedule8Result as uc, computeCcaClass as ud, computeDayWeightedGeneralTax as uf, computeResourceIfe as ui, AT1_SCHEDULES_WITHOUT_BUILDERS as ul, computeSchedule13 as un, At1MandatoryFieldMissingError as uo, computeSchedule1 as ur, EdaRegularResult as us, FederalT2Input as ut, computeOtherLossByYearOfOrigin as uu, T2SettlementInput as v, t2LineItemId as va, RoyaltySupplementalPriorYearAdjustmentResult as vc, Class141AdditionalAllowanceInput as vd, extendRateBook as vf, EifelCapacityResult as vi, Schedule21FilingInput as vl, DepletionResult as vn, at1YesNo as vo, PartVI1DeductionBand as vr, FedeSuccessorFederal as vs, Schedule88Input as vt, computeLimitedPartnershipLosses as vu, T2CifPartI as w, Schedule12Line as wa, RoyaltyTaxCreditQuarter as wc, Class14Result as wd, AdjustedTaxableIncomeResult as wi, schedule13Values as wl, Schedule12ResourceDeductionsResult as wn, computeAlbertaReturn as wo, EIFEL_STANDARD_RATIO_FROM as wr, SfedeCountryRegularInput as ws, LRIP_INVESTMENT_CORPORATION_MULTIPLE as wt, AlbertaGiftCarryforward as wu, T2CifAddress as x, computeLossSchedule as xa, AlbertaSchedule6Input as xc, Class14Input as xd, resolveRates as xf, computeEifelCapacity as xi, schedule10Values as xl, ForeignPerCountryInput as xn, at1Engine as xo, partVI1DeductionMultiple as xr, FedeSuccessorResult as xs, Schedule55Input as xt, DonationMaximumInput as xu, T2SettlementResult as y, LossScheduleInput as ya, computeAlbertaSchedule7 as yc, Class141AdditionalAllowanceResult as yd, hasExactRateYear as yf, ExcessCapacityVintage as yi, Schedule2FilingInput as yl, ForeignExplorationInput as yn, xmlEscape as yo, PartVI1DeductionResult as yr, FedeSuccessorInput as ys, Schedule88Result as yt, AT1_DONATION_GAIN_RATE as yu, QuebecReturnInput as z, At1TransmitterInvalidError as za, Schedule4Input$1 as zc, At4970Input as zd, TaxableIncomeLine as zi, IegGroupMember as zl, computeSchedule5 as zn, CdeSuccessorFederal as zo, ExemptIfeRow as zr, computeCfreSuccessor as zs, TaxableCapitalInput as zt, AT1_RESERVE_LINES as zu };
|
|
9651
|
+
export { CertificationFixture as $, RsiScheduleInput as $a, allocateIegEvenly as $c, AdjustedAggregateInvestmentIncomeResult as $i, AlbertaSchedule17Result as $l, Schedule2Input as $n, CfreCountryRegularOverride as $o, computeBorrowings as $r, schedule4Values as $s, AssociatedMemberInput as $t, At4970ProjectRowResult as $u, T2ReturnInput as A, albertaCurrentYearLoss as Aa, Schedule2FilingInput as Ac, hasExactRateYear as Ad, dayWeightedRate as Ai, AT1_DONATION_GAIN_RATE as Al, computeForeignExploration as An, CcogpeRegularResult as Ao, BorrowingRow as Ar, SfedeCountrySuccessorResult as As, computeSchedule54 as At, Class141AdditionalAllowanceResult as Au, QuebecReturnResult as B, assertAt1TransmitterValid as Ba, schedule20Values as Bc, TaxableIncomeResult as Bi, AlbertaSchedule18Input as Bl, AllocatedProvince as Bn, CdeSuccessorInput as Bo, InterestAndFinancingExpensesInput as Br, computeCmedb as Bs, TaxableCapitalResult as Bt, computeClass13 as Bu, T2CifGifi as C, Schedule12Input as Ca, At1ScheduleData as Cc, AB_TAX_RATE_BOOK as Cd, AdjustedTaxableIncomeInput as Ci, RifeContinuityResult as Cl, Schedule12ResourceDeductionsInput as Cn, AlbertaReturnResult as Co, EIFEL_STANDARD_RATIO as Cr, SfedeCountryRegularFederal as Cs, computeSchedule55 as Ct, computeSchedule8 as Cu, T2CifShareholder as D, albertaCapitalGainDifference as Da, Schedule1FilingInput as Dc, RateBookEntry as Dd, ProvincialRateChange as Di, LimitedPartnershipLossesResult as Dl, computeCogpe as Dn, CcogpeRegularFederal as Do, EifelLimitationResult as Dr, SfedeCountrySuccessorFederal as Ds, LripEventResult as Dt, Class13Input as Du, T2CifSettlement as E, albertaAbilDifference as Ea, Schedule12FilingInput as Ec, RateBook as Ed, computeAdjustedTaxableIncome as Ei, LimitedPartnershipLossRowResult as El, computeCee as En, AlbertaSchedule15Result as Eo, EifelLimitationInput as Er, SfedeCountryRegularResult as Es, LripDividendEvent as Et, CLASS_14_1_TRANSITIONAL_RATE as Eu, Co17ReturnData as F, albertaTerminalLossDifference as Fa, schedule13Values as Fc, ProvincialRate as Fi, AlbertaGiftCarryforward as Fl, Schedule6Result as Fn, CdeRegularFederal as Fo, Clause95IncludedRow as Fr, computeCdeSuccessor as Fs, Schedule43Rates as Ft, Class14Result as Fu, QuebecTaxInput as G, toRsiSchedule as Ga, IegAgreementInput as Gc, nonCapitalLossApplied as Gi, At1CategoryTotals as Gl, Schedule4Input as Gn, CeeRegularOverride as Go, LoansResult as Gr, computeSfedeCountryRegular as Gs, ITC_RECAPTURE_PERIOD_YEARS as Gt, CCA_DECLINING_BALANCE_RATES_2024 as Gu, QuebecAllocationResult as H, toRsiHeader as Ha, schedule29Values as Hc, computeTaxableIncome as Hi, At1AbilEntry as Hl, ProvincialAllocationInput as Hn, CdeSuccessorResult as Ho, InterestAndFinancingRevenuesInput as Hr, computeEdaSuccessor as Hs, Schedule31Input as Ht, computeClass141AdditionalAllowance as Hu, renderCo17DraftReturn as I, computeSchedule12 as Ia, schedule16Values as Ic, isSchedule5Province as Ii, Schedule20Input as Il, computeSchedule6 as In, CdeRegularInput as Io, Clause95Result as Ir, computeCeeRegular as Is, Schedule43Result as It, LeaseholdLayer as Iu, QC_TAX_2024 as J, RSI_NEGATIVE_PREFIX as Ja, IegAgreementResult as Jc, PartITaxInput as Ji, computeAlbertaSchedule18 as Jl, PART_IV_RATE as Jn, CeeSuccessorInput as Jo, PartnershipIfeResult as Jr, ForeignInvestmentCountryInput as Js, ItcRecaptureResult as Jt, isDecliningBalanceClass as Ju, QuebecTaxResult as K, RSI_COLUMN_GAP as Ka, IegAgreementMember as Kc, CcpcActiveBusinessTaxInput as Ki, At1DispositionCategory as Kl, Schedule4Result as Kn, CeeRegularResult as Ko, LossPortionFromIfeResult as Kr, computeSfedeCountrySuccessor as Ks, ItcRecaptureItem as Kt, CCA_RATE_BOOK as Ku, Co17ReturnInput as L, reconcileAlbertaNetIncome as La, schedule17Values as Lc, resolveProvinceRates as Li, Schedule20Result as Ll, Schedule5Input as Ln, CdeRegularOverride as Lo, EifelCounterpartyRelationship as Lr, computeCeeSuccessor as Ls, computeSchedule43 as Lt, LeaseholdLayerResult as Lu, Co17Address as M, albertaRecaptureDifference as Ma, schedule10Values as Mc, resolveRates as Md, PROVINCE_RATE_BOOK as Mi, DonationMaximumInput as Ml, computeSpecifiedForeignExploration as Mn, CcogpeSuccessorInput as Mo, CapitalizedIfeResult as Mr, computeCcogpeRegular as Ms, GripResult as Mt, Class14Input as Mu, Co17Certification as N, albertaReserveDifference as Na, schedule12LossDeductions as Nc, ProvinceCode as Ni, DonationMaximumResult as Nl, CapitalDisposition as Nn, CcogpeSuccessorOverride as No, CapitalizedIfeRow as Nr, computeCcogpeSuccessor as Ns, computeGrip as Nt, Class14Property as Nu, T2GifiLine as O, albertaCcaDifference as Oa, Schedule20FilingInput as Oc, earliestRateYear as Od, ProvincialRateChanges as Oi, computeLimitedPartnershipLossRow as Ol, computeCumulativeForeignResource as On, CcogpeRegularInput as Oo, computeEifelLimitation as Or, SfedeCountrySuccessorInput as Os, Schedule54Input as Ot, Class13Result as Ou, Co17Identity as P, albertaResourceDeductionDifference as Pa, schedule12Values as Pc, ProvinceRateTable as Pi, computeDonationMaximum as Pl, DispositionResult as Pn, CcogpeSuccessorResult as Po, Clause95DeniedRow as Pr, computeCdeRegular as Ps, Schedule43Input as Pt, Class14PropertyResult as Pu, T2_CERTIFICATION_FIXTURES as Q, RsiLineItemError as Qa, IegLimitAllocation as Qc, AdjustedAggregateInvestmentIncomeInput as Qi, AlbertaSchedule17Input as Ql, computePart4Rdtoh as Qn, CfreCountryRegularInput as Qo, ResourceIfeRow as Qr, computeSchedule4 as Qs, computeZetm as Qt, At4970ProjectRow as Qu, co17Engine as R, At1TransmitterDefect as Ra, schedule18Values as Rc, TaxableIncomeInput as Ri, computeSchedule20 as Rl, Schedule5Result as Rn, CdeRegularResult as Ro, ExemptIfeResult as Rr, computeCfreRegular as Rs, LARGE_CORPORATION_THRESHOLD as Rt, MAX_LEASEHOLD_PERIODS as Ru, T2CifData as S, Schedule12Adjustment as Sa, AT1_SCHEDULES_WITH_BUILDERS as Sc, AB_TAX_2024 as Sd, computeRifeUnderSubsection111_8 as Si, RifeContinuityInput as Sl, ForeignPerCountryResult as Sn, AlbertaReturnInput as So, EIFEL_FIRST_YEAR_START as Sr, Schedule15FilingResult as Ss, Schedule55Result as St, computeCcaSchedule as Su, T2CifQuestionnaire as T, Schedule12Result as Ta, Schedule10FilingInput as Tc, resolveAlbertaTaxRates as Td, FOREIGN_TAX_CREDIT_GROSS_UP as Ti, LimitedPartnershipLossRow as Tl, computeCde as Tn, AlbertaSchedule15Input as To, EIFEL_TRANSITIONAL_RATIO as Tr, SfedeCountryRegularOverride as Ts, LRIP_INVESTMENT_INCOME_FACTOR as Tt, CLASS_14_1_RECAPTURE_REDUCTION_RATE as Tu, QuebecEstablishment as U, toRsiJacketSchedules as Ua, schedule2Values$1 as Uc, dividendsDeductibleS112 as Ui, At1AbilResult as Ul, ProvincialAllocationResult as Un, CeeRegularFederal as Uo, InterestAndFinancingRevenuesResult as Ur, computeFedeRegular as Us, Schedule31Result as Ut, computeClass141RecaptureReduction as Uu, computeQuebecReturn as V, validateAt1Transmitter as Va, schedule21Values$1 as Vc, charitableDonationsDeduction as Vi, AlbertaSchedule18Result as Vl, PermanentEstablishment as Vn, CdeSuccessorOverride as Vo, InterestAndFinancingExpensesResult as Vr, computeEdaRegular as Vs, computeTaxableCapital as Vt, computeClass14 as Vu, computeQuebecAllocationFactor as W, toRsiLineItems as Wa, schedule4970Values as Wc, netCapitalLossApplied as Wi, At1CategoryResult as Wl, computeProvincialAllocation as Wn, CeeRegularInput as Wo, LoanRow as Wr, computeFedeSuccessor as Ws, computeSchedule31 as Wt, leaseholdPeriods as Wu, QuebecTaxRates as X, RsiHeaderInput as Xa, IegGroupMember as Xc, computeCcpcActiveBusinessTax as Xi, AT1_RESERVE_LINES as Xl, Part4RdtohResult as Xn, CeeSuccessorResult as Xo, ResourceIfePool as Xr, Schedule4Input$1 as Xs, ZetmInput as Xt, At4970Input as Xu, QC_TAX_RATE_BOOK as Y, RSI_WORD_GAP as Ya, IegAllocationResult as Yc, PartITaxResult as Yi, AT1_RESERVE_KINDS as Yl, Part4RdtohInput as Yn, CeeSuccessorOverride as Yo, PartnershipIfeRow as Yr, ForeignInvestmentCountryResult as Ys, computeItcRecapture as Yt, resolveCcaRates as Yu, resolveQuebecTaxRates as Z, RsiLineItem as Za, IegGroupResult as Zc, computePartITax as Zi, AT1_RESERVE_TOTAL_LINES as Zl, REFUNDABLE_PART_I_RATE as Zn, CfreCountryRegularFederal as Zo, ResourceIfeResult as Zr, Schedule4Result$1 as Zs, ZetmResult as Zt, At4970JurisdictionAmount as Zu, computeSmallManufacturerTest as _, parseT2LineItemId as _a, schedule3Values as _c, computeAlbertaSbd as _d, EifelCapacityInput as _i, OtherLossByYearOfOriginResult as _l, DepletionInput as _n, at1TaxPayableDeductions as _o, PART_VI_1_DEDUCTION_BANDS as _r, FedeRegularResult as _s, SCHEDULE_88_MAX_URLS as _t, CcaScheduleResult as _u, MP_RATES_2024 as a, SbdResult as aa, AgriProcessingVintageResult as ac, computeLossContinuity as ad, computeInterestAndFinancingRevenues as ai, IegResult as al, Schedule21Input as an, renderRsiLineItem as ao, Schedule1NotFileableError as ar, CmedbFederal as as, T2_LINE_META as at, AlbertaSchedule16Input as au, computeT2Settlement as b, LossScheduleResult as ba, computeAllocationFactor as bc, GeneralRateBand as bd, ReceivedCapacityRow as bi, computeNonCapitalLossByYearOfOrigin as bl, ForeignExplorationResult as bn, At1ReturnInput as bo, computePartVI1Deduction as br, FedeSuccessorOverride as bs, normalizeSchedule88 as bt, UnsupportedCcaClassError as bu, MpDeductionResult as c, computeBusinessLimit as ca, CapitalInvestmentTaxCreditInput as cc, LossCarrybackResult as cd, computePartnershipIfe as ci, computeIegReductionFactor as cl, ReserveContinuityResult as cn, At1CriticalFieldMissingError as co, assertSchedule1Fileable as cr, EdaRegularFederal as cs, runConformance as ct, computeAlbertaSchedule16 as cu, SMALL_MANUFACTURER_INCOME_THRESHOLD as d, CORP_TAX_RATE_BOOK as da, InvestorTaxCreditResult as dc, AlbertaTaxInput as dd, EIFEL_EFFECTIVE_FROM as di, computeIegEligibleExpenditures as dl, CdeInput as dn, At1TaxPayableMismatchError as do, deferredIncomeTaxProvisionAddBack as dr, EdaSuccessorFederal as ds, FederalT2Result as dt, AlbertaSchedule13Input as du, AggregateInvestmentIncomeInput as ea, AgriProcessingCombinedVintageInput as ec, At4970Result as ed, computeCapitalizedIfe as ei, allocateIegExpenditureLimit as el, AssociatedMemberResult as en, formatRsiAmount as eo, Schedule2Result as er, CfreCountryRegularResult as es, ConformanceResult as et, At1ReserveBalances as eu, SmallManufacturerTestInput as f, CorpTaxRates as fa, MaximumAllowableDeductionInput as fc, AlbertaTaxResult as fd, EifelExemption as fi, iegT661SourceLine as fl, CdeResult as fn, At1TransmitterInfo as fo, findSchedule1LineDefects as fr, EdaSuccessorInput as fs, computeFederalT2 as ft, AlbertaSchedule13Result as fu, computePart2MPProfits as g, federalSchedulePayloads as ga, computeSchedule3 as gc, AlbertaSbdResult as gd, assessEifel as gi, NonCapitalLossByYearOfOriginResult as gl, CogpeResult as gn, assertCriticalFields as go, terminalLossDeduction as gr, FedeRegularOverride as gs, computeSchedule101 as gt, CcaClassResult as gu, computeMpDeduction as h, T2ScheduleValue as ha, Schedule3Result as hc, AlbertaSbdInput as hd, EifelThresholds as hi, NonCapitalLossByYearOfOriginInput as hl, CogpeInput as hn, assertAt1TaxPayableReconciles as ho, recaptureAddBack as hr, FedeRegularInput as hs, Schedule101Result as ht, CcaClassInput as hu, MP_GROSS_REVENUE_THRESHOLD as i, SbdInput as ia, AgriProcessingVintageInput as ic, LossContinuityResult as id, computeInterestAndFinancingExpenses as ii, IegInput as il, computeBusinessLimitAllocation as in, renderRsiHeader as io, Schedule1LineDefect as ir, CfreCountrySuccessorResult as is, T2LineKey as it, computeAlbertaSchedule17 as iu, t2Engine as j, albertaDispositionAdjustments as ja, at1LineItemId as jc, latestRateYear as jd, PROVINCE_RATES_2024 as ji, AT1_DONATION_INCOME_RATE as jl, computeSchedule12ResourceDeductions as jn, CcogpeSuccessorFederal as jo, BorrowingsResult as jr, computeAlbertaSchedule15 as js, GripInput as jt, Class141RecaptureReductionInput as ju, renderT2DraftReturn as k, albertaCcaScheduleAdjustments as ka, Schedule21FilingInput as kc, extendRateBook as kd, blendProvinceRateTable as ki, computeLimitedPartnershipLosses as kl, computeDepletion as kn, CcogpeRegularOverride as ko, ratioOfPermissibleExpenses as kr, SfedeCountrySuccessorOverride as ks, Schedule54Result as kt, Class141AdditionalAllowanceInput as ku, Part2MPProfitsInput as l, computeSBD as la, CapitalInvestmentTaxCreditResult as lc, LossCarrybackYear as ld, computePartnershipIfeAddBack as li, IegEligibleExpendituresInput as ll, ReserveContinuityRow as ln, At1FilingData as lo, ccaDeduction as lr, EdaRegularInput as ls, runConformanceSuite as lt, AlbertaCcaOverride as lu, computeCanadianMPProfits as m, T2ScheduleData as ma, Schedule3Input as mc, AlbertaCorporationStatus as md, EifelResult as mi, LossVintageRowResult as ml, CeeResult as mn, assertAt1MandatoryComplete as mo, mealsAndEntertainmentAddBack as mr, FedeRegularFederal as ms, Schedule101Input as mt, computeAlbertaSchedule13 as mu, CanadianMPProfitsResult as n, BusinessLimitInput as na, AgriProcessingTaxCreditInput as nc, computeAt4970 as nd, computeExcessIfe as ni, computeIegGroupFigures as nl, BusinessLimitAllocationResult as nn, formatRsiText as no, Schedule1Input as nr, CfreCountrySuccessorInput as ns, ExpectedSource as nt, At1ReserveRowResult as nu, MpDeductionInput as o, computeAdjustedAggregateInvestmentIncome as oa, At1ScheduleDataLike$1 as oc, LossCarrybackError as od, computeLoans as oi, computeIeg as ol, Schedule21Result as on, renderAt1NetFile as oo, Schedule1Result as or, CmedbInput as os, foldT2Lines as ot, AlbertaSchedule16Result as ou, SmallManufacturerTestResult as p, resolveCorpTaxRates as pa, MaximumAllowableDeductionResult as pc, computeAlbertaTax as pd, EifelInput as pi, LossVintageEntry as pl, CeeInput as pn, albertaBalanceUnpaid as po, incomeTaxProvisionAddBack as pr, EdaSuccessorResult as ps, FirstReturnEvent as pt, FederalCcaClass as pu, computeQuebecTax as q, RSI_DELIMITER as qa, IegAgreementMemberResult as qc, CcpcActiveBusinessTaxResult as qi, SECTION_34_2_GROSS_UP as ql, computeSchedule4Losses as qn, CeeSuccessorFederal as qo, LossPortionFromIfeRow as qr, schedule15Values as qs, ItcRecaptureItemResult as qt, CcaRateTable as qu, MP_EXCLUDED_ACTIVITIES as r, BusinessLimitResult as ra, AgriProcessingTaxCreditResult as rc, LossContinuityInput as rd, computeExemptIfe as ri, IEG_2024 as rl, allocateEvenly as rn, renderAt1Rsi as ro, Schedule1Line as rr, CfreCountrySuccessorOverride as rs, LineCheck as rt, At1ReserveTable as ru, MpDeductionRates as s, computeAggregateInvestmentIncome as sa, At1ScheduleValueLike$1 as sc, LossCarrybackInput as sd, computeLossPortionFromIfe as si, computeIegBaseAmount as sl, computeSchedule21 as sn, AT1_CRITICAL_MANDATORY_FIELDS as so, amortizationAddBack as sr, CmedbResult as ss, formatConformanceReport as st, assistanceFrom as su, CanadianMPProfitsInput as t, AggregateInvestmentIncomeResult as ta, AgriProcessingCurrentYearInput as tc, At4970Totals as td, computeClause95Amounts as ti, computeIegAgreement as tl, BusinessLimitAllocationInput as tn, formatRsiDate as to, computeSchedule2 as tr, CfreCountrySuccessorFederal as ts, ConformanceSummary as tt, At1ReserveKind as tu, Part2MPProfitsResult as u, CORP_TAX_2024 as ua, InvestorTaxCreditInput as uc, computeLossCarryback as ud, computeResourceIfe as ui, IegEligibleExpendituresResult as ul, computeSchedule13 as un, At1MandatoryFieldMissingError as uo, computeSchedule1 as ur, EdaRegularResult as us, FederalT2Input as ut, AlbertaSchedule13ClassResult as uu, T2SettlementInput as v, t2LineItemId as va, AllocationFactorInput as vc, AB_GENERAL_RATE_BANDS as vd, EifelCapacityResult as vi, OtherLossVintageEntry as vl, DepletionResult as vn, at1YesNo as vo, PartVI1DeductionBand as vr, FedeSuccessorFederal as vs, Schedule88Input as vt, Schedule8Entry as vu, T2CifPartI as w, Schedule12Line as wa, At1ScheduleValue as wc, AlbertaTaxRates as wd, AdjustedTaxableIncomeResult as wi, computeRifeContinuity as wl, Schedule12ResourceDeductionsResult as wn, computeAlbertaReturn as wo, EIFEL_STANDARD_RATIO_FROM as wr, SfedeCountryRegularInput as ws, LRIP_INVESTMENT_CORPORATION_MULTIPLE as wt, CLASS_14_1_MINIMUM_DEDUCTION as wu, T2CifAddress as x, computeLossSchedule as xa, AT1_SCHEDULES_WITHOUT_BUILDERS as xc, computeDayWeightedGeneralTax as xd, computeEifelCapacity as xi, computeOtherLossByYearOfOrigin as xl, ForeignPerCountryInput as xn, at1Engine as xo, partVI1DeductionMultiple as xr, FedeSuccessorResult as xs, Schedule55Input as xt, computeCcaClass as xu, T2SettlementResult as y, LossScheduleInput as ya, SINGLE_JURISDICTION_ALBERTA_FACTOR as yc, DayWeightedRateResult as yd, ExcessCapacityVintage as yi, OtherLossVintageRowResult as yl, ForeignExplorationInput as yn, xmlEscape as yo, PartVI1DeductionResult as yr, FedeSuccessorInput as ys, Schedule88Result as yt, Schedule8Result as yu, QuebecReturnInput as z, At1TransmitterInvalidError as za, schedule1Values$1 as zc, TaxableIncomeLine as zi, AT1_DISPOSITION_CATEGORIES as zl, computeSchedule5 as zn, CdeSuccessorFederal as zo, ExemptIfeRow as zr, computeCfreSuccessor as zs, TaxableCapitalInput as zt, MIN_LEASEHOLD_PERIODS as zu };
|