Loan deduction from salary v15

When a Salary Slip is created from a Payroll Entry for Aug and then deleted and re-entered, the loan is not added again.

I think the reason is in this field, How to solve it?

This is my solution

update tabRepayment Schedule set is_accrued = 0 where payment_Date >= ‘your date’;