Merge branch 'PR266' into develop

This commit is contained in:
Nazeer Hussain Shaik
2016-12-29 10:46:22 +05:30
@@ -2145,9 +2145,11 @@ public class Loan extends AbstractPersistableCustom<Long> {
updateDisbursementDetails(command, actualChanges); updateDisbursementDetails(command, actualChanges);
} }
} }
if (loanProduct.isMultiDisburseLoan()) {
recalculateAllCharges(); recalculateAllCharges();
if (loanProduct.isMultiDisburseLoan()) {
if (this.disbursementDetails.isEmpty()) { if (this.disbursementDetails.isEmpty()) {
final String errorMessage = "For this loan product, disbursement details must be provided"; final String errorMessage = "For this loan product, disbursement details must be provided";
throw new MultiDisbursementDataRequiredException(LoanApiConstants.disbursementDataParameterName, errorMessage); throw new MultiDisbursementDataRequiredException(LoanApiConstants.disbursementDataParameterName, errorMessage);