Hello @all,
I am experiencing double entry in a specific loan product when repayments are done via the phone app therefore leading to a double entry of the transaction/repayment in the system.
Any help will be much appreciated.
See below the attached snip for the specific entries where the repayment is regenerated.

Below is the logs as the "end makeRepayment" is regenerated.
2025-02-19 15:36:09.143 INFO 2397862 --- [nio-7949-exec-4] o.a.f.portfolio.loanaccount.domain.Loan : LoanRepayment->handleRepaymentOrRecoveryOrWaiverTransaction->004, loanId=225
2025-02-19 15:36:09.143 INFO 2397862 --- [nio-7949-exec-4] o.a.f.portfolio.loanaccount.domain.Loan : LoanRepayment->end2 regenerateRepaymentScheduleWithInterestRecalculation, loanId=225
2025-02-19 15:36:09.144 INFO 2397862 --- [nio-7949-exec-4] o.a.f.p.l.d.LoanAccountDomainServiceJpa : LoanRepayment->in3 makeRepayment, loanId=225
2025-02-19 15:36:09.163 INFO 2397862 --- [nio-7949-exec-4] o.a.f.p.l.d.LoanAccountDomainServiceJpa : LoanRepayment->in4 makeRepayment, loanId=225
2025-02-19 15:36:09.164 INFO 2397862 --- [nio-7949-exec-4] o.a.f.p.l.d.LoanAccountDomainServiceJpa : LoanRepayment->in5 makeRepayment, loanId=225
2025-02-19 15:36:09.167 INFO 2397862 --- [nio-7949-exec-4] o.a.f.p.l.d.LoanAccountDomainServiceJpa : LoanRepayment->in6 makeRepayment, loanId=225
2025-02-19 15:36:09.168 INFO 2397862 --- [nio-7949-exec-4] o.a.f.p.l.d.LoanAccountDomainServiceJpa : LoanRepayment->in7 makeRepayment, loanId=225
2025-02-19 15:36:09.168 INFO 2397862 --- [nio-7949-exec-4] oanWritePlatformServiceJpaRepositoryImpl : LoanRepayment->end makeRepayment, loanId=225
2025-02-19 15:36:09.181 INFO 2397862 --- [nio-7949-exec-4] o.a.f.m.MibC2bMpesaCallBackResource : 记账系统还款记账成功, loanId: 225 , transId : J9NFPED
2025-02-19 15:36:09.181 INFO 2397862 --- [nio-7949-exec-4] o.a.f.m.MibC2bMpesaCallBackResource : get cTob confirm end
2025-02-19 15:36:09.324 INFO 2397862 --- [nio-7949-exec-7] o.a.fineract.mibext.MibWebApiResource : 开始进行Loantransaction,,{"paymentTypeId":1,"dateFormat":"yyyy-MM-dd","transactionAmount":"30","locale":"en","transactionDate":"2025-02-19"}
2025-02-19 15:36:09.327 INFO 2397862 --- [nio-7949-exec-7] o.a.f.p.l.h.LoanRepaymentCommandHandler : LoanRepayment->processCommand, loanId=225
2025-02-19 15:36:09.327 INFO 2397862 --- [nio-7949-exec-7] oanWritePlatformServiceJpaRepositoryImpl : LoanRepayment->makeLoanRepayment, loanId=225
2025-02-19 15:36:09.328 INFO 2397862 --- [nio-7949-exec-7] oanWritePlatformServiceJpaRepositoryImpl : LoanRepayment->start assembleFrom, loanId=225
2025-02-19 15:36:09.363 INFO 2397862 --- [nio-7949-exec-7] oanWritePlatformServiceJpaRepositoryImpl : LoanRepayment->end assembleFrom, loanId=225
2025-02-19 15:36:09.363 INFO 2397862 --- [nio-7949-exec-7] o.a.f.p.l.d.LoanAccountDomainServiceJpa : LoanRepayment->in1 makeRepayment, loanId=225
2025-02-19 15:36:09.363 INFO 2397862 --- [nio-7949-exec-7] o.a.f.p.l.d.LoanAccountDomainServiceJpa : LoanRepayment->in11 makeRepayment, loanId=225
2025-02-19 15:36:09.369 INFO 2397862 --- [nio-7949-exec-7] o.a.f.p.l.d.LoanAccountDomainServiceJpa : LoanRepayment->in2 makeRepayment, loanId=225
2025-02-19 15:36:09.370 INFO 2397862 --- [nio-7949-exec-7] o.a.f.portfolio.loanaccount.domain.Loan : LoanRepayment->in loan, loanId=225
2025-02-19 15:36:09.371 INFO 2397862 --- [nio-7949-exec-7] o.a.f.portfolio.loanaccount.domain.Loan : LoanRepayment->handleRepaymentOrRecoveryOrWaiverTransaction->001, loanId=225
2025-02-19 15:36:09.371 INFO 2397862 --- [nio-7949-exec-7] o.a.f.portfolio.loanaccount.domain.Loan : LoanRepayment->handleRepaymentOrRecoveryOrWaiverTransaction->002, loanId=225
2025-02-19 15:36:09.371 INFO 2397862 --- [nio-7949-exec-7] o.a.f.portfolio.loanaccount.domain.Loan : LoanRepayment->handleRepaymentOrRecoveryOrWaiverTransaction->003, loanId=225
2025-02-19 15:36:09.381 INFO 2397862 --- [nio-7949-exec-7] o.a.f.portfolio.loanaccount.domain.Loan : LoanRepayment->handleRepaymentOrRecoveryOrWaiverTransaction->004, loanId=225
2025-02-19 15:36:09.381 INFO 2397862 --- [nio-7949-exec-7] o.a.f.portfolio.loanaccount.domain.Loan : LoanRepayment->end2 regenerateRepaymentScheduleWithInterestRecalculation, loanId=225
2025-02-19 15:36:09.382 INFO 2397862 --- [nio-7949-exec-7] o.a.f.p.l.d.LoanAccountDomainServiceJpa : LoanRepayment->in3 makeRepayment, loanId=225
2025-02-19 15:36:09.398 INFO 2397862 --- [nio-7949-exec-7] o.a.f.p.l.d.LoanAccountDomainServiceJpa : LoanRepayment->in4 makeRepayment, loanId=225
2025-02-19 15:36:09.400 INFO 2397862 --- [nio-7949-exec-7] o.a.f.p.l.d.LoanAccountDomainServiceJpa : LoanRepayment->in5 makeRepayment, loanId=225
2025-02-19 15:36:09.404 INFO 2397862 --- [nio-7949-exec-7] o.a.f.p.l.d.LoanAccountDomainServiceJpa : LoanRepayment->in6 makeRepayment, loanId=225
2025-02-19 15:36:09.404 INFO 2397862 --- [nio-7949-exec-7] o.a.f.p.l.d.LoanAccountDomainServiceJpa : LoanRepayment->in7 makeRepayment, loanId=225
2025-02-19 15:36:09.404 INFO 2397862 --- [nio-7949-exec-7] oanWritePlatformServiceJpaRepositoryImpl : LoanRepayment->end makeRepayment, loanId=225
2025-02-19 15:36:11.814 INFO 2397862 --- [nio-7949-exec-1] o.a.f.m.util.HeaderMapRequestWrapper : getHeader --->Authorization
Regards.