This commit is contained in:
@@ -548,6 +548,9 @@ part requests do not migrate the purchase order id link if there was one in v7;
|
|||||||
ultimately I can fix up the inventory balance at the end no matter what gets imported, it's just that v8 takes all inventory affecting things very seriously so it's going to
|
ultimately I can fix up the inventory balance at the end no matter what gets imported, it's just that v8 takes all inventory affecting things very seriously so it's going to
|
||||||
leave a lot of artifacts in the db if it has to adjust and add and remove tons of stuff which I was hoping to avoid. Will have to give it a think.
|
leave a lot of artifacts in the db if it has to adjust and add and remove tons of stuff which I was hoping to avoid. Will have to give it a think.
|
||||||
|
|
||||||
|
|
||||||
|
po workorderitempart request selection dialog missing stubbed out as todo
|
||||||
|
where you select part requests that are open to order
|
||||||
meter reading
|
meter reading
|
||||||
============================
|
============================
|
||||||
|
|
||||||
|
|||||||
@@ -369,14 +369,25 @@
|
|||||||
<v-dialog v-model="editPoItemDialog">
|
<v-dialog v-model="editPoItemDialog">
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title>
|
<v-card-title>
|
||||||
<span
|
<template
|
||||||
class="accent--text"
|
|
||||||
v-if="
|
v-if="
|
||||||
obj.items[editPoItemIndex].workorderItemPartRequestId != null
|
obj.items[editPoItemIndex].workorderItemPartRequestId != null
|
||||||
"
|
"
|
||||||
>{{ $ay.t("WorkOrderItemPartRequest") }}</span
|
>
|
||||||
></v-card-title
|
<v-btn text @click="openWOItemPartRequest()">
|
||||||
>
|
<v-icon>$ayiParachuteBox</v-icon>
|
||||||
|
|
||||||
|
<span
|
||||||
|
class="text-h6 accent--text"
|
||||||
|
@click="openWOItemPartRequest()"
|
||||||
|
>{{ $ay.t("WorkOrderItemPartRequest") }}
|
||||||
|
{{
|
||||||
|
obj.items[editPoItemIndex].workorderItemPartRequestViz
|
||||||
|
}}</span
|
||||||
|
></v-btn
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</v-card-title>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
@@ -839,30 +850,6 @@ export default {
|
|||||||
vm.formState.readOnly = !vm.rights.change;
|
vm.formState.readOnly = !vm.rights.change;
|
||||||
window.$gz.eventBus.$on("menu-click", clickHandler);
|
window.$gz.eventBus.$on("menu-click", clickHandler);
|
||||||
|
|
||||||
// //id 0 means create or duplicate to new
|
|
||||||
// if (vm.$route.params.recordid != 0) {
|
|
||||||
// //is there already an obj from a prior operation?
|
|
||||||
// if (this.$route.params.obj) {
|
|
||||||
// //yes, no need to fetch it
|
|
||||||
// this.obj = this.$route.params.obj;
|
|
||||||
// window.$gz.form.setFormState({
|
|
||||||
// vm: vm,
|
|
||||||
// loading: false
|
|
||||||
// });
|
|
||||||
// } else {
|
|
||||||
// await vm.getDataFromApi(vm.$route.params.recordid); //let getdata handle loading
|
|
||||||
// }
|
|
||||||
// } else {
|
|
||||||
// window.$gz.form.setFormState({
|
|
||||||
// vm: vm,
|
|
||||||
// loading: false
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
// window.$gz.form.setFormState({
|
|
||||||
// vm: vm,
|
|
||||||
// dirty: false,
|
|
||||||
// valid: true
|
|
||||||
// });
|
|
||||||
//---------------------------------
|
//---------------------------------
|
||||||
let setDirty = false;
|
let setDirty = false;
|
||||||
let setValid = true;
|
let setValid = true;
|
||||||
@@ -883,24 +870,6 @@ export default {
|
|||||||
this.obj.id = 0;
|
this.obj.id = 0;
|
||||||
this.obj.serial = 0;
|
this.obj.serial = 0;
|
||||||
|
|
||||||
/*
|
|
||||||
CopyObject.Copy(dbObject, newObject, "Wiki,Serial");
|
|
||||||
newObject.Id = 0;
|
|
||||||
newObject.Concurrency = 0;
|
|
||||||
newObject.Status = PurchaseOrderStatus.OpenNotYetOrdered;
|
|
||||||
foreach (var item in newObject.Items)
|
|
||||||
{
|
|
||||||
item.Id = 0;
|
|
||||||
item.Concurrency = 0;
|
|
||||||
item.QuantityReceived = 0;
|
|
||||||
item.ReceivedCost = 0;
|
|
||||||
item.ReceivedDate = null;
|
|
||||||
item.PurchaseOrderId = 0;
|
|
||||||
item.WorkorderItemPartRequestId = null;
|
|
||||||
item.PartRequestedById = null;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
vm.obj.status = 1; // OpenNotYetOrdered = 1,
|
vm.obj.status = 1; // OpenNotYetOrdered = 1,
|
||||||
vm.obj.items.forEach(z => {
|
vm.obj.items.forEach(z => {
|
||||||
z.id = 0;
|
z.id = 0;
|
||||||
@@ -1308,6 +1277,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
openWOItemPartRequest() {
|
||||||
|
window.$gz.eventBus.$emit("openobject", {
|
||||||
|
type: window.$gz.type.WorkOrderItemPartRequest,
|
||||||
|
id: this.obj.items[this.editPoItemIndex].workorderItemPartRequestId
|
||||||
|
});
|
||||||
|
},
|
||||||
appendSelectedRestocks() {
|
appendSelectedRestocks() {
|
||||||
let itemAdded = false;
|
let itemAdded = false;
|
||||||
this.selectedRestocks.forEach(z => {
|
this.selectedRestocks.forEach(z => {
|
||||||
@@ -1616,44 +1591,6 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// ,
|
|
||||||
// async duplicate() {
|
|
||||||
// let vm = this;
|
|
||||||
// if (!vm.canDuplicate || vm.$route.params.recordid == 0) {
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
// window.$gz.form.setFormState({
|
|
||||||
// vm: vm,
|
|
||||||
// loading: true
|
|
||||||
// });
|
|
||||||
// let url = API_BASE_URL + "duplicate/" + vm.$route.params.recordid;
|
|
||||||
|
|
||||||
// try {
|
|
||||||
// window.$gz.form.deleteAllErrorBoxErrors(vm);
|
|
||||||
// let res = await window.$gz.api.upsert(url);
|
|
||||||
// if (res.error) {
|
|
||||||
// vm.formState.serverError = res.error;
|
|
||||||
// window.$gz.form.setErrorBoxErrors(vm);
|
|
||||||
// } else {
|
|
||||||
// //Navigate to new record
|
|
||||||
// this.$router.push({
|
|
||||||
// name: "inv-purchase-order",
|
|
||||||
// params: {
|
|
||||||
// recordid: res.data.id,
|
|
||||||
// obj: res.data // Pass data object to new form
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
// } catch (ex) {
|
|
||||||
// window.$gz.errorHandler.handleFormError(ex, vm);
|
|
||||||
// } finally {
|
|
||||||
// window.$gz.form.setFormState({
|
|
||||||
// vm: vm,
|
|
||||||
// loading: false
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//end methods
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user