This commit is contained in:
@@ -433,6 +433,8 @@ CURRENTLY DOING:
|
||||
"Move" not required due to user being able to just delete a woitem on the source effectively replicating a move??
|
||||
or is move a common use-case for this?
|
||||
|
||||
bugbug?: duplicate going to same workroder item id not cleared??
|
||||
|
||||
|
||||
TODO 2 (all 2's): V7 features on wo I haven't coded yet
|
||||
|
||||
|
||||
@@ -89,20 +89,24 @@ export default {
|
||||
cp.id = 0;
|
||||
cp.concurrency = 0;
|
||||
cp.uid = Date.now();
|
||||
cp.workOrderId = this.obj.id;
|
||||
cp.isDirty = true;
|
||||
cp.sequence = this.obj.items.length + 1;
|
||||
cp.expenses.forEach(x => {
|
||||
x.id = 0;
|
||||
x.workOrderItemId = 0;
|
||||
x.concurrency = undefined;
|
||||
x.isDirty = true;
|
||||
});
|
||||
cp.labors.forEach(x => {
|
||||
x.id = 0;
|
||||
x.workOrderItemId = 0;
|
||||
x.concurrency = undefined;
|
||||
x.isDirty = true;
|
||||
});
|
||||
cp.loans.forEach(x => {
|
||||
x.id = 0;
|
||||
x.workOrderItemId = 0;
|
||||
x.concurrency = undefined;
|
||||
x.isDirty = true;
|
||||
x.cost = 0;
|
||||
@@ -110,6 +114,7 @@ export default {
|
||||
});
|
||||
cp.parts.forEach(x => {
|
||||
x.id = 0;
|
||||
x.workOrderItemId = 0;
|
||||
x.concurrency = undefined;
|
||||
x.isDirty = true;
|
||||
x.cost = 0;
|
||||
@@ -118,26 +123,31 @@ export default {
|
||||
|
||||
cp.scheduledUsers.forEach(x => {
|
||||
x.id = 0;
|
||||
x.workOrderItemId = 0;
|
||||
x.concurrency = undefined;
|
||||
x.isDirty = true;
|
||||
});
|
||||
cp.tasks.forEach(x => {
|
||||
x.id = 0;
|
||||
x.workOrderItemId = 0;
|
||||
x.concurrency = undefined;
|
||||
x.isDirty = true;
|
||||
});
|
||||
cp.travels.forEach(x => {
|
||||
x.id = 0;
|
||||
x.workOrderItemId = 0;
|
||||
x.concurrency = undefined;
|
||||
x.isDirty = true;
|
||||
});
|
||||
cp.units.forEach(x => {
|
||||
x.id = 0;
|
||||
x.workOrderItemId = 0;
|
||||
x.concurrency = undefined;
|
||||
x.isDirty = true;
|
||||
});
|
||||
cp.outsideServices.forEach(x => {
|
||||
x.id = 0;
|
||||
x.workOrderItemId = 0;
|
||||
x.concurrency = undefined;
|
||||
x.isDirty = true;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user