There are several threads on here if you search for “payroll journal”, here’s a couple of times I’ve explained it in the past: