From 8e6ae77ceb3109824b607543939e59c0e445a33f Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 7 Jul 2021 19:14:01 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 4 +++- .../src/components/work-order-item-labors.vue | 18 ------------------ ayanova/src/views/svc-workorder.vue | 3 ++- 3 files changed, 5 insertions(+), 20 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index d5a48057..e41603cd 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -1228,7 +1228,7 @@ BUILD CHANGES OF NOTE BUILD 114 -- Copy work order item implemented to recreate functionality of v7 +- Copy work order item implemented (was v7 feature) Can now Copy woitem to *any* work order Completely new functionality not in v7 Can also copy to the *same* workorder which is handy to duplicate a bunch of woitems that are the same @@ -1238,6 +1238,8 @@ BUILD 114 Note: v7 "move" woitem feature is intentionally not implemented user can replicate by copy and then delete source woitem +- WorkOrderItemScheduledUser convert to labor implemented (was v7 feature) +- workorderitemlabor "Append tasks" implemented (new feature requested) diff --git a/ayanova/src/components/work-order-item-labors.vue b/ayanova/src/components/work-order-item-labors.vue index 88392520..b706cb47 100644 --- a/ayanova/src/components/work-order-item-labors.vue +++ b/ayanova/src/components/work-order-item-labors.vue @@ -489,36 +489,18 @@ export default { }, methods: { appendTasks() { - //if no tasks then nothing to do const tasks = this.value.items[this.activeWoItemIndex].tasks; if (tasks.length == 0) { return; } - const l = this.value.items[this.activeWoItemIndex].labors[ this.activeItemIndex ]; - let at = ""; tasks.forEach(z => { at += `${z.task} - ${z.statusViz}\n`; }); l.serviceDetails += `\n${at}`; - - // this.value.items[this.activeWoItemIndex].tasks.push({ - // id: 0, - // concurrency: 0, - // sequence: newIndex + 1, //indexes are zero based but sequences are visible to user so 1 based - // task: undefined, //to trigger validation on new - // status: 1, //incomplete==1 - // completedByUserId: null, - // completedDate: null, - // isDirty: true, - // workOrderItemId: this.value.items[this.activeWoItemIndex].id, - // uid: Date.now(), - // completedByUserViz: null, - // statusViz: null - // }); }, userChange(newName) { this.value.items[this.activeWoItemIndex].labors[ diff --git a/ayanova/src/views/svc-workorder.vue b/ayanova/src/views/svc-workorder.vue index 5005bc48..394c7134 100644 --- a/ayanova/src/views/svc-workorder.vue +++ b/ayanova/src/views/svc-workorder.vue @@ -2173,7 +2173,8 @@ async function fetchTranslatedText(vm) { "PartSerialNumbersAvailable", "AddMultipleUnits", "CopyToWorkOrder", - "WorkOrderConvertScheduledUserToLabor" + "WorkOrderConvertScheduledUserToLabor", + "AppendTasks" ]); }