How to assign annual bonus to all employees in salary structure

I want to assign a component in salary structure that should be included in the last month of payroll period as annual bonus for all the employees.How to do it.

You can do this via Additional Salary. Create an additional salary for the last month of the payroll period. You will also have to specify the salary component against which the bonus will be added. For this, you can create a separate salary component called Bonus or use any of the previously created component. While running the payroll entry for that month, the additional salary will be automatically fetched.

To know more about additional salary, check the following link:
https://erpnext.com/docs/user/manual/en/human-resources/additional-salary

Hope this helps!

Additional salary needs to be setup for all the employees one by one can it not be done together??

@tanzy

You can use data import for bulk updation of Bonus for the last month. Kindly refer the below link:
https://erpnext.com/docs/user/manual/en/setting-up/data/data-import

Regards,
Reema