in the worse case 4 agents are need: manager who count hours/results -> hr: gathered total info -> accountant : prepares payment -> bank : processing salary on date.
Most companies are so lost with payroll they hire “staff leasing” companies to deal with all the nonsense. Imagine just doing away with all that.