Repository: incubator-fineract
Updated Branches:
  refs/heads/develop 4be363d17 -> c4fcc7e42


Relocated charge recalculation in loan approval.


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

Branch: refs/heads/develop
Commit: ac7195a4887ef373e236c5e60a7f1d83b268175c
Parents: c8cedfc
Author: Tan Gemicioglu <tang...@hotmail.com>
Authored: Mon Dec 26 16:27:14 2016 +0300
Committer: Tan Gemicioglu <tang...@hotmail.com>
Committed: Mon Dec 26 16:27:14 2016 +0300

----------------------------------------------------------------------
 .../org/apache/fineract/portfolio/loanaccount/domain/Loan.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/ac7195a4/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java
----------------------------------------------------------------------
diff --git 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java
 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java
index 7518b3c..08ad953 100755
--- 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java
+++ 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java
@@ -2145,8 +2145,10 @@ public class Loan extends 
AbstractPersistableCustom<Long> {
                     updateDisbursementDetails(command, actualChanges);
                 }
             }
+            
+            recalculateAllCharges();
+            
             if (loanProduct.isMultiDisburseLoan()) {
-                recalculateAllCharges();
 
                 if (this.disbursementDetails.isEmpty()) {
                     final String errorMessage = "For this loan product, 
disbursement details must be provided";

Reply via email to