Page 1 of 1

Maryland State Tax Calculation

Posted: Thu Jul 26, 2007 9:15 am
by rons
I have set up some sample employees for testing and assigned Province/State Tax along with federal withholding, unemployment, etc. When I calculate their pay, there is no deduction for Maryland State taxes but all the other deductions appear. How do I fix this.

Posted: Thu Jul 26, 2007 9:27 am
by shaunw
I believe Maryland has separate rates per county, so you need to use the District/County Formula instead of the State Formula.

Posted: Thu Jul 26, 2007 12:06 pm
by rons
I added the district formula as 7.83% to reflect both the Maryland rate and local Baltimore County rate and set it to apply to all active employees. I recalculated their pay and the district deduction still does not appear in the pay stub.

Posted: Thu Jul 26, 2007 12:32 pm
by shaunw
Our developers informed me that this is a bug with the Maryland taxes, the percentage isn't getting to the tax formula engine so TimeTrex thinks its 0% and thus not calculating anything.

If you edit classes/modules/users/UserDeductionFactory.class.php around line: 850

You should see:

Code: Select all

				$pd_obj = new PayrollDeduction( $this->getCompanyDeductionObject()->getCountry(), $this->getCompanyDeductionObject()->getProvince(), $this->getCompanyDeductionObject()->getDistrict() );
				$pd_obj->setDate( $pay_period_obj->getTransactionDate() );
				$pd_obj->setAnnualPayPeriods( $annual_pay_periods );

				$pd_obj->setDistrictFilingStatus( $user_value1 );
				$pd_obj->setDistrictAllowance( $user_value2 );

				$pd_obj->setGrossPayPeriodIncome( $amount );
Add the following 3 lines right above: $pd_obj->setGrossPayPeriodIncome()

Code: Select all

				$pd_obj->setUserValue1( $user_value1 );
				$pd_obj->setUserValue2( $user_value2 );
				$pd_obj->setUserValue3( $user_value3 );
The final result should look like this:

Code: Select all

				$pd_obj = new PayrollDeduction( $this->getCompanyDeductionObject()->getCountry(), $this->getCompanyDeductionObject()->getProvince(), $this->getCompanyDeductionObject()->getDistrict() );
				$pd_obj->setDate( $pay_period_obj->getTransactionDate() );
				$pd_obj->setAnnualPayPeriods( $annual_pay_periods );

				$pd_obj->setDistrictFilingStatus( $user_value1 );
				$pd_obj->setDistrictAllowance( $user_value2 );

				$pd_obj->setUserValue1( $user_value1 );
				$pd_obj->setUserValue2( $user_value2 );
				$pd_obj->setUserValue3( $user_value3 );

				$pd_obj->setGrossPayPeriodIncome( $amount );
That should get you going until the next version of TimeTrex is released.

Posted: Fri Jul 27, 2007 3:03 pm
by rons
After applying the changes to the file and re-calculating the pay stubs for the test employees, the District tax is still not appearing on the stub and not deducted from gross pay.

Posted: Fri Jul 27, 2007 4:13 pm
by shaunw
Is it possible to provide us with a screen shot of the Tax/Deduction Edit page with all the settings options expanded?

Posted: Fri Jul 27, 2007 6:00 pm
by rons
I will email the screen shot since I can not figure out how to post it here.

Posted: Fri Jul 27, 2007 8:05 pm
by shaunw
The screenshot shows that you do not have any included pay stub accounts in the tax deduction. So TimeTrex doesn't know what to calculate the 7.8% on.

Please see section 2.8 of the Administrator Guide for more information.

Posted: Sat Jul 28, 2007 7:09 am
by rons
Thanks, that worked.