fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nazeer1100...@apache.org
Subject [1/2] incubator-fineract git commit: adding charges to loan was creating duplicate gl entries
Date Thu, 09 Jun 2016 10:36:05 GMT
Repository: incubator-fineract
Updated Branches:
  refs/heads/develop 41440de25 -> b4cb1a570


adding charges to loan was creating duplicate gl entries


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

Branch: refs/heads/develop
Commit: 3d0f48999dfdb93f14d0eac95a5b2d11c1d25b9b
Parents: 979b57c
Author: venkatconflux <venkata.conflux@confluxtechnologies.com>
Authored: Wed Jun 8 14:43:35 2016 +0530
Committer: venkatconflux <venkata.conflux@confluxtechnologies.com>
Committed: Wed Jun 8 14:43:35 2016 +0530

----------------------------------------------------------------------
 .../java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/3d0f4899/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 04a497a..e3835d4 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
@@ -624,6 +624,7 @@ public class Loan extends AbstractPersistable<Long> {
         }
         this.loanTransactions.addAll(changedTransactionDetail.getNewTransactionMappings().values());
         updateLoanSummaryDerivedFields();
+        this.loanTransactions.removeAll(changedTransactionDetail.getNewTransactionMappings().values());
         return changedTransactionDetail;
     }
 


Mime
View raw message