diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt
index 626a9767..3e2c2a18 100644
--- a/ayanova/devdocs/todo.txt
+++ b/ayanova/devdocs/todo.txt
@@ -11,8 +11,13 @@
Customer UI
- CSR techs ui accept to wo etc
- CSR V8Migrate
+ List (customer)
+ create new (customer)
+ TEST all as HO user as well as Cust user
+ HO variant picklist for customer specfiically adn other shit like unit lists etc
+
+ CSR V8Migrate
+
GetLastReport is not implemented anywhere but is useful adn key
new testing cases
Schedule form
@@ -717,3 +722,4 @@ BUILD 130 CHANGES OF NOTE
- evalution seed data generation: removed redundant initial call to erase database from client as well as redundant check for existing data before prompting to erase
- CustomerServiceRequest Service user interface: completed with accept and reject fully coded, now has link to wo and workorderitem has link back to csr, ready for reporting
+- About form: fixed bug that allowed customer / ho type user to view license info
diff --git a/ayanova/src/views/customer-csr-edit.vue b/ayanova/src/views/customer-csr-edit.vue
index 613128c1..19f72d94 100644
--- a/ayanova/src/views/customer-csr-edit.vue
+++ b/ayanova/src/views/customer-csr-edit.vue
@@ -5,11 +5,13 @@
-
- UNDER CONSTRUCTION
-
- Copied from service csr and not modified yet for customer usage
-
+
@@ -26,7 +29,6 @@
:color="priorityColor()"
:item-color="priorityColor()"
v-model="obj.priority"
- readonly
:items="selectLists.priorities"
item-text="name"
item-value="id"
@@ -36,50 +38,10 @@
append-icon=""
>
- $ayiCircle
-
+ > $ayiCircle
-
-
-
-
-
-
- TODO: INSERT GLOBAL HTML formatted INFO HERE FROM GLOBAL SETTINGS IF
- NON-EMPTY
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
@@ -286,6 +286,12 @@ export default {
await vm.getDataFromApi(vm.$route.params.recordid); //let getdata handle loading
}
} else {
+ //NEW
+ //
+ if (this.$store.state.userType == 3) {
+ //Customer specific user
+ this.obj.customerId = this.$store.state.customerRights.entityId;
+ }
window.$gz.form.setFormState({
vm: vm,
loading: false
@@ -366,7 +372,7 @@ export default {
customerId: null,
unitId: null,
workOrderItemId: null,
- requestedByUserId: null, //window.$gz.store.state.userId, for outside version of this form
+ requestedByUserId: this.$store.state.userId, //window.$gz.store.state.userId, for outside version of this form
customerReferenceNumber: null,
status: 0,
priority: 0
@@ -755,13 +761,14 @@ function generateMenu(vm) {
readOnly: vm.formState.readOnly || vm.obj.status != 0,
icon: "$ayiConciergeBell",
title: "CustomerServiceRequest",
- helpUrl: "svc-csr",
- formData: {
- ayaType: window.$gz.type.CustomerServiceRequest,
- recordId: vm.$route.params.recordid,
- formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
- recordName: vm.obj.name
- },
+ helpUrl: "customer-csr",
+ hideSearch: true,
+ // formData: {
+ // ayaType: window.$gz.type.CustomerServiceRequest,
+ // recordId: vm.$route.params.recordid,
+ // formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
+ // recordName: vm.obj.name
+ // },
menuItems: []
};
@@ -789,50 +796,50 @@ function generateMenu(vm) {
});
}
- //REPORTS
- //Report not Print, print is a further option
- menuOptions.menuItems.push({
- title: "Report",
- icon: "$ayiFileAlt",
- key: FORM_KEY + ":report",
- vm: vm
- });
+ // //REPORTS
+ // //Report not Print, print is a further option
+ // menuOptions.menuItems.push({
+ // title: "Report",
+ // icon: "$ayiFileAlt",
+ // key: FORM_KEY + ":report",
+ // vm: vm
+ // });
- //get last report selected
- let lastReport = window.$gz.form.getLastReport(FORM_KEY);
- if (lastReport != null) {
- menuOptions.menuItems.push({
- title: lastReport.name,
- icon: "$ayiFileAlt",
- key: FORM_KEY + ":report:" + lastReport.id,
- vm: vm
- });
- }
+ // //get last report selected
+ // let lastReport = window.$gz.form.getLastReport(FORM_KEY);
+ // if (lastReport != null) {
+ // menuOptions.menuItems.push({
+ // title: lastReport.name,
+ // icon: "$ayiFileAlt",
+ // key: FORM_KEY + ":report:" + lastReport.id,
+ // vm: vm
+ // });
+ // }
- menuOptions.menuItems.push({ divider: true, inset: false });
+ // menuOptions.menuItems.push({ divider: true, inset: false });
- if (vm.obj.status == 0) {
- menuOptions.menuItems.push({
- title: "CustomerServiceRequestAcceptToNew",
- icon: null,
- key: FORM_KEY + ":acceptnew",
- vm: vm
- });
+ // if (vm.obj.status == 0) {
+ // menuOptions.menuItems.push({
+ // title: "CustomerServiceRequestAcceptToNew",
+ // icon: null,
+ // key: FORM_KEY + ":acceptnew",
+ // vm: vm
+ // });
- menuOptions.menuItems.push({
- title: "CustomerServiceRequestAcceptToExisting",
- icon: null,
- key: FORM_KEY + ":acceptexisting",
- vm: vm
- });
+ // menuOptions.menuItems.push({
+ // title: "CustomerServiceRequestAcceptToExisting",
+ // icon: null,
+ // key: FORM_KEY + ":acceptexisting",
+ // vm: vm
+ // });
- menuOptions.menuItems.push({
- title: "CustomerServiceRequestReject",
- icon: null,
- key: FORM_KEY + ":reject",
- vm: vm
- });
- }
+ // menuOptions.menuItems.push({
+ // title: "CustomerServiceRequestReject",
+ // icon: null,
+ // key: FORM_KEY + ":reject",
+ // vm: vm
+ // });
+ // }
menuOptions.menuItems.push({ divider: true, inset: false });