Loans and repayment from salay

hello community .
does anyone know anything about the repayment from salary process.
I created this loan and tried to repay it from salary .
created payroll entry . and then the salary slip. I got the loan table and got it deducted from net pay . everything is cool here .
created the journal entry . I got the full amount but the General ledger said that the repayment is done . (saved the full salary and saved the repayment). ok cool .
but then I created I bank entry from the payroll entry . but I got the full salary in the bank entry .
is this correct ? but the bank entry can’t has the full amount transferred to the employee. anyone can help here ?