Custom Button in purchase invoice to make one action on selected Invoices

hi all
please help in this i need to add a custom button over the edit button as in the image
this button must do the following :
-all selected invoices will be the same status.
-when this button pressed it must give some options like(make payment,make any schedule based on my needs,etc)