From 6b05e46d8f4c48d451ef08a7e8ccc8186f846e41 Mon Sep 17 00:00:00 2001 From: habile-technologies <83582152+habile-technologies@users.noreply.github.com> Date: Fri, 21 May 2021 18:29:42 +0530 Subject: [PATCH] Not able to create the client address due to missing street field in UI (#3385) * Not able to create the client address due to missing street field in UI #3249 * address issue fixes * Edit address and add address bug fix --- app/global-translations/locale-en.json | 1 + .../client/CreateClientController.js | 18 ++++++------ .../client/ViewClientController.js | 2 +- .../configurations/AddressFormController.js | 22 +++++++++------ .../configurations/EditAddressController.js | 28 ++++++++++++------- app/views/administration/AddressForm.html | 13 +++++++++ app/views/administration/EditAddress.html | 9 ++++++ app/views/clients/createclient.html | 22 ++++++++++----- app/views/clients/viewclient.html | 8 ++++++ 9 files changed, 86 insertions(+), 37 deletions(-) diff --git a/app/global-translations/locale-en.json b/app/global-translations/locale-en.json index af668e42..6715b488 100644 --- a/app/global-translations/locale-en.json +++ b/app/global-translations/locale-en.json @@ -4284,6 +4284,7 @@ "label.anchor.editrate": "Edit Rate", "label.error.rate.already.exist" : "Rate already exist.", "label.selectrate" : "Select Rate", + "label.input.street":"Street", "----End---": "--End of file--- " } diff --git a/app/scripts/controllers/client/CreateClientController.js b/app/scripts/controllers/client/CreateClientController.js index 03bafddf..bda0fd0e 100755 --- a/app/scripts/controllers/client/CreateClientController.js +++ b/app/scripts/controllers/client/CreateClientController.js @@ -100,12 +100,11 @@ scope.enableAddress=data.isAddressEnabled; - if(scope.enableAddress===true) - { - scope.addressTypes=data.address[0].addressTypeIdOptions; - scope.countryOptions=data.address[0].countryIdOptions; - scope.stateOptions=data.address[0].stateProvinceIdOptions; - + if (scope.enableAddress === true) { + scope.addressTypes = data.address[0].addressTypeIdOptions; + scope.countryOptions = data.address.countryIdOptions; + scope.stateOptions = data.address.stateProvinceIdOptions; + resourceFactory.addressFieldConfiguration.get({entity:entityname},function(data){ for(var i=0;i + +
+ + +
+ +
+ +
+
diff --git a/app/views/administration/EditAddress.html b/app/views/administration/EditAddress.html index 9ee6ab8c..46386c8d 100644 --- a/app/views/administration/EditAddress.html +++ b/app/views/administration/EditAddress.html @@ -7,6 +7,15 @@ +
+ + +
+ +
+ +
+
diff --git a/app/views/clients/createclient.html b/app/views/clients/createclient.html index 3dbffb9c..de054713 100755 --- a/app/views/clients/createclient.html +++ b/app/views/clients/createclient.html @@ -434,7 +434,7 @@
@@ -442,6 +442,19 @@
+
+
+ +
+
+ +
+
+ +
+
+ +
@@ -460,12 +473,7 @@
-
- -
- -
-
+
diff --git a/app/views/clients/viewclient.html b/app/views/clients/viewclient.html index d24706bc..8ad62e7a 100755 --- a/app/views/clients/viewclient.html +++ b/app/views/clients/viewclient.html @@ -849,6 +849,14 @@ + + + {{'label.input.street' | translate }} + + + {{address.street}} + + {{'label.input.addressline1' | translate }}