Payroll Entry - Bank Entry - Loan Amount Not calculating

I have a loan that is adjusted against employees’ salaries. The payroll entry is correctly processed, and the salary slip accurately reflects the loan deduction and net payable. However, when I create a bank entry from the payroll entry, the bank entry reflects the gross amount, without deducting the loan amount.

Is this a system glitch, or am I doing something wrong? The bank entry should be based on the net amount, net of the loan.

Any advice would be highly appreciated