To generate payroll for the staff, Payroll Months Settings should be done. To create the payroll months, follow the below procedure.
Settings ---> HR ---> Payroll Month Settings ---> Select Branch, Payroll Entity ---> Select Year ---> Select the From Date and To Date for Attendance and Payroll ---> Click on Save ---> Click on Yes if you want the Same Payroll Dates applying to remaining Months ---> Select the Months ---> Click on Save.
Note: To generate Payroll based on Entity, Payroll months has to be created entity wise. Otherwise, common payroll months are to be created by selecting All Fee Accounts in Payroll entity.