case 4341
This commit is contained in:
@@ -507,6 +507,25 @@
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'AddressPostal')"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
xl="3"
|
||||
>
|
||||
<v-text-field
|
||||
ref="addressPostal"
|
||||
v-model="obj.addressPostal"
|
||||
dense
|
||||
:readonly="formState.readOnly"
|
||||
:label="$ay.t('AddressPostal')"
|
||||
data-cy="addressPostal"
|
||||
:error-messages="form().serverErrors(this, 'addressPostal')"
|
||||
@input="fieldValueChanged('addressPostal')"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'Latitude')"
|
||||
cols="12"
|
||||
@@ -777,6 +796,7 @@ export default {
|
||||
city: null,
|
||||
region: null,
|
||||
country: null,
|
||||
addressPostal: null,
|
||||
latitude: null,
|
||||
longitude: null
|
||||
},
|
||||
@@ -1197,6 +1217,12 @@ export default {
|
||||
if (vm.obj.country) {
|
||||
ret += vm.obj.country + "\n";
|
||||
}
|
||||
|
||||
if (vm.obj.addressPostal) {
|
||||
//Postal codes should have two spaces before them according to regs.
|
||||
ret += " " + vm.obj.addressPostal + "\n";
|
||||
}
|
||||
|
||||
window.$gz.util.copyToClipboard(ret);
|
||||
/* todo maybe down the road if asked for?
|
||||
|
||||
@@ -1304,7 +1330,8 @@ async function clickHandler(menuItem) {
|
||||
city: m.vm.obj.city || m.vm.obj.postCity,
|
||||
region: m.vm.obj.region || m.vm.obj.postRegion,
|
||||
country: m.vm.obj.country || m.vm.obj.postCountry,
|
||||
postCode: m.vm.obj.postCode
|
||||
postCode: m.vm.obj.postCode,
|
||||
addressPostal: m.vm.obj.addressPostal
|
||||
});
|
||||
break;
|
||||
case "CustomerNoteList":
|
||||
@@ -1570,6 +1597,7 @@ async function fetchTranslatedText() {
|
||||
"AddressCity",
|
||||
"AddressStateProv",
|
||||
"AddressCountry",
|
||||
"AddressPostal",
|
||||
"AddressLatitude",
|
||||
"AddressLongitude",
|
||||
"CustomerCustom1",
|
||||
|
||||
Reference in New Issue
Block a user