I’ve identified the root cause and solution for your calculation mismatch:
Calculation Engine Sync Analysis:
Both mobile and desktop use the same underlying payroll calculation service, but they access it through different API layers with different default configurations. The mobile API has intermediate rounding enabled by default for performance reasons, while desktop uses full-precision calculation with rounding only at the final step.
Rounding Methodology Configuration:
The key issue is the intermediateRounding flag in the mobile payroll calculation configuration. Update this setting:
PATCH /api/mobile/v2/payroll/config
{
"calculationPrecision": {
"roundingMode": "HALF_UP",
"decimalPlaces": 4,
"intermediateRounding": false,
"finalRoundingOnly": true
}
}
This changes mobile to match desktop’s behavior: maintain 4 decimal places during intermediate calculations and round only the final result to 2 decimal places.
Tax Table Updates Verification:
Even though tax tables sync properly, ensure the mobile calculation cache is invalidated when updates occur:
- Navigate to Setup > Payroll > Mobile Configuration > Cache Settings
- Set ‘Tax Table Update Trigger’ to ‘Immediate Cache Invalidation’
- Enable ‘Force Recalculation on Tax Table Change’
Deduction Logic Alignment:
Verify the calculation sequence matches between mobile and desktop by checking Setup > Payroll > Calculation Sequence Configuration. The order should be:
- Gross pay calculation
- Pre-tax deductions (maintain 4 decimal precision)
- Tax calculations (maintain 4 decimal precision)
- Post-tax deductions (maintain 4 decimal precision)
- Final net pay (round to 2 decimals)
Ensure the mobile configuration uses this exact sequence by setting ‘Mobile Calculation Sequence’ to ‘Use Global Configuration’ rather than ‘Mobile Optimized’.
Additional Configuration:
For complex tax situations with multiple jurisdictions, enable ‘High Precision Tax Calculation Mode’ in Setup > Mobile Configuration > Advanced Payroll Settings. This ensures tax calculations for employees with multiple state/local taxes maintain precision throughout the calculation chain.
Validation Steps:
- Apply the configuration changes
- Clear mobile app cache for all users
- Run test payroll calculations for employees with complex deduction scenarios
- Enable calculation debug mode and compare step-by-step results
- Verify final net pay matches between mobile and desktop to the penny
Performance Note: Disabling intermediate rounding may slightly increase calculation time on mobile devices (typically 50-100ms per calculation), but this is negligible compared to the trust issues caused by calculation discrepancies. The precision improvement is worth the minimal performance impact.
After implementing these changes, your mobile and desktop calculations should match exactly, even for employees with multiple deductions and complex tax situations.