]> git.mxchange.org Git - jfinancials-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sat, 5 Nov 2022 04:39:57 +0000 (05:39 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 5 Nov 2022 04:39:57 +0000 (05:39 +0100)
- updated to latest changes in constructor (order of parameters)
- also used newly added constructor with all optional class fields, except
  contactId, fax/land-line/mobile number and created/updated fields

src/java/org/mxchange/jfinancials/beans/contact/FinancialsAdminContactWebRequestBean.java
src/java/org/mxchange/jfinancials/beans/contact/FinancialsContactWebRequestBean.java

index d7de073234465c08feb3a177685795b36223c014..0160330055daa6562b892a9e048f2ba65d8c9ed2 100644 (file)
@@ -444,19 +444,21 @@ public class FinancialsAdminContactWebRequestBean extends BaseFinancialsBean imp
                                          this.getPersonalTitle(),
                                          this.getFirstName(),
                                          this.getFamilyName(),
-                                         this.getContactCountry()
+                                         this.getContactCountry(),
+                                         Boolean.FALSE,
+                                         this.getStreet(),
+                                         this.getHouseNumber(),
+                                         this.getHouseNumberExtension(),
+                                         this.getZipCode(),
+                                         this.getCity(),
+                                         this.getEmailAddress(),
+                                         this.getAcademicTitle(),
+                                         this.getBirthday(),
+                                         this.getComment()
                          );
 
-               // Add all others
-               localContact.setContactBirthday(this.getBirthday());
-               localContact.setContactCity(this.getCity());
-               localContact.setContactComment(this.getComment());
-               localContact.setContactEmailAddress(this.getEmailAddress());
-               localContact.setContactHouseNumber(this.getHouseNumber());
+               // Add missing fields
                localContact.setContactId(this.getContactId());
-               localContact.setContactStreet(this.getStreet());
-               localContact.setContactTitle(this.getAcademicTitle());
-               localContact.setContactZipCode(this.getZipCode());
 
                // Don't set null or wrong references
                if ((landLine instanceof DialableLandLineNumber) && (landLine.getPhoneCountry() instanceof Country) && (this.getLandLineAreaCode() != null) && (this.getLandLineNumber() != null) && (this.getLandLineAreaCode() > 0) && (this.getLandLineNumber() > 0)) {
index 21024af8ce9514e41810b485e7e92c00c5f6c0ad..545e95000ebae495f9b3d2ddb037f98e9e049ad0 100644 (file)
@@ -331,7 +331,8 @@ public class FinancialsContactWebRequestBean extends BaseFinancialsBean implemen
                                          this.getPersonalTitle(),
                                          this.getFirstName(),
                                          this.getFamilyName(),
-                                         this.getCountry()
+                                         this.getCountry(),
+                                         Boolean.FALSE
                          );
 
                // Return instance