FINERACT-1840: Minor fix to avoid business logic collision
This commit is contained in:
+5
-1
@@ -3509,7 +3509,11 @@ public class Loan extends AbstractAuditableWithUTCDateTimeCustom {
|
|||||||
public void applyIncomeAccrualTransaction(LocalDate closedDate) {
|
public void applyIncomeAccrualTransaction(LocalDate closedDate) {
|
||||||
ExternalId externalId = ExternalId.empty();
|
ExternalId externalId = ExternalId.empty();
|
||||||
boolean isExternalIdAutoGenerationEnabled = TemporaryConfigurationServiceContainer.isExternalIdAutoGenerationEnabled();
|
boolean isExternalIdAutoGenerationEnabled = TemporaryConfigurationServiceContainer.isExternalIdAutoGenerationEnabled();
|
||||||
if (isPeriodicAccrualAccountingEnabledOnLoanProduct()) {
|
if (isPeriodicAccrualAccountingEnabledOnLoanProduct()
|
||||||
|
// to avoid collision with processIncomeAccrualTransactionOnLoanClosure()
|
||||||
|
// TODO: review after interest calculation implemented
|
||||||
|
&& !(this.loanInterestRecalculationDetails != null
|
||||||
|
&& this.loanInterestRecalculationDetails.isCompoundingToBePostedAsTransaction())) {
|
||||||
List<LoanTransaction> updatedAccrualTransactions = retrieveListOfAccrualTransactions();
|
List<LoanTransaction> updatedAccrualTransactions = retrieveListOfAccrualTransactions();
|
||||||
LocalDate lastAccruedDate = this.getDisbursementDate();
|
LocalDate lastAccruedDate = this.getDisbursementDate();
|
||||||
if (!updatedAccrualTransactions.isEmpty()) {
|
if (!updatedAccrualTransactions.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user