fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raj...@apache.org
Subject [1/4] incubator-fineract git commit: Populate Display Name as Full Name when client is a Person
Date Mon, 28 Mar 2016 11:11:07 GMT
Repository: incubator-fineract
Updated Branches:
  refs/heads/develop bba8ca47b -> 8dfec9a37


Populate Display Name as Full Name when client is a Person


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

Branch: refs/heads/develop
Commit: b533916ab68fabab9444505bb5a8b9e0b1d39451
Parents: 9c38078
Author: jinjurajan <jinju.rajan@confluxtechnologies.com>
Authored: Thu Mar 24 16:14:15 2016 +0530
Committer: jinjurajan <jinju.rajan@confluxtechnologies.com>
Committed: Thu Mar 24 16:14:59 2016 +0530

----------------------------------------------------------------------
 .../java/org/apache/fineract/portfolio/client/domain/Client.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/b533916a/fineract-provider/src/main/java/org/apache/fineract/portfolio/client/domain/Client.java
----------------------------------------------------------------------
diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/client/domain/Client.java
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/client/domain/Client.java
index 6020c31..5ed9ad4 100644
--- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/client/domain/Client.java
+++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/client/domain/Client.java
@@ -679,6 +679,10 @@ public final class Client extends AbstractPersistable<Long> {
             if (StringUtils.isNotBlank(this.lastname)) {
                 nameBuilder.append(this.lastname);
             }
+            
+            if (StringUtils.isNotBlank(this.fullname)) {
+                nameBuilder = new StringBuilder(this.fullname);
+            }
         }
         else if(LegalForm.fromInt(legalForm).isEntity())
         {


Mime
View raw message