The payroll logic in textile factories is not linear. You may have workers paid daily, weekly, or monthly. Some are on piece-rate, others on minimum wage scales fixed by the Gujarat government. Your HRMS should be equipped with a localised payroll software Ahmedabad module to handle wage structure configuration at this level of granularity. If it cannot, you will always need a workaround, and workarounds always break.