From 4a7ccc002aebce17cc83df8bdbbad12748564258 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 21 Jan 2022 20:54:30 +0000 Subject: [PATCH] re-worked default minutes global setting and docs --- ayanova/devdocs/todo.txt | 1 + ayanova/src/components/pm-item-labors.vue | 2 +- ayanova/src/components/pm-item-scheduled-users.vue | 2 +- ayanova/src/components/pm-item-travels.vue | 2 +- ayanova/src/components/quote-item-labors.vue | 2 +- ayanova/src/components/quote-item-scheduled-users.vue | 2 +- ayanova/src/components/quote-item-travels.vue | 2 +- ayanova/src/components/work-order-item-labors.vue | 2 +- ayanova/src/components/work-order-item-scheduled-users.vue | 2 +- ayanova/src/components/work-order-item-travels.vue | 2 +- 10 files changed, 10 insertions(+), 9 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index d5b73af9..14f5a41b 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -847,5 +847,6 @@ BUILD 8.0.0-beta.0.12 CHANGES OF NOTE - Client error log changed first column from epoch timestamp to local time instead so easier to troubleshoot with users as it's their own time and date easily readable - Changed "Scheduleable user notes" to "Service tech notes" in all stock translations - case 4084 fixed Intl.DateTimeFormat... reference issues in my code, and also see notes on how to fix remaining regular javascript issues for each report +- case 4082 no changes see notes - TODO: 1 before this release handlebars utilities add to report edit functions https://handlebarsjs.com/api-reference/utilities.html \ No newline at end of file diff --git a/ayanova/src/components/pm-item-labors.vue b/ayanova/src/components/pm-item-labors.vue index d05cbdea..4c90cb78 100644 --- a/ayanova/src/components/pm-item-labors.vue +++ b/ayanova/src/components/pm-item-labors.vue @@ -908,7 +908,7 @@ export default { const globalMinutes = window.$gz.store.state.globalSettings.workLaborScheduleDefaultMinutes; - if (isNew && dStop == null) { + if (isNew) { if (globalMinutes != 0) { //set stop date based on start date and global minutes this.value.items[this.activeWoItemIndex].labors[ diff --git a/ayanova/src/components/pm-item-scheduled-users.vue b/ayanova/src/components/pm-item-scheduled-users.vue index ce92f281..6f31cdc9 100644 --- a/ayanova/src/components/pm-item-scheduled-users.vue +++ b/ayanova/src/components/pm-item-scheduled-users.vue @@ -623,7 +623,7 @@ export default { const globalMinutes = window.$gz.store.state.globalSettings.workLaborScheduleDefaultMinutes; - if (isNew && dStop == null) { + if (isNew) { if (globalMinutes != 0) { //set stop date based on start date and global minutes this.value.items[this.activeWoItemIndex].scheduledUsers[ diff --git a/ayanova/src/components/pm-item-travels.vue b/ayanova/src/components/pm-item-travels.vue index 468ecb8b..12b8ef19 100644 --- a/ayanova/src/components/pm-item-travels.vue +++ b/ayanova/src/components/pm-item-travels.vue @@ -939,7 +939,7 @@ export default { const globalMinutes = window.$gz.store.state.globalSettings.workOrderTravelDefaultMinutes; - if (isNew && dStop == null) { + if (isNew) { if (globalMinutes != 0) { //set stop date based on start date and global minutes this.value.items[this.activeWoItemIndex].travels[ diff --git a/ayanova/src/components/quote-item-labors.vue b/ayanova/src/components/quote-item-labors.vue index 83ced50f..333be871 100644 --- a/ayanova/src/components/quote-item-labors.vue +++ b/ayanova/src/components/quote-item-labors.vue @@ -909,7 +909,7 @@ export default { const globalMinutes = window.$gz.store.state.globalSettings.workLaborScheduleDefaultMinutes; - if (isNew && dStop == null) { + if (isNew) { if (globalMinutes != 0) { //set stop date based on start date and global minutes this.value.items[this.activeWoItemIndex].labors[ diff --git a/ayanova/src/components/quote-item-scheduled-users.vue b/ayanova/src/components/quote-item-scheduled-users.vue index d3ebb044..b14cadcb 100644 --- a/ayanova/src/components/quote-item-scheduled-users.vue +++ b/ayanova/src/components/quote-item-scheduled-users.vue @@ -623,7 +623,7 @@ export default { const globalMinutes = window.$gz.store.state.globalSettings.workLaborScheduleDefaultMinutes; - if (isNew && dStop == null) { + if (isNew) { if (globalMinutes != 0) { //set stop date based on start date and global minutes this.value.items[this.activeWoItemIndex].scheduledUsers[ diff --git a/ayanova/src/components/quote-item-travels.vue b/ayanova/src/components/quote-item-travels.vue index b746e9ac..8de65ebc 100644 --- a/ayanova/src/components/quote-item-travels.vue +++ b/ayanova/src/components/quote-item-travels.vue @@ -939,7 +939,7 @@ export default { const globalMinutes = window.$gz.store.state.globalSettings.workOrderTravelDefaultMinutes; - if (isNew && dStop == null) { + if (isNew) { if (globalMinutes != 0) { //set stop date based on start date and global minutes this.value.items[this.activeWoItemIndex].travels[ diff --git a/ayanova/src/components/work-order-item-labors.vue b/ayanova/src/components/work-order-item-labors.vue index 71ab2828..7cf43fdc 100644 --- a/ayanova/src/components/work-order-item-labors.vue +++ b/ayanova/src/components/work-order-item-labors.vue @@ -909,7 +909,7 @@ export default { const globalMinutes = window.$gz.store.state.globalSettings.workLaborScheduleDefaultMinutes; - if (isNew && dStop == null) { + if (isNew) { if (globalMinutes != 0) { //set stop date based on start date and global minutes this.value.items[this.activeWoItemIndex].labors[ diff --git a/ayanova/src/components/work-order-item-scheduled-users.vue b/ayanova/src/components/work-order-item-scheduled-users.vue index 4dc1a3c3..bc2c807b 100644 --- a/ayanova/src/components/work-order-item-scheduled-users.vue +++ b/ayanova/src/components/work-order-item-scheduled-users.vue @@ -623,7 +623,7 @@ export default { const globalMinutes = window.$gz.store.state.globalSettings.workLaborScheduleDefaultMinutes; - if (isNew && dStop == null) { + if (isNew) { if (globalMinutes != 0) { //set stop date based on start date and global minutes this.value.items[this.activeWoItemIndex].scheduledUsers[ diff --git a/ayanova/src/components/work-order-item-travels.vue b/ayanova/src/components/work-order-item-travels.vue index d9ffbd42..4034d4d5 100644 --- a/ayanova/src/components/work-order-item-travels.vue +++ b/ayanova/src/components/work-order-item-travels.vue @@ -942,7 +942,7 @@ export default { const globalMinutes = window.$gz.store.state.globalSettings.workOrderTravelDefaultMinutes; - if (isNew && dStop == null) { + if (isNew) { if (globalMinutes != 0) { //set stop date based on start date and global minutes this.value.items[this.activeWoItemIndex].travels[