FINERACT-2080: Move loan validation from entity to validator classes
This commit is contained in:
committed by
Adam Saghy
parent
56ee2eaaff
commit
a2c01d25e5
+1
@@ -802,6 +802,7 @@ public class AdvancedPaymentScheduleTransactionProcessor extends AbstractLoanRep
|
||||
oldChargebackRelations.forEach(relations::remove);
|
||||
relations.add(LoanTransactionRelation.linkToTransaction(originalTransaction, newTransaction, CHARGEBACK));
|
||||
}
|
||||
loanChargeValidator.validateRepaymentTypeTransactionNotBeforeAChargeRefund(oldTransaction.getLoan(), oldTransaction, "reversed");
|
||||
oldTransaction.reverse();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user