1 import Form from '../Form';
2 import Person from '../Person';
3 import TaxReturn from '../TaxReturn';
4 import { InputLine } from '../Line';
7 _1 = '1', // Early distribution, no known exception
8 _2 = '2', // Early distribution, exception applies
9 _3 = '3', // Disability
11 _5 = '5', // Prohibited transaction
12 _6 = '6', // Section 1035 exchange
13 _7 = '7', // Normal distribution
14 _8 = '8', // Excess contributions plus earnings/excess deferrals taxable
15 _9 = '9', // Cost of current life insurance protection
16 A = 'A', // May be eligible for 10-year tax option
17 B = 'B', // Designated Roth account distribution
18 C = 'C', // Reportable death benefits under section 6050Y
19 D = 'D', // Annuity payments from nonqualified annuities that may be subject to tax under section 1411.
20 E = 'E', // Distributions under Employee Plans Compliance Resolution System (EPCRS).
21 F = 'F', // Charitable gift annuity.
22 G = 'G', // Direct rollover of a distribution to a qualified plan, a section 403(b) plan, a governmental section 457(b) plan, or an IRA.
23 H = 'H', // Direct rollover of a designated Roth account distribution to a Roth IRA.
24 J = 'J', // Early distribution from a Roth IRA, no known exception (in most cases, under age 59½).
25 K = 'K', // Distribution of traditional IRA assets not having a readily available FMV.
26 L = 'L', // Loans treated as distributions.
27 M = 'M', // Qualified plan loan offset.
28 N = 'N', // Recharacterized IRA contribution made for 2019 and recharacterized in 2019.
29 P = 'P', // Excess contributions plus earnings/excess deferrals (and/or earnings) taxable in 2018.
30 Q = 'Q', // Qualified distribution from a Roth IRA. R—Recharacterized IRA contribution made for 2018 and recharacterized in 2019.
31 S = 'S', // Early distribution from a SIMPLE IRA in first 2 years, no known exception (under age 59½).
32 T = 'T', // Roth IRA distribution, exception applies.
33 U = 'U', // Dividend distribution from ESOP under section 404(k).
34 W = 'W', // Charges or payments for purchasing qualified long-term care insurance contracts under combined arrangements. If the IRA/SEP/SIMPLE box is checked,you've received a traditional IRA, SEP, or SIMPLE distribution.
37 export interface Form1099RInput {
40 grossDistribution: number;
41 taxableAmount: number;
42 taxableAmountNotDetermined: boolean;
43 totalDistribution: boolean;
45 fedIncomeTax?: number;
46 employeeContributionsOrDesignatedRothContributions?: number;
47 distributionCodes?: Box7Code[];
48 iraSepSimple?: boolean;
49 firstYearOfDesignatedRothContributions?: number;
52 class Input<T extends keyof Form1099RInput> extends InputLine<Form1099RInput, T> {};
54 export default class Form1099R extends Form<Form1099R['_lines'], Form1099RInput> {
55 readonly name = '1099-R';
57 readonly supportsMultipleCopies = true;
59 protected readonly _lines = {
60 'payer': new Input('payer'),
61 'recipeint': new Input('payee'),
62 '1': new Input('grossDistribution'),
63 '2a': new Input('taxableAmount'),
64 '2b.1': new Input('taxableAmountNotDetermined'),
65 '2b.2': new Input('totalDistribution'),
66 '3': new Input('capitalGain'),
67 '4': new Input('fedIncomeTax'),
68 '5': new Input('employeeContributionsOrDesignatedRothContributions'),
69 '7': new Input('distributionCodes'),
70 '7.1': new Input('iraSepSimple'),
71 '11': new Input('firstYearOfDesignatedRothContributions'),