loan application submit on date after the product close date is getting created

This commit is contained in:
goutham-M
2013-07-20 12:56:43 +05:30
parent 20908a80ac
commit 874d6845d0
@@ -213,7 +213,9 @@ public class LoanApplicationWritePlatformServiceJpaRepositoryImpl implements Loa
this.fromApiJsonDeserializer.validateForModify(command.json());
final Loan existingLoanApplication = retrieveLoanBy(loanId);
validateSubmittedOnDate(command, existingLoanApplication.loanProduct());
if (!existingLoanApplication.isSubmittedAndPendingApproval()) { throw new LoanApplicationNotInSubmittedAndPendingApprovalStateCannotBeModified(
loanId); }