Merge pull request #468 from goutham-M/mifosx-558

modify loan application submit on date after the product close date is getting created(fixed)
This commit is contained in:
Vishwas Babu A J
2013-07-20 03:19:59 -07:00
@@ -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); }