FINERACT-1724 - Remove Restriction from faurd mark
This commit is contained in:
-5
@@ -2521,11 +2521,6 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
|
||||
Loan loan = this.loanAssembler.assembleFrom(loanId);
|
||||
final Map<String, Object> changes = new LinkedHashMap<>();
|
||||
|
||||
if (!loan.isOpen()) {
|
||||
throw new GeneralPlatformDomainRuleException("error.msg.loan.mark.as.fraud.not.allowed",
|
||||
"Loan Id: " + loanId + " mark as fraud is not allowed as loan status is not active", loan.getStatus().getCode());
|
||||
}
|
||||
|
||||
final boolean fraud = command.booleanPrimitiveValueOfParameterNamed(LoanApiConstants.FRAUD_ATTRIBUTE_NAME);
|
||||
if (loan.isFraud() != fraud) {
|
||||
loan.markAsFraud(fraud);
|
||||
|
||||
Reference in New Issue
Block a user