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: FINERACT-331 : In edit client if the Legal Form is modified from entity to person not getting updated as person after submission
Date Mon, 13 Mar 2017 12:03:57 GMT
Repository: incubator-fineract
Updated Branches:
  refs/heads/develop a8f386811 -> 2f4ff30c9


FINERACT-331 : In edit client if the Legal Form is modified from entity to person not getting
updated as person after submission


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

Branch: refs/heads/develop
Commit: f6b0e280e0abf80741e258fd428a609195d30331
Parents: f1f3d65
Author: nazeer1100126 <nazeer.shaik@confluxtechnologies.com>
Authored: Fri Mar 10 17:14:02 2017 +0530
Committer: nazeer1100126 <nazeer.shaik@confluxtechnologies.com>
Committed: Fri Mar 10 17:41:32 2017 +0530

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


http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/f6b0e280/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 ce0e0f9..08425f7 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
@@ -562,6 +562,13 @@ public final class Client extends AbstractPersistableCustom<Long>
{
             	{
             		actualChanges.put(ClientApiConstants.legalFormIdParamName, ClientEnumerations.legalForm(newValue));
                     this.setLegalForm(legalForm.getValue());
+                    if(legalForm.isPerson()){
+                        this.fullname = null;
+                    }else if(legalForm.isEntity()){
+                        this.firstname = null;
+                        this.lastname = null;
+                        this.displayName = null;
+                    }
             	}
             	else
             	{


Mime
View raw message