Upstairs is right. From the net profit, you can literally see that you need to reduce profits to increase benefits, and the welfare fund is only accrued and has not yet happened, so the lender has to deal with it, so:
Borrow: undistributed profit (see your own settings for detailed accounts)
Loan: wages payable to employees.