From 16e4e8f4a2d1df1f9a341594bec64ed4d0b90f9f Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 6 Jul 2021 23:14:09 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 2 ++ ayanova/src/components/work-order-items.vue | 15 +++++++++++++++ ayanova/src/views/svc-workorder.vue | 3 ++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 8f32b2d2..80a14cf4 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -423,6 +423,8 @@ todo: many biz objects are not using new PUT methodology CURRENTLY DOING: woitem selected: copy to wo + $ayiCopy + ""CopyToWorkOrder"" translation key allow to copy to any non locked workorder can filter by customer and defaults to current customer also presents current wo for when user wants to duplicate the woitem to the same wo diff --git a/ayanova/src/components/work-order-items.vue b/ayanova/src/components/work-order-items.vue index 02e92ed8..2f07d4a3 100644 --- a/ayanova/src/components/work-order-items.vue +++ b/ayanova/src/components/work-order-items.vue @@ -23,6 +23,18 @@ {{ $ay.t("New") }} + + + $ayiCopy + + {{ + $ay.t("CopyToWorkOrder") + }} + + $ayiTrashAlt @@ -815,6 +827,9 @@ export default { } }, methods: { + copyItem() { + alert("COPY"); + }, newItem() { let newIndex = this.value.items.length; diff --git a/ayanova/src/views/svc-workorder.vue b/ayanova/src/views/svc-workorder.vue index 8bf5c570..34ade3b1 100644 --- a/ayanova/src/views/svc-workorder.vue +++ b/ayanova/src/views/svc-workorder.vue @@ -2138,7 +2138,8 @@ async function fetchTranslatedText(vm) { "PartAssemblyList", "PartAssembly", "PartSerialNumbersAvailable", - "AddMultipleUnits" + "AddMultipleUnits", + "CopyToWorkOrder" ]); }