From e7fbb1bd382b1422e766c256b88dfa210cf65235 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 22 Feb 2020 11:23:08 -0500 Subject: [PATCH] Use the computations from Form 8959 on Schedule 2. --- src/fed2019/Form1040.test.ts | 16 ++++++++++++++-- src/fed2019/Form1040.ts | 1 + 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/fed2019/Form1040.test.ts b/src/fed2019/Form1040.test.ts index 15dc9f1..795ddd0 100644 --- a/src/fed2019/Form1040.test.ts +++ b/src/fed2019/Form1040.test.ts @@ -11,8 +11,20 @@ test('w2 wages', () => { const pa = Person.self('A'); const pb = Person.spouse('B'); const tr = new TaxReturn(2019); - tr.addForm(new FormW2({ employer: 'AA', employee: pa, wages: 1000000.00, fedIncomeTax: 0 })); - tr.addForm(new FormW2({ employer: 'BB', employee: pb, wages: 36.32, fedIncomeTax: 0 })); + tr.addForm(new FormW2({ + employer: 'AA', + employee: pa, + wages: 1000000.00, + fedIncomeTax: 0, + medicareWages: 0, + })); + tr.addForm(new FormW2({ + employer: 'BB', + employee: pb, + wages: 36.32, + fedIncomeTax: 0, + medicareWages: 0, + })); const f1040 = new Form1040({ filingStatus: FilingStatus.MarriedFilingJoint }); tr.addForm(f1040); tr.addForm(new Schedule2); diff --git a/src/fed2019/Form1040.ts b/src/fed2019/Form1040.ts index 7884ea5..a3ad3ae 100644 --- a/src/fed2019/Form1040.ts +++ b/src/fed2019/Form1040.ts @@ -236,6 +236,7 @@ export class Schedule2 extends Form { if (additionalMedicare) { const f8959 = tr.getForm('8959'); + value += f8959.getValue(tr, '18'); } if (niit) { -- 2.43.5