diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index c1177621..37b92baf 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -422,8 +422,7 @@ CURRENTLY DOING: 3891 3: Implement a workable duplication system outstanding for this: - - look for missed items at client like woitempriority etc - search for duplicate menu item and see what missed + - Workorder should not duplicate part requests. truncate that collection in all woitems (set to []) diff --git a/ayanova/src/views/svc-workorder.vue b/ayanova/src/views/svc-workorder.vue index 974df54b..abfb246a 100644 --- a/ayanova/src/views/svc-workorder.vue +++ b/ayanova/src/views/svc-workorder.vue @@ -98,6 +98,9 @@ export default { z.concurrency = undefined; z.workOrderId = 0; z.isDirty = true; + if (z.partRequests) { + z.partRequests.splice(0); + } z.expenses.forEach(x => { x.id = 0; x.concurrency = undefined; @@ -118,11 +121,11 @@ export default { x.concurrency = undefined; x.isDirty = true; }); - z.partRequests.forEach(x => { - x.id = 0; - x.concurrency = undefined; - x.isDirty = true; - }); + // z.partRequests.forEach(x => { + // x.id = 0; + // x.concurrency = undefined; + // x.isDirty = true; + // }); z.scheduledUsers.forEach(x => { x.id = 0; x.concurrency = undefined;