We have updated salary proration calculations for Malaysian monthly and weekly employees to strictly align with Section 18A of the Malaysian Employment Act 1955.
The New Formula: When calculating incomplete months (such as new joiners, leavers, mid-period contract changes, unpaid leave, or absences), the system now divides the salary by the actual calendar days in the entire pay period instead of fixed assumptions like 30 days.
Prorated Salary = Monthly Salary/Calendar Days in Pay Period
Cross-Month & Twice-a-Month Cycles: For payroll periods that cross months (e.g., September 21 to October 20) or operate on a twice-a-month cycle, the system automatically uses the exact calendar days for each specific cycle rather than assuming fixed halves (like 15 or 15.5 days).
Weekly Salaries: Weekly salaries/7 x applicable days
To simplify contract configuration and ensure compliance, several UI fields have been streamlined:
Hidden "Calendar Days" Checkbox: The old Calendar Days checkbox on Malaysian employee contracts and "My Details" screens has been hidden. Existing daily/hourly accounts that previously relied on it have been automatically transitioned to standard equivalents to ensure reports like CP22 and Salary Certificates accurately reflect correct figures.
Default Work Days / Month: New Malaysian contracts will now automatically default to 26 days for the Work Days / Month field.

Dual Calculation Basis (Statutory vs. Rate-Based):
Statutory Proration & Attendances: Use Calendar Days in the wage period.
Rate-Based Deductions & Overtime (ORP/HRP): Strictly use the contract's configured Work Days / Month divisor (default: 26), satisfying Section 60I(1A) of the Employment Act.
To give administrators greater flexibility when reviewing and processing timesheets, we have introduced a new Period Type dropdown filter:
Current Period: Automatically loads timesheet data corresponding to the active payroll cycle.
Previous Period: Quick-select option to view or adjust timesheets from the immediately preceding payroll period.
Custom Period: Allows you to define custom Start Date and End Date ranges for tailored reporting or off-cycle adjustments.

Note: Regardless of the selected Period Type, the system automatically calculates Worked Days using the full underlying payroll period bounds (minus approved unpaid leave or absences) to ensure statutory alignment.
The system calculates Worked Days automatically using the full payroll period (determined by your selected Pay Period and Pay Cycle), minus any approved unpaid leave or absence days. Note that individual timesheet start and end dates do not override the overall payroll period bounds