diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 3a0dd274..06c95227 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -294,10 +294,13 @@ CURRENTLY DOING: front end full in Address - add get route customer/billing-address - returns mailto address of customer or of head office if it has a head office and bill head office is checked + returns mailto address of customer AND of head office if it has a head office and bill head office is checked + {client:{addressfields},headoffice:{addressfields}} - add get route customer/service-address returns physical address of customer + {client:{addressfields}} - add get route unit/service-address + {unit:{addressfields}} UI wo address control diff --git a/ayanova/src/components/_barebones_template.vue b/ayanova/src/components/_barebones_template.vue index bd452d08..8eef3e42 100644 --- a/ayanova/src/components/_barebones_template.vue +++ b/ayanova/src/components/_barebones_template.vue @@ -33,11 +33,8 @@ export default { return window.$gz.form; }, fieldValueChanged(ref) { - if ( - !this.parentVM.formState.loading && - !this.parentVM.formState.readonly - ) { - window.$gz.form.fieldValueChanged(this.parentVM, ref); + if (!this.pvm.formState.loading && !this.pvm.formState.readonly) { + window.$gz.form.fieldValueChanged(this.pvm, ref); } } }, diff --git a/ayanova/src/components/work-order-address.vue b/ayanova/src/components/work-order-address.vue new file mode 100644 index 00000000..9a52a3da --- /dev/null +++ b/ayanova/src/components/work-order-address.vue @@ -0,0 +1,147 @@ + + diff --git a/ayanova/src/components/work-order-header.vue b/ayanova/src/components/work-order-header.vue index 83104221..dbbe1fc4 100644 --- a/ayanova/src/components/work-order-header.vue +++ b/ayanova/src/components/work-order-header.vue @@ -37,13 +37,7 @@ @input="fieldValueChanged('customerId')" > - + + + + + +