This commit is contained in:
2021-06-29 21:54:59 +00:00
parent cb82e87e33
commit 8c87382827
2 changed files with 9 additions and 7 deletions

View File

@@ -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 [])

View File

@@ -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;