Repository: incubator-fineract
Updated Branches:
  refs/heads/develop 7e9a7596c -> e3f0ecafc


MIFOSX-2626 Resolved


Project: http://git-wip-us.apache.org/repos/asf/incubator-fineract/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-fineract/commit/e3f0ecaf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-fineract/tree/e3f0ecaf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-fineract/diff/e3f0ecaf

Branch: refs/heads/develop
Commit: e3f0ecafc38b3ae3d7bc7e35943fb419f5d2b728
Parents: 7e9a759
Author: venkatconflux <[email protected]>
Authored: Fri Mar 11 17:59:08 2016 +0530
Committer: venkatconflux <[email protected]>
Committed: Fri Mar 11 17:59:08 2016 +0530

----------------------------------------------------------------------
 .../service/LoanWritePlatformServiceJpaRepositoryImpl.java       | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/e3f0ecaf/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java
----------------------------------------------------------------------
diff --git 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java
 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java
index bcdb3e0..2d4da70 100755
--- 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java
+++ 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java
@@ -328,6 +328,8 @@ public class LoanWritePlatformServiceJpaRepositoryImpl 
implements LoanWritePlatf
         final Map<String, Object> changes = new LinkedHashMap<>();
 
         final PaymentDetail paymentDetail = 
this.paymentDetailWritePlatformService.createAndPersistPaymentDetail(command, 
changes);
+        
+        final Boolean 
isPaymnetypeApplicableforDisbursementCharge=configurationDomainService.isPaymnetypeApplicableforDisbursementCharge();
 
         // Recalculate first repayment date based in actual disbursement date.
         final LocalDate actualDisbursementDate = 
command.localDateValueOfParameterNamed("actualDisbursementDate");
@@ -361,7 +363,7 @@ public class LoanWritePlatformServiceJpaRepositoryImpl 
implements LoanWritePlatf
                 
this.loanScheduleHistoryWritePlatformService.createAndSaveLoanScheduleArchive(loan.fetchRepaymentScheduleInstallments(),
                         loan, null);
             }
-            
if(configurationDomainService.isPaymnetypeApplicableforDisbursementCharge()){
+            if(isPaymnetypeApplicableforDisbursementCharge){
                changedTransactionDetail = loan.disburse(currentUser, command, 
changes, scheduleGeneratorDTO,paymentDetail);
             }else{
                changedTransactionDetail = loan.disburse(currentUser, command, 
changes, scheduleGeneratorDTO,null);

Reply via email to