How to use employee penalty in salary slip

I created an employee penalty and chose a salary component but when making salary slip it didn’t work