What happens if I attended office during an approved leave?

In case you have not availed an approved leave, then you need to get approval from HoD and then contact HR to correct your records.