From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jun 11 23:50:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B5A22EA7 for ; Tue, 11 Jun 2013 23:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id A67A0160A for ; Tue, 11 Jun 2013 23:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r5BNo1Zh045021 for ; Tue, 11 Jun 2013 23:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r5BNo1Ic045020; Tue, 11 Jun 2013 23:50:01 GMT (envelope-from gnats) Date: Tue, 11 Jun 2013 23:50:01 GMT Message-Id: <201306112350.r5BNo1Ic045020@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Cc: From: John Hein Subject: Re: ports/177717: update finance/opentaxsolver for TY 2012 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: John Hein List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jun 2013 23:50:01 -0000 The following reply was made to PR ports/177717; it has been noted by GNATS. From: John Hein To: Raphael Kubo da Costa Cc: Subject: Re: ports/177717: update finance/opentaxsolver for TY 2012 Date: Tue, 11 Jun 2013 17:23:01 -0600 --aBcIfnrsUx Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit Raphael Kubo da Costa wrote at 00:31 +0300 on Jun 12, 2013: > The distfile does not match the contents of the file in SourceForge. Can > you check that, please? It changed a lot in a couple days... -rw-r--r-- 1 jhein jhein 504918 Apr 7 20:12 OpenTaxSolver2012_10.00.tgz-old -rw-r--r-- 1 jhein jhein 480920 Apr 9 07:25 OpenTaxSolver2012_10.00.tgz-new (diff attached) But all the diffs look legitimate. It appears the April 7 version was using the 2011 fields for the NC state tax form. April 9's distfile looks right. The changed binaries are regenerated as part of the build. So the upstream reroll looks good to me. New patch for distinfo is: Index: distinfo =================================================================== --- distinfo (revision 319769) +++ distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (OpenTaxSolver2011_9.01.tgz) = acd28964b616559b16af160368cf649883add2aeabd3817dcbcb8385c27c5220 -SIZE (OpenTaxSolver2011_9.01.tgz) = 502241 +SHA256 (OpenTaxSolver2012_10.00.tgz) = 76a016541a3cf8bb73a85178c2763dd9fd86f182951390f4102475059c6a7254 +SIZE (OpenTaxSolver2012_10.00.tgz) = 480920 Thanks for tending to this PR. A little late for most people, but maybe there are still some late filers ;) --aBcIfnrsUx Content-Type: text/plain; name="reroll-diffs.txt" Content-Description: apr 7 v. apr 9 reroll of opentaxsolver 10.00 Content-Disposition: inline; filename="reroll-diffs.txt" Content-Transfer-Encoding: 7bit Files OpenTaxSolver2012_10.00-old/bin/ots_gui and OpenTaxSolver2012_10.00-new/bin/ots_gui differ Only in OpenTaxSolver2012_10.00-old/bin: taxsolve_CA_540_2012 Only in OpenTaxSolver2012_10.00-old/bin: taxsolve_MA_1_2012 Files OpenTaxSolver2012_10.00-old/bin/taxsolve_NC_D400_2012 and OpenTaxSolver2012_10.00-new/bin/taxsolve_NC_D400_2012 differ Only in OpenTaxSolver2012_10.00-old/bin: taxsolve_NY_IT201_2012 Files OpenTaxSolver2012_10.00-old/bin/taxsolve_US_1040_2012 and OpenTaxSolver2012_10.00-new/bin/taxsolve_US_1040_2012 differ diff -ur OpenTaxSolver2012_10.00-old/examples_and_templates/NC_D400/NC_400_2012_example.txt OpenTaxSolver2012_10.00-new/examples_and_templates/NC_D400/NC_400_2012_example.txt --- OpenTaxSolver2012_10.00-old/examples_and_templates/NC_D400/NC_400_2012_example.txt 2012-11-25 22:30:03.000000000 -0700 +++ OpenTaxSolver2012_10.00-new/examples_and_templates/NC_D400/NC_400_2012_example.txt 2013-04-08 09:44:38.000000000 -0600 @@ -1,12 +1,12 @@ -Title: NC State Tax Form 400 for 2012 - EXAMPLE +Title: NC State Tax Form 400 for 2012 - EXAMPLE -{ -- Example Return --- } +{ --- Example Return --- } FedReturn examples_and_templates/US_1040/US_1040_example_out.txt { File-name of Federal Return output file. } Status Single {Single, Married/Joint, Married/Sep, Head_of_House, Widow(er)} -Exception no { Answer yes, if you are claimed as someone else's dependent } +Exception no { Answer yes, if you are claimed as someone else's dependent } { or married filing separate and spouse claims deductions } { Otherwise answer no. } YouAge65 no { Answer yes, if you 65 or over. Otherwise answer no. } @@ -14,38 +14,40 @@ SpouseAge65 no { Answer yes, if spouse 65 or over. Otherwise answer no. } SpouseBlind no { Answer yes, if spouse are blind. Otherwise answer no. } -L15 0 ; { Tax credits. (D-400TC part 4 line 37) } -L17 0 ; { Consumer Use Tax. (pg 8) } +L19 0 ; { Tax credits. (D-400TC part 4 line 37) } +L21 0 ; { Consumer Use Tax. (pg 8) } -L19a 1,500.0 ; { Your North Carolina Income Tax Withheld } -L19b 700.0 ; { Spouse's North Carolina Income Tax Withheld } +L23a 1,500.00 ; { Your North Carolina Income Tax Withheld } +L23b 700.00 ; { Spouse's North Carolina Income Tax Withheld } { Other tax payments. } -L20a 0 ; { 2012 Estimated Tax } -L20b 0 ; { Paid with Extension } -L20c 0 ; { Partnership } -L20d 0 ; { S Coroporation } - -L21 0 ; { North Carolina Earned Income Tax Credit (D-400TC, Part 5) } -L22 0 ; { Tax Credit for Small Businesses (D-400TC, Part 6) } - -L37 87.30 ; { Interest income from non-NC states. } -L38 0 ; { Adj Bonus depreciation } -L39 0 ; { Adj Section 179 Expense Deduction } -L40 0 ; { Other additions to fed income } - -L43 0 ; { Interest from US or US possessions. } -L44 0 ; { Taxable soc sec and RR benfits. } -L45 0 ; { Retirement benefits (Bailey) } -L46 0 ; { Other retirement benefits } -L47 0 ; { Severance wages (See Line instructions on Page 13) } -L48a 0 ; { Adjustmnts for bonus depreciation added 3 years back } -L48b 0 ; { Adjustmnts for bonus depreciation added 2 years back } -L48c 0 ; { Adjustmnts for bonus depreciation added 1 year back } -L49 0 ; { Adjustment for Section 179 Expense Added Back in last year } -L50 0 ; { Contributions to NC's National College Savings Program } -L51 0 ; { Adjustment for absorbed Non-ESB NOL added back in 2003 - 2006 } -L52 0 ; { Other deductions from fed income } +L24a 0 ; { 2012 Estimated Tax } +L24b 0 ; { Paid with Extension } +L24c 0 ; { Partnership } +L24d 0 ; { S Coroporation } + +L25 0 ; { North Carolina Earned Income Tax Credit (D-400TC, Part 5) } + +L34 87.30 ; { Interest income from non-NC states. } +L35 0 ; { Adj Bonus depreciation } +L36 0 ; { Other additions to fed income } + +L38 0 ; { State or local income tax refunded not in Fed 1040 line 10 } +L39 0 ; { Interest from US or US possessions. } +L40 0 ; { Taxable soc sec and RR benfits. } +L41 0 ; { Retirement benefits (Bailey) } +L42 0 ; { Other retirement benefits } +L43 0 ; { Severance wages (See Line instructions on Page 13) } +L44a 0 ; { Adjustmnts for bonus depreciation added 2008 } +L44b 0 ; { Adjustmnts for bonus depreciation added 2009 } +L44c 0 ; { Adjustmnts for bonus depreciation added 2010 } +L44d 0 ; { Adjustmnts for bonus depreciation added 2011 } +L45a 0 ; { Adjustment for Section 179 Expense Added Back in 2010 } +L45b 0 ; { Adjustment for Section 179 Expense Added Back in 2011 } +L46 0 ; { Contributions to NC's National College Savings Program } +L47 0 ; { Adjustment for absorbed Non-ESB NOL added back in 2003 - 2006 } +L48 0 ; { Adj for net business income not passive } +L49 0 ; { Other deductions from fed income } { Full-Year NC Residents leave the next two entries blank. } PYR-ws33a ; { Part-year Resident Worksheet line-33a. (Pg 15) Others leave blank. } diff -ur OpenTaxSolver2012_10.00-old/examples_and_templates/NC_D400/NC_400_2012_template.txt OpenTaxSolver2012_10.00-new/examples_and_templates/NC_D400/NC_400_2012_template.txt --- OpenTaxSolver2012_10.00-old/examples_and_templates/NC_D400/NC_400_2012_template.txt 2012-11-25 22:30:03.000000000 -0700 +++ OpenTaxSolver2012_10.00-new/examples_and_templates/NC_D400/NC_400_2012_template.txt 2013-04-08 09:41:28.000000000 -0600 @@ -15,38 +15,40 @@ SpouseAge65 no { Answer yes, if spouse 65 or over. Otherwise answer no. } SpouseBlind no { Answer yes, if spouse are blind. Otherwise answer no. } -L15 0 ; { Tax credits. (D-400TC part 4 line 37) } -L17 0 ; { Consumer Use Tax. (pg 8) } +L19 0 ; { Tax credits. (D-400TC part 4 line 37) } +L21 0 ; { Consumer Use Tax. (pg 8) } -L19a 0 ; { Your North Carolina Income Tax Withheld } -L19b 0 ; { Spouse's North Carolina Income Tax Withheld } +L23a 0 ; { Your North Carolina Income Tax Withheld } +L23b 0 ; { Spouse's North Carolina Income Tax Withheld } { Other tax payments. } -L20a 0 ; { 2012 Estimated Tax } -L20b 0 ; { Paid with Extension } -L20c 0 ; { Partnership } -L20d 0 ; { S Coroporation } - -L21 0 ; { North Carolina Earned Income Tax Credit (D-400TC, Part 5) } -L22 0 ; { Tax Credit for Small Businesses (D-400TC, Part 6) } - -L37 0 ; { Interest income from non-NC states. } -L38 0 ; { Adj Bonus depreciation } -L39 0 ; { Adj Section 179 Expense Deduction } -L40 0 ; { Other additions to fed income } - -L43 0 ; { Interest from US or US possessions. } -L44 0 ; { Taxable soc sec and RR benfits. } -L45 0 ; { Retirement benefits (Bailey) } -L46 0 ; { Other retirement benefits } -L47 0 ; { Severance wages (See Line instructions on Page 13) } -L48a 0 ; { Adjustmnts for bonus depreciation added 3 years back } -L48b 0 ; { Adjustmnts for bonus depreciation added 2 years back } -L48c 0 ; { Adjustmnts for bonus depreciation added 1 year back } -L49 0 ; { Adjustment for Section 179 Expense Added Back in last year } -L50 0 ; { Contributions to NC's National College Savings Program } -L51 0 ; { Adjustment for absorbed Non-ESB NOL added back in 2003 - 2006 } -L52 0 ; { Other deductions from fed income } +L24a 0 ; { 2012 Estimated Tax } +L24b 0 ; { Paid with Extension } +L24c 0 ; { Partnership } +L24d 0 ; { S Coroporation } + +L25 0 ; { North Carolina Earned Income Tax Credit (D-400TC, Part 5) } + +L34 0 ; { Interest income from non-NC states. } +L35 0 ; { Adj Bonus depreciation } +L36 0 ; { Other additions to fed income } + +L38 0 ; { State or local income tax refunded not in Fed 1040 line 10 } +L39 0 ; { Interest from US or US possessions. } +L40 0 ; { Taxable soc sec and RR benfits. } +L41 0 ; { Retirement benefits (Bailey) } +L42 0 ; { Other retirement benefits } +L43 0 ; { Severance wages (See Line instructions on Page 13) } +L44a 0 ; { Adjustmnts for bonus depreciation added 2008 } +L44b 0 ; { Adjustmnts for bonus depreciation added 2009 } +L44c 0 ; { Adjustmnts for bonus depreciation added 2010 } +L44d 0 ; { Adjustmnts for bonus depreciation added 2011 } +L45a 0 ; { Adjustment for Section 179 Expense Added Back in 2010 } +L45b 0 ; { Adjustment for Section 179 Expense Added Back in 2011 } +L46 0 ; { Contributions to NC's National College Savings Program } +L47 0 ; { Adjustment for absorbed Non-ESB NOL added back in 2003 - 2006 } +L48 0 ; { Adj for net business income not passive } +L49 0 ; { Other deductions from fed income } { Full-Year NC Residents leave the next two entries blank. } PYR-ws33a ; { Part-year Resident Worksheet line-33a. (Pg 15) Others leave blank. } diff -ur OpenTaxSolver2012_10.00-old/src/GUI/ots_gui.c OpenTaxSolver2012_10.00-new/src/GUI/ots_gui.c --- OpenTaxSolver2012_10.00-old/src/GUI/ots_gui.c 2013-04-07 19:40:57.000000000 -0600 +++ OpenTaxSolver2012_10.00-new/src/GUI/ots_gui.c 2013-04-08 09:46:23.000000000 -0600 @@ -1440,7 +1440,7 @@ taxsolvecmd = getenv("taxsolvecmd"); if (taxsolvecmd==0) { - int US_1040_enabled=1, US_1040_Sched_C_enabled=1, US_8829_enabled=1, State_CA_540_enabled=1, State_NC_DC400_enabled=0, + int US_1040_enabled=1, US_1040_Sched_C_enabled=1, US_8829_enabled=1, State_CA_540_enabled=0, State_NC_DC400_enabled=1, State_OH_IT1040_enabled=1, State_NJ_1040_enabled=1, State_PA_40_enabled=1, State_VA_760_enabled=1, State_NY_IT201_enabled=0, State_MA_1_enabled=0; diff -ur OpenTaxSolver2012_10.00-old/src/taxsolve_NC_D400_2012.c OpenTaxSolver2012_10.00-new/src/taxsolve_NC_D400_2012.c --- OpenTaxSolver2012_10.00-old/src/taxsolve_NC_D400_2012.c 2013-04-02 01:01:52.000000000 -0600 +++ OpenTaxSolver2012_10.00-new/src/taxsolve_NC_D400_2012.c 2013-04-08 09:34:10.000000000 -0600 @@ -169,9 +169,10 @@ time_t now; struct FedReturnData fed_data; double AB=0.0, ws[MAX_LINES], stdded, min_payment = 0.0, min2file; - double L19a=0.0, L19b=0.0, PYR33a=0.0, PYR33b=0.0; - double L20a=0.0, L20b=0.0, L20c=0.0, L20d=0.0; - double L48a=0.0, L48b=0.0, L48c=0.0; + double L23a=0.0, L23b=0.0, PYR33a=0.0, PYR33b=0.0; + double L24a=0.0, L24b=0.0, L24c=0.0, L24d=0.0; + double L44a=0.0, L44b=0.0, L44c=0.0, L44d=0.0; + double L45a=0.0, L45b=0.0; /*-----------------------------------------*/ /* --- Decode any command line options. -- */ @@ -264,49 +265,55 @@ get_parameter( infile, 'b', &exmp, "SpouseBlind ?"); Exemptions = Exemptions + exmp; - GetLine( "L15", &L[15] ); /* Tax credits. (D-400TC part 4 line 37) */ - GetLine( "L17", &L[17] ); /* Consumer Use Tax. (pg 8) */ - GetLine( "L19a", &L19a ); /* Your North Carolina Income Tax Withheld */ - GetLine( "L19b", &L19b ); /* Spouse's North Carolina Income Tax Withheld */ - L[19] = L19a + L19b; - GetLine( "L20a", &L20a ); /* Other tax payments. 2012 Estimated Tax. */ - GetLine( "L20b", &L20b ); /* Other tax payments. Paid with Extension. */ - GetLine( "L20c", &L20c ); /* Other tax payments. Partnership. */ - GetLine( "L20d", &L20d ); /* Other tax payments. S Corporation. */ - L[20] = L20a + L20b + L20c + L20d; - - GetLine( "L21", &L[21] ); /* North Carolina Earned Income Tax Credit (D-400TC, Part 5) */ - GetLine( "L22", &L[22] ); /* Tax Credit for Small Businesses (D-400TC, Part 6) */ - - GetLine( "L37", &L[37] ); /* Interest income from non-NC states. */ - GetLine( "L38", &L[38] ); /* Adj Bonus depreciation */ - GetLine( "L39", &L[39] ); /* Adj Section 179 Expense Deduction */ - GetLine( "L40", &L[40] ); /* Other additions to fed income */ - - GetLine( "L43", &L[43] ); /* Interest from US or US possessions. */ - GetLine( "L44", &L[44] ); /* Taxable soc sec and RR benfits. */ - GetLine( "L45", &L[45] ); /* Retirement benefits (Bailey)*/ - GetLine( "L46", &L[46] ); /* Other retirement benefits */ - GetLine( "L47", &L[47] ); /* Severance wages (See Line instructions on Page 13) */ - GetLine( "L48a", &L48a ); /* Adjustmnts for bonus depreciation added back last year */ - GetLine( "L48b", &L48b ); /* Adjustmnts for bonus depreciation added back last year */ - GetLine( "L48c", &L48c ); /* Adjustmnts for bonus depreciation added back last year */ - L[48] = L48a + L48b + L48c; - GetLine( "L49", &L[49] ); /* Adjustment for Section 179 Expense Added Back in last year */ - GetLine( "L50", &L[50] ); /* Contributions to North Carolina's National College Savings Program */ - GetLine( "L51", &L[51] ); /* Adjustment for absorbed Non-ESB NOL added back in 2003 - 2006 */ - GetLine( "L52", &L[52] ); /* Other deductions from fed income */ + GetLine( "L19", &L[19] ); /* Tax credits. (D-400TC part 4 line 37) */ + GetLine( "L21", &L[21] ); /* Consumer Use Tax. (pg 8) */ + GetLine( "L23a", &L23a ); /* Your North Carolina Income Tax Withheld */ + GetLine( "L23b", &L23b ); /* Spouse's North Carolina Income Tax Withheld */ + L[23] = L23a + L23b; + GetLine( "L24a", &L24a ); /* Other tax payments. 2012 Estimated Tax. */ + GetLine( "L24b", &L24b ); /* Other tax payments. Paid with Extension. */ + GetLine( "L24c", &L24c ); /* Other tax payments. Partnership. */ + GetLine( "L24d", &L24d ); /* Other tax payments. S Corporation. */ + L[24] = L24a + L24b + L24c + L24d; + + GetLine( "L25", &L[25] ); /* North Carolina Earned Income Tax Credit (D-400TC, Part 5) */ + + GetLine( "L34", &L[34] ); /* Interest income from non-NC states. */ + GetLine( "L35", &L[35] ); /* Adj Bonus depreciation */ + GetLine( "L36", &L[36] ); /* Other additions to fed AGI */ + L[37] = L[34] + L[35] + L[36]; + L[7] = L[37]; + + GetLine( "L38", &L[38] ); /* State or local income tax refund not in Fed 1040 line 10 */ + GetLine( "L39", &L[39] ); /* Interest from US or US possessions. */ + GetLine( "L40", &L[40] ); /* Taxable soc sec and RR benfits. */ + GetLine( "L41", &L[41] ); /* Retirement benefits (Bailey)*/ + GetLine( "L42", &L[42] ); /* Other retirement benefits */ + GetLine( "L43", &L[43] ); /* Severance wages (See Line instructions on Page 13) */ + GetLine( "L44a", &L44a ); /* Adjustmnts for bonus depreciation added back 2008 */ + GetLine( "L44b", &L44b ); /* Adjustmnts for bonus depreciation added back 2009 */ + GetLine( "L44c", &L44c ); /* Adjustmnts for bonus depreciation added back 2010 */ + GetLine( "L44d", &L44d ); /* Adjustmnts for bonus depreciation added back 2011 */ + L[44] = L44a + L44b + L44c + L44d; + GetLine( "L45a", &L45a ); /* Adjustment for Section 179 Expense Added Back in 2010 */ + GetLine( "L45b", &L45b ); /* Adjustment for Section 179 Expense Added Back in 2011 */ + L[45] = L45a + L45b; + + GetLine( "L46", &L[46] ); /* Contributions to North Carolina's National College Savings Program */ + GetLine( "L47", &L[47] ); /* Adjustment for absorbed Non-ESB NOL added back in 2003 - 2006 */ + GetLine( "L48", &L[48] ); /* Adj for net business income not passive */ + GetLine( "L49", &L[49] ); /* Other deductions from fed income */ GetLine( "PYR-ws33a", &PYR33a ); /* Part-year resident worksheet line 33a. */ - GetLine( "PYR-ws33b", &PYR33b ); /* Part-year resident worksheet line 33a. */ + GetLine( "PYR-ws33b", &PYR33b ); /* Part-year resident worksheet line 33b. */ if (PYR33a == 0.0) - L[12] = 1.0; + L[16] = 1.0; else { L[54] = PYR33b; L[55] = PYR33a; L[56] = 0.0001 * (int)(10000.0 * (L[54] / L[55]) + 0.5); /* Round to four decimal places. */ - L[12] = L[56]; + L[16] = L[56]; } fclose(infile); @@ -318,8 +325,6 @@ L[6] = fed_data.fedline[37]; /* Taxable income from Fed1040 Line 37. */ -// L[31] = fed_data.fedline[40]; /* Itemized deductions or std. deduction from Fed1040 line 40. */ - /* Exemptions calculation of Deductions - pg 11 */ switch (status) { @@ -327,7 +332,7 @@ min2file = 5500.0; break; case MARRIED_FILLING_JOINTLY: stdded = 6000.0; /* NC std Married/joint deduction. */ - min2file = 11600.0; + min2file = 11000.0; break; case WIDOW: stdded = 6000.0; /* NC std widow(er) deduction. */ min2file = 8500.0; @@ -371,28 +376,6 @@ break; } } - L[32] = stdded; /* Std Deductions */ - - L[33] = NotLessThanZero( L[31] - L[32] ); - - if (fed_data.Itemized) - { - L[34] = fed_data.Sched_A[5]; - L[35] = smallerof( L[33], L[34] ); - } - else - { - L[34] = 0.0; - L[35] = L[33]; - } - - - - - for (j=34; j <= 36; j++) - L[37] = L[37] + L[j]; /* Total additions. */ - - L[7] = L[37]; /* Additions to Federal Taxable Income. */ L[8] = L[6] + L[7]; @@ -403,7 +386,6 @@ L[10] = L[8] - L[9]; - if (fed_data.Itemized) { double it_ded_ws[20]; @@ -423,11 +405,11 @@ /* Personal Exemption Adjustment worksheet - pg 9 */ switch (status) { - case WIDOW: AB = 100000.0; break; /* NC std widow(er) */ - case MARRIED_FILLING_JOINTLY: AB = 100000.0; break; /* NC std Married/joint */ - case HEAD_OF_HOUSEHOLD: AB = 80000.0; break; /* NC std Head of house */ case SINGLE: AB = 60000.0; break; /* NC std single */ + case MARRIED_FILLING_JOINTLY: AB = 100000.0; break; /* NC std Married/joint */ + case WIDOW: AB = 100000.0; break; /* NC std widow(er) */ case MARRIED_FILLING_SEPARAT: AB = 50000.0; break; /* NC std Married/sep */ + case HEAD_OF_HOUSEHOLD: AB = 80000.0; break; /* NC std Head of house */ } if (fed_data.fedline[37] < AB) /* Compare Fed AGI */ L[13] = fed_data.fedline[6] * 2500.0; /* A pg 9 */ @@ -441,56 +423,50 @@ L[17] = L[15]; /* North Carolina Taxable Income. */ /* (Assumes full-year resident of NC.) */ - - - - - - if (L[13] <= 68000.0) + if (L[17] <= 68000.0) { int m; double x; - - m = L[13] / 50.0; /* Round income to nearest $50. */ + m = L[17] / 50.0; /* Round income to nearest $50. */ x = TaxRateFunction( 50.0 * (double)m + 25.0, status ); /* Lookup. */ m = (int)(x + 0.5); /* Round result to whole dollar. */ - L[14] = (double)m; + L[18] = (double)m; } - else L[14] = TaxRateFunction( L[13], status ); + else L[18] = TaxRateFunction( L[17], status ); - L[16] = L[14] - L[15]; + L[20] = L[18] - L[19]; -/* Calculate USE tax if not entered on L17 - * based on Use Tax Worksheet on page 8. +/* Calculate USE tax if not entered on L21 + * based on Use Tax Worksheet on page 10. * * If you have purchases greater that 1000 that need * to be reported, or taxes paid to another state, then * fill out the Work Sheet in the instructions and enter - * the amount on L17 in data file. + * the amount on L21 in data file. */ printf( "Assuming you have calculated your USE tax (%2.2f) according to instructions pg 8\n", L[17] ); - L[18] = L[16] + L[17]; + L[22] = L[20] + L[21]; - L[23] = L[19] + L[20] + L[21] + L[22]; + L[26] = L23a + L23b + L[24] + L[25]; - if (L[18] > L[23]) + if (L[22] > L[26]) { - L[24] = L[18] - L[23]; /* You OWE */ + L[27] = L[22] - L[26]; /* You OWE */ /* Check for under payment see form D422 Part I */ - min_payment = L[18] * 0.9; /* min est tax payments see form D422 Part I */ - if ((L[23] < min_payment) && (L[24] > 1000.00)) + min_payment = L[22] * 0.9; /* min est tax payments see form D422 Part I */ + if ((L[26] < min_payment) && (L[27] > 1000.00)) { /* We would calc penalty here... */ printf("WARNING: Possible underpayment of est. taxes penalty. Calculation not performed.\n"); } - L[25] = L[24]; /* Assumes no penalties. */ + L[28] = L[27]; /* Assumes no penalties. */ } else { - L[26] = L[23] - L[18]; /* REFUND */ + L[29] = L[26] - L[22]; /* REFUND */ } @@ -505,27 +481,31 @@ showline(9); /* Deductions */ showline(10); showline(11); - if (L[12] < 1.0) showline(12); /* Part-yr */ - showline_wmsg(13,"North Carolina Taxable Income"); - showline_wmsg(14,"North Carolina Income Tax"); - showline(15); - showline(16); - showline(17); - showline(18); - showline_wlabelmsg( "L19a", L19a, "Your North Carolina Tax Withheld"); - showline_wlabelmsg( "L19b", L19b, "Spouse's North Carolina Tax Withheld"); - showline_wlabel( "L20a", L20a ); - showline_wlabel( "L20b", L20b ); - showline_wlabel( "L20c", L20c ); - showline_wlabel( "L20d", L20d ); + showline(12); + showline(13); + showline(14); + showline(15); + if (L[16] < 1.0) showline(16); /* Part-yr */ + showline_wmsg(17,"North Carolina Taxable Income"); + showline_wmsg(18,"North Carolina Income Tax"); + showline(19); + showline(20); + showline(21); + showline(22); + showline_wlabelmsg( "L23a", L23a, "Your North Carolina Tax Withheld"); + showline_wlabelmsg( "L23b", L23b, "Spouse's North Carolina Tax Withheld"); + showline_wlabel( "L24a", L24a ); + showline_wlabel( "L24b", L24b ); + showline_wlabel( "L24c", L24c ); + showline_wlabel( "L24d", L24d ); showline(21); showline(22); showline(23); - if (L[18] > L[23]) + if (L[22] > L[26]) { - showline(24); - showline_wmsg(25,"PAY THIS AMOUNT"); - if ((L[23] < min_payment) && (L[24] > 1000.00)) + showline(27); + showline_wmsg(28,"PAY THIS AMOUNT"); + if ((L[26] < min_payment) && (L[27] > 1000.00)) { fprintf(outfile," You may owe underpayment interest and penalties.\n"); fprintf(outfile," See page 6 instructions to calculate them according to your situation.\n"); @@ -533,22 +513,27 @@ } else { - showline_wmsg(26,"OVERPAYMENT"); + showline_wmsg(29,"OVERPAYMENT"); } - for (k=31; k<=47; k++) + for (k=34; k<=43; k++) showline(k); - showline_wlabel( "L48a", L48a ); - showline_wlabel( "L48b", L48b ); - showline_wlabel( "L48c", L48c ); - showline_wlabel( "L48d", L[48] ); + showline_wlabel( "L44a", L44a ); + showline_wlabel( "L44b", L44b ); + showline_wlabel( "L44c", L44c ); + showline_wlabel( "L44d", L44d ); + showline_wlabel( "L44e", L[44] ); + + showline_wlabel( "L45a", L45a ); + showline_wlabel( "L45b", L45b ); + showline_wlabel( "L45c", L[45] ); - for (k=49; k<=53; k++) + for (k=46; k<=50; k++) showline(k); if (PYR33a > 0.0) - for (k=54; k<=56; k++) + for (k=51; k<=53; k++) showline(k); fclose(outfile); diff -ur OpenTaxSolver2012_10.00-old/src/taxsolve_US_1040_2012.c OpenTaxSolver2012_10.00-new/src/taxsolve_US_1040_2012.c --- OpenTaxSolver2012_10.00-old/src/taxsolve_US_1040_2012.c 2013-04-07 19:30:20.000000000 -0600 +++ OpenTaxSolver2012_10.00-new/src/taxsolve_US_1040_2012.c 2013-04-07 20:32:05.000000000 -0600 @@ -643,6 +643,7 @@ double SchedDe[20], SchedDf[20], SchedDg[20]; for (j=0; j<20; j++) { SchedDe[j] = 0.0; SchedDf[j] = 0.0; SchedDg[j] = 0.0; } + /* Form 8849 - Adjunct form to Schedule-D. */ get_gain_and_losses( "Cap-Gains-A" ); /* (A) Basis Reported to IRS. */ if (short_trades) { --aBcIfnrsUx--