CHECKPOINT COMMIT - POST SERVICE BANK REMOVAL
Service bank feature removed from front, back and e2e testing mostly commented out in case need to add back again but in some places such as db schema it had to be removed entirely so refer here if adding back in again
This commit is contained in:
@@ -276,7 +276,7 @@
|
||||
></gz-date-time-picker>
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
<!-- <v-col
|
||||
v-if="form().showMe(this, 'UsesBanking')"
|
||||
cols="12"
|
||||
sm="6"
|
||||
@@ -304,7 +304,7 @@
|
||||
>
|
||||
</template>
|
||||
</v-checkbox>
|
||||
</v-col>
|
||||
</v-col> -->
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<v-checkbox
|
||||
v-model="obj.active"
|
||||
@@ -836,7 +836,7 @@ export default {
|
||||
headOfficeId: null,
|
||||
techNotes: null,
|
||||
accountNumber: null,
|
||||
usesBanking: false,
|
||||
//usesBanking: false,
|
||||
contractId: null,
|
||||
contractExpires: null,
|
||||
defaultServiceTemplateId: null,
|
||||
@@ -916,22 +916,22 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
canOpenServiceBank: function() {
|
||||
return this.obj.usesBanking == true && this.$route.params.recordid != 0;
|
||||
},
|
||||
openServiceBank: function() {
|
||||
if (this.canOpenServiceBank()) {
|
||||
this.$router.push({
|
||||
name: "service-banks",
|
||||
params: {
|
||||
aType: window.$gz.type.Customer,
|
||||
objectId: this.$route.params.recordid,
|
||||
viz: this.obj.name,
|
||||
icon: "$ayiAddressCard"
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
// canOpenServiceBank: function() {
|
||||
// return this.obj.usesBanking == true && this.$route.params.recordid != 0;
|
||||
// },
|
||||
// openServiceBank: function() {
|
||||
// if (this.canOpenServiceBank()) {
|
||||
// this.$router.push({
|
||||
// name: "service-banks",
|
||||
// params: {
|
||||
// aType: window.$gz.type.Customer,
|
||||
// objectId: this.$route.params.recordid,
|
||||
// viz: this.obj.name,
|
||||
// icon: "$ayiAddressCard"
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// },
|
||||
canSave: function() {
|
||||
return this.formState.valid && this.formState.dirty;
|
||||
},
|
||||
@@ -1577,7 +1577,7 @@ async function fetchTranslatedText(vm) {
|
||||
"HeadOffice",
|
||||
"CustomerTechNotes",
|
||||
"CustomerAccountNumber",
|
||||
"UsesBanking",
|
||||
//"UsesBanking",
|
||||
"Contract",
|
||||
"ContractExpires",
|
||||
"WorkOrderTemplate",
|
||||
|
||||
@@ -214,7 +214,7 @@
|
||||
></gz-date-time-picker>
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
<!-- <v-col
|
||||
v-if="form().showMe(this, 'UsesBanking')"
|
||||
cols="12"
|
||||
sm="6"
|
||||
@@ -242,7 +242,7 @@
|
||||
>
|
||||
</template></v-checkbox
|
||||
>
|
||||
</v-col>
|
||||
</v-col> -->
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<v-checkbox
|
||||
v-model="obj.active"
|
||||
@@ -741,7 +741,7 @@ export default {
|
||||
tags: [],
|
||||
webAddress: null,
|
||||
accountNumber: null,
|
||||
usesBanking: false,
|
||||
// usesBanking: false,
|
||||
contractId: null,
|
||||
contractExpires: null,
|
||||
phone1: null,
|
||||
@@ -820,22 +820,22 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
canOpenServiceBank: function() {
|
||||
return this.obj.usesBanking == true && this.$route.params.recordid != 0;
|
||||
},
|
||||
openServiceBank: function() {
|
||||
if (this.canOpenServiceBank()) {
|
||||
this.$router.push({
|
||||
name: "service-banks",
|
||||
params: {
|
||||
aType: window.$gz.type.HeadOffice,
|
||||
objectId: this.$route.params.recordid,
|
||||
viz: this.obj.name,
|
||||
icon: "$ayiSitemap"
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
// canOpenServiceBank: function() {
|
||||
// return this.obj.usesBanking == true && this.$route.params.recordid != 0;
|
||||
// },
|
||||
// openServiceBank: function() {
|
||||
// if (this.canOpenServiceBank()) {
|
||||
// this.$router.push({
|
||||
// name: "service-banks",
|
||||
// params: {
|
||||
// aType: window.$gz.type.HeadOffice,
|
||||
// objectId: this.$route.params.recordid,
|
||||
// viz: this.obj.name,
|
||||
// icon: "$ayiSitemap"
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// },
|
||||
canSave: function() {
|
||||
return this.formState.valid && this.formState.dirty;
|
||||
},
|
||||
@@ -1446,7 +1446,7 @@ async function fetchTranslatedText(vm) {
|
||||
"HeadOfficeNotes",
|
||||
"WebAddress",
|
||||
"HeadOfficeAccountNumber",
|
||||
"UsesBanking",
|
||||
//"UsesBanking",
|
||||
"Contract",
|
||||
"ContractExpires",
|
||||
"HeadOfficePhone1",
|
||||
|
||||
@@ -354,8 +354,8 @@ async function fetchTranslatedText(vm) {
|
||||
await window.$gz.translation.cacheTranslations([
|
||||
"TooManyResults",
|
||||
"NoResults",
|
||||
"Object",
|
||||
"ServiceBank"
|
||||
"Object"
|
||||
//, "ServiceBank"
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -369,10 +369,9 @@ async function populateSelectionLists(vm) {
|
||||
window.$gz.form.setErrorBoxErrors(vm);
|
||||
} else {
|
||||
vm.selectLists.objectTypes = res.data;
|
||||
//ServiceBank will appear in search results but is not a Core biz object so won't be added to list by server
|
||||
//and needs to be added manually here
|
||||
vm.selectLists.objectTypes.push({ name: vm.$ay.t("ServiceBank"), id: 55 });
|
||||
//servicebank?
|
||||
// // //ServiceBank will appear in search results but is not a Core biz object so won't be added to list by server
|
||||
// // //and needs to be added manually here
|
||||
// // vm.selectLists.objectTypes.push({ name: vm.$ay.t("ServiceBank"), id: 55 });
|
||||
window.$gz.form.addNoSelectionItem(vm.selectLists.objectTypes);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
></gz-date-time-picker>
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
<!-- <v-col
|
||||
v-if="form().showMe(this, 'UsesBanking')"
|
||||
cols="12"
|
||||
sm="6"
|
||||
@@ -195,7 +195,7 @@
|
||||
>
|
||||
</template>
|
||||
</v-checkbox>
|
||||
</v-col>
|
||||
</v-col> -->
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'UnitMetered')"
|
||||
@@ -854,7 +854,7 @@ export default {
|
||||
overrideModelWarranty: false,
|
||||
warrantyLength: null,
|
||||
warrantyTerms: null,
|
||||
usesBanking: false,
|
||||
//usesBanking: false,
|
||||
contractId: null,
|
||||
contractExpires: null,
|
||||
metered: false,
|
||||
@@ -920,22 +920,22 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
canOpenServiceBank: function() {
|
||||
return this.obj.usesBanking == true && this.$route.params.recordid != 0;
|
||||
},
|
||||
openServiceBank: function() {
|
||||
if (this.canOpenServiceBank()) {
|
||||
this.$router.push({
|
||||
name: "service-banks",
|
||||
params: {
|
||||
aType: window.$gz.type.Unit,
|
||||
objectId: this.$route.params.recordid,
|
||||
viz: this.obj.serial,
|
||||
icon: "$ayiFan"
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
// canOpenServiceBank: function() {
|
||||
// return this.obj.usesBanking == true && this.$route.params.recordid != 0;
|
||||
// },
|
||||
// openServiceBank: function() {
|
||||
// if (this.canOpenServiceBank()) {
|
||||
// this.$router.push({
|
||||
// name: "service-banks",
|
||||
// params: {
|
||||
// aType: window.$gz.type.Unit,
|
||||
// objectId: this.$route.params.recordid,
|
||||
// viz: this.obj.serial,
|
||||
// icon: "$ayiFan"
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// },
|
||||
canOpenMeter: function() {
|
||||
return this.obj.metered == true && this.$route.params.recordid != 0;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user