Maryland State Tax Calculation
Maryland State Tax Calculation
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.
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:
Add the following 3 lines right above: $pd_obj->setGrossPayPeriodIncome()
The final result should look like this:
That should get you going until the next version of TimeTrex is released.
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 );
Code: Select all
$pd_obj->setUserValue1( $user_value1 );
$pd_obj->setUserValue2( $user_value2 );
$pd_obj->setUserValue3( $user_value3 );
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 );