This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -2138,7 +2138,8 @@ async function fetchTranslatedText(vm) {
|
||||
"PartAssemblyList",
|
||||
"PartAssembly",
|
||||
"PartSerialNumbersAvailable",
|
||||
"AddMultipleUnits"
|
||||
"AddMultipleUnits",
|
||||
"CopyToWorkOrder"
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user