Fetching data similar to leave application function

Hi Good Day i want to create a new doctype and name it overtime i want to have function like leave application where in your overtime will need to be approve first… all i want to do right now is to fetch my approved overtime and display it on salary slip same function like absent days, payment days and leave without pay. what is the setup procedure here or idea where can i start working on this. Thank you God Bless