From 07ff575ad099f3baeca826bfd442ec964df059e2 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 30 Dec 2020 17:02:40 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 6 +- ayanova/src/api/biz-role-rights.js | 1 + ayanova/src/api/initialize.js | 9 + ayanova/src/api/translation.js | 1 + ayanova/src/router.js | 12 + ayanova/src/views/acc-service-bank.vue | 873 ++++++++++++++++++++++++ ayanova/src/views/acc-service-banks.vue | 234 +++++++ ayanova/src/views/cust-customer.vue | 37 +- ayanova/src/views/home-reminder.vue | 2 +- 9 files changed, 1169 insertions(+), 6 deletions(-) create mode 100644 ayanova/src/views/acc-service-bank.vue create mode 100644 ayanova/src/views/acc-service-banks.vue diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 7d8f14e1..565dc1b3 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -16,9 +16,9 @@ todo: NEXT DEPLOY TO DEVOPS attach a photo from phone, no error just does nothin worked here locally latest build retest on server after next deploy +todo: test v8migrate on big shitty database - - +todo: client gzutil:iconfortype missing all the recent new objects (mostly) @@ -36,7 +36,7 @@ todo: actual customer reports so can figure out datalist for bringing other name CURRENTLY DOING: ServiceBank - (note, see cases, has changed, affects client, ho, unit) + diff --git a/ayanova/src/api/biz-role-rights.js b/ayanova/src/api/biz-role-rights.js index 9059d289..88add877 100644 --- a/ayanova/src/api/biz-role-rights.js +++ b/ayanova/src/api/biz-role-rights.js @@ -20,6 +20,7 @@ export default { ServiceRate: { Change: 66, ReadFullRecord: 98701, Select: 131071 }, TravelRate: { Change: 66, ReadFullRecord: 98701, Select: 131071 }, TaxCode: { Change: 66, ReadFullRecord: 98701, Select: 131071 }, + ServiceBank: { Change: 74, ReadFullRecord: 98693, Select: 131071 }, Quote: { Change: 33098, ReadFullRecord: 65669, Select: 131071 }, QuoteItem: { Change: 33098, ReadFullRecord: 65669, Select: 131071 }, QuoteTemplate: { Change: 33098, ReadFullRecord: 65669, Select: 131071 }, diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index 0b09c132..1ea06a00 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -458,6 +458,15 @@ function initNavPanel() { sub = []; + if (window.$gz.role.canOpen(window.$gz.type.ServiceBank)) { + sub.push({ + title: "ServiceBankList", + icon: "$ayiCarBattery", + route: "/acc-service-banks", + key: key++ + }); + } + //SERVICE RATES if (window.$gz.role.canOpen(window.$gz.type.ServiceRate)) { sub.push({ diff --git a/ayanova/src/api/translation.js b/ayanova/src/api/translation.js index 4bd5c33d..fc7f65ec 100644 --- a/ayanova/src/api/translation.js +++ b/ayanova/src/api/translation.js @@ -170,6 +170,7 @@ export default { "TaxCodeList", "ServiceRateList", "TravelRateList", + "ServiceBankList", "Administration", "Operations", "Attachments", diff --git a/ayanova/src/router.js b/ayanova/src/router.js index e4279275..9a85fcd3 100644 --- a/ayanova/src/router.js +++ b/ayanova/src/router.js @@ -453,6 +453,18 @@ export default new Router({ component: () => import(/* webpackChunkName: "acc" */ "./views/acc-tax-code.vue") }, + { + path: "/acc-service-banks/:objectType?/:objectId?", + name: "service-banks", + component: () => + import(/* webpackChunkName: "acc" */ "./views/acc-service-banks.vue") + }, + { + path: "/acc-service-banks/:recordid/:objectType?/:objectId?", + name: "service-bank-edit", + component: () => + import(/* webpackChunkName: "acc" */ "./views/acc-service-bank.vue") + }, //######################### ADMINISTRATION GROUP ##################################### { path: "/adm-global-settings", diff --git a/ayanova/src/views/acc-service-bank.vue b/ayanova/src/views/acc-service-bank.vue new file mode 100644 index 00000000..074f9712 --- /dev/null +++ b/ayanova/src/views/acc-service-bank.vue @@ -0,0 +1,873 @@ + + + diff --git a/ayanova/src/views/acc-service-banks.vue b/ayanova/src/views/acc-service-banks.vue new file mode 100644 index 00000000..6d61ace0 --- /dev/null +++ b/ayanova/src/views/acc-service-banks.vue @@ -0,0 +1,234 @@ + + + diff --git a/ayanova/src/views/cust-customer.vue b/ayanova/src/views/cust-customer.vue index 683637ad..fb1f1b98 100644 --- a/ayanova/src/views/cust-customer.vue +++ b/ayanova/src/views/cust-customer.vue @@ -311,10 +311,24 @@ data-cy="usesBanking" :error-messages="form().serverErrors(this, 'usesBanking')" @change="fieldValueChanged('usesBanking')" - > + > + + - +