Do a search on the forum as this sort of question has been asked before. Here’s a detailed explanation from @Joe:
http://community.quickfile.co.uk/t/how-do-i-enter-payroll-paye-journals-and-entries/53/4?u=parker1090
If you use something like The Payroll Site, this links with QuickFile and can save you doing the journals.