From 91618b0d3097000dca8b4f0ec1ebe5cc9631058b Mon Sep 17 00:00:00 2001
From: "j.goderbauer" <j.goderbauer@adito.de>
Date: Thu, 4 Apr 2019 16:32:01 +0200
Subject: [PATCH] Address: ADDRIDENTIFIER editable

---
 neonView/AddressList_view/AddressList_view.aod         | 4 ++++
 neonView/AdressMultiEdit_view/AdressMultiEdit_view.aod | 4 ++++
 process/PostalAddress_lib/process.js                   | 7 ++++---
 3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/neonView/AddressList_view/AddressList_view.aod b/neonView/AddressList_view/AddressList_view.aod
index 4c155db5b2..0baa8a5755 100644
--- a/neonView/AddressList_view/AddressList_view.aod
+++ b/neonView/AddressList_view/AddressList_view.aod
@@ -38,6 +38,10 @@
           <name>12727b21-0359-4430-a9c2-54eb48e2e864</name>
           <entityField>CITY</entityField>
         </neonTableColumn>
+        <neonTableColumn>
+          <name>6af52273-25bf-4286-83cc-217aea94ad09</name>
+          <entityField>ADDRIDENTIFIER</entityField>
+        </neonTableColumn>
       </columns>
     </titledListViewTemplate>
   </children>
diff --git a/neonView/AdressMultiEdit_view/AdressMultiEdit_view.aod b/neonView/AdressMultiEdit_view/AdressMultiEdit_view.aod
index 3f827b5696..dbec2da120 100644
--- a/neonView/AdressMultiEdit_view/AdressMultiEdit_view.aod
+++ b/neonView/AdressMultiEdit_view/AdressMultiEdit_view.aod
@@ -36,6 +36,10 @@
           <name>fafca2d6-c2dd-4b66-b1ff-1d6ba451827b</name>
           <entityField>CITY</entityField>
         </neonTableColumn>
+        <neonTableColumn>
+          <name>481496b8-d611-4b4a-9c5e-1d28a7136a2d</name>
+          <entityField>ADDRIDENTIFIER</entityField>
+        </neonTableColumn>
       </columns>
     </genericMultipleViewTemplate>
   </children>
diff --git a/process/PostalAddress_lib/process.js b/process/PostalAddress_lib/process.js
index f3f2b67f1b..b21cd05e05 100644
--- a/process/PostalAddress_lib/process.js
+++ b/process/PostalAddress_lib/process.js
@@ -22,12 +22,13 @@ function AddressUtils(){}
  * @param {String} pBuildingNo
  * @param {String} pZipCode
  * @param {String} pCity
+ * @param {String} pAddressIdentifier
  * 
  * @return {String}
  */
-AddressUtils.formatOneline = function (pCountry, pAddressLine, pBuildingNo, pZipCode, pCity)
+AddressUtils.formatOneline = function (pCountry, pAddressLine, pBuildingNo, pZipCode, pCity, pAddressIdentifier)
 {
-    return StringUtils.concat(", ", [pCountry, pAddressLine, pBuildingNo, pZipCode, pCity]);
+    return StringUtils.concat(", ", [pCountry, pAddressLine, pBuildingNo, pZipCode, pCity, pAddressIdentifier]);
 };
 
 /**
@@ -45,7 +46,7 @@ AddressUtils.getFormattedOnlineAddressById = function(pAddressId)
     var addr = "";
     if (addrId) 
     {
-        var select = "select ADDRESS.COUNTRY, ADDRESS.ADDRESS, ADDRESS.BUILDINGNO, ADDRESS.ZIP, ADDRESS.CITY from ADDRESS ";
+        var select = "select ADDRESS.COUNTRY, ADDRESS.ADDRESS, ADDRESS.BUILDINGNO, ADDRESS.ZIP, ADDRESS.CITY, ADDRESS.ADDRIDENTIFIER from ADDRESS ";
         var addrData = db.array(db.ROW, 
             SqlCondition.begin()
             .andPrepare("ADDRESS.ADDRESSID", addrId)
-- 
GitLab