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

This commit is contained in:
nazeer1100126
2017-03-10 17:41:32 +05:30
parent f1f3d65161
commit f6b0e280e0
@@ -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
{