This commit is contained in:
2021-07-06 23:14:09 +00:00
parent bed6c24249
commit 16e4e8f4a2
3 changed files with 19 additions and 1 deletions

View File

@@ -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

View File

@@ -23,6 +23,18 @@
<v-list-item-title>{{ $ay.t("New") }}</v-list-item-title>
</v-list-item>
<v-list-item
v-if="hasData && hasSelection && canAdd"
@click="copyItem"
>
<v-list-item-icon>
<v-icon>$ayiCopy</v-icon>
</v-list-item-icon>
<v-list-item-title>{{
$ay.t("CopyToWorkOrder")
}}</v-list-item-title>
</v-list-item>
<v-list-item v-if="canDelete && !isDeleted" @click="deleteItem">
<v-list-item-icon>
<v-icon>$ayiTrashAlt</v-icon>
@@ -815,6 +827,9 @@ export default {
}
},
methods: {
copyItem() {
alert("COPY");
},
newItem() {
let newIndex = this.value.items.length;

View File

@@ -2138,7 +2138,8 @@ async function fetchTranslatedText(vm) {
"PartAssemblyList",
"PartAssembly",
"PartSerialNumbersAvailable",
"AddMultipleUnits"
"AddMultipleUnits",
"CopyToWorkOrder"
]);
}