MYHR MALAYSIA - PAYROLL CALCULATE FIX Replace these files on the server: admin/payroll.php admin/payroll_view.php admin/_header.php lib/payroll.php What this fixes: 1. Calculate no longer renders a blank page. 2. Actions are processed before any HTML/header output. 3. Calculate uses POST + CSRF and automatically redirects to payroll results. 4. A "Calculating..." state prevents double-clicks. 5. Statutory schedule selection uses the payroll period end date, not today's date. 6. Locked payroll cannot be recalculated. 7. Errors return to the payroll screen and are shown in red instead of leaving a blank page. Current statutory logic: - EPF: official schedule row if imported; otherwise estimate + CHECK. - SOCSO: official schedule row if imported; otherwise estimate + CHECK. - EIS: official schedule row if imported; otherwise estimate + CHECK. - PCB: exact override if entered; otherwise 0 + CHECK. A full LHDN 2026 MTD engine requires employee tax profile/TP1/TP3/YTD inputs and is not faked here.