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" ]); }