This commit is contained in:
2021-07-07 15:25:44 +00:00
parent 3520772166
commit f23ba458dd
2 changed files with 12 additions and 0 deletions

View File

@@ -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?? "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? 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 TODO 2 (all 2's): V7 features on wo I haven't coded yet

View File

@@ -89,20 +89,24 @@ export default {
cp.id = 0; cp.id = 0;
cp.concurrency = 0; cp.concurrency = 0;
cp.uid = Date.now(); cp.uid = Date.now();
cp.workOrderId = this.obj.id;
cp.isDirty = true; cp.isDirty = true;
cp.sequence = this.obj.items.length + 1; cp.sequence = this.obj.items.length + 1;
cp.expenses.forEach(x => { cp.expenses.forEach(x => {
x.id = 0; x.id = 0;
x.workOrderItemId = 0;
x.concurrency = undefined; x.concurrency = undefined;
x.isDirty = true; x.isDirty = true;
}); });
cp.labors.forEach(x => { cp.labors.forEach(x => {
x.id = 0; x.id = 0;
x.workOrderItemId = 0;
x.concurrency = undefined; x.concurrency = undefined;
x.isDirty = true; x.isDirty = true;
}); });
cp.loans.forEach(x => { cp.loans.forEach(x => {
x.id = 0; x.id = 0;
x.workOrderItemId = 0;
x.concurrency = undefined; x.concurrency = undefined;
x.isDirty = true; x.isDirty = true;
x.cost = 0; x.cost = 0;
@@ -110,6 +114,7 @@ export default {
}); });
cp.parts.forEach(x => { cp.parts.forEach(x => {
x.id = 0; x.id = 0;
x.workOrderItemId = 0;
x.concurrency = undefined; x.concurrency = undefined;
x.isDirty = true; x.isDirty = true;
x.cost = 0; x.cost = 0;
@@ -118,26 +123,31 @@ export default {
cp.scheduledUsers.forEach(x => { cp.scheduledUsers.forEach(x => {
x.id = 0; x.id = 0;
x.workOrderItemId = 0;
x.concurrency = undefined; x.concurrency = undefined;
x.isDirty = true; x.isDirty = true;
}); });
cp.tasks.forEach(x => { cp.tasks.forEach(x => {
x.id = 0; x.id = 0;
x.workOrderItemId = 0;
x.concurrency = undefined; x.concurrency = undefined;
x.isDirty = true; x.isDirty = true;
}); });
cp.travels.forEach(x => { cp.travels.forEach(x => {
x.id = 0; x.id = 0;
x.workOrderItemId = 0;
x.concurrency = undefined; x.concurrency = undefined;
x.isDirty = true; x.isDirty = true;
}); });
cp.units.forEach(x => { cp.units.forEach(x => {
x.id = 0; x.id = 0;
x.workOrderItemId = 0;
x.concurrency = undefined; x.concurrency = undefined;
x.isDirty = true; x.isDirty = true;
}); });
cp.outsideServices.forEach(x => { cp.outsideServices.forEach(x => {
x.id = 0; x.id = 0;
x.workOrderItemId = 0;
x.concurrency = undefined; x.concurrency = undefined;
x.isDirty = true; x.isDirty = true;
}); });