diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index d2a98cfa..16bf99ce 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -65,6 +65,13 @@ todo: input type email url phone number etc supported on device to activate? ............................................................ + +{"offset":0,"limit":10,"dataListKey":"CustomerNoteDataList","listView":"[{\"fld\":\"username\"},{\"fld\":\"notedate\"},{\"fld\":\"notes\"}]","metaView":"[{\"fld\":\"metacustomer\",\"filter\":{\"items\":[{\"op\":\"=\",\"value\":\"100\"}]}}]"} +working: +{"offset":0,"limit":10,"dataListKey":"CustomerNoteDataList","listView":"[{\"fld\":\"username\"},{\"fld\":\"notedate\"},{\"fld\":\"notes\"}]","metaView":"[{\"fld\":\"metacustomer\",\"filter\":{\"items\":[{\"op\":\"=\",\"value\":100}]}}]"} + + + CURRENTLY WORKING ON: Customer OUTSTANDING diff --git a/ayanova/src/api/biz-role-rights.js b/ayanova/src/api/biz-role-rights.js index def8e3a1..c4150cc3 100644 --- a/ayanova/src/api/biz-role-rights.js +++ b/ayanova/src/api/biz-role-rights.js @@ -6,6 +6,7 @@ */ export default { Customer: { Change: 33098, ReadFullRecord: 65669, Select: 131071 }, + CustomerNote: { Change: 33098, ReadFullRecord: 65669, Select: 131071 }, Contract: { Change: 33098, ReadFullRecord: 65669, Select: 131071 }, HeadOffice: { Change: 33098, ReadFullRecord: 65669, Select: 131071 }, LoanUnit: { Change: 33098, ReadFullRecord: 65669, Select: 131071 }, diff --git a/ayanova/src/views/cust-customer-note.vue b/ayanova/src/views/cust-customer-note.vue index bf34da4e..16906f14 100644 --- a/ayanova/src/views/cust-customer-note.vue +++ b/ayanova/src/views/cust-customer-note.vue @@ -64,7 +64,7 @@ export default { try { await initForm(vm); - vm.rights = window.$gz.role.getRights(window.$gz.type.Customer); + vm.rights = window.$gz.role.getRights(window.$gz.type.CustomerNote); vm.formState.readOnly = !vm.rights.change; window.$gz.eventBus.$on("menu-click", clickHandler); this.customername = this.$route.params.customername; diff --git a/ayanova/src/views/cust-customer-notes.vue b/ayanova/src/views/cust-customer-notes.vue index f978401b..d5ff9aec 100644 --- a/ayanova/src/views/cust-customer-notes.vue +++ b/ayanova/src/views/cust-customer-notes.vue @@ -34,7 +34,7 @@ const FORM_KEY = "cust-customer-notes"; export default { created() { this.customername = this.$route.params.customername; - this.customerId = this.$route.params.customerid; + this.customerId = parseInt(this.$route.params.customerid); this.metaView = JSON.stringify([ { fld: "metacustomer", @@ -42,7 +42,7 @@ export default { } ]); - this.rights = window.$gz.role.getRights(window.$gz.type.Customer); + this.rights = window.$gz.role.getRights(window.$gz.type.CustomerNote); window.$gz.eventBus.$on("menu-click", clickHandler); generateMenu(this); },