From f7208e8d055afc917f92097c28a47940ace04966 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 27 Jul 2021 18:43:32 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 4 +++- ayanova/src/views/svc-quote.vue | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 4831f2ef..796ada7d 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -546,7 +546,9 @@ Identify cases related to quotes and changes required for quote models particula todo MISC: new workorder state set by default from global settings?? (and on generate from pm or quote) - + generate new wo then go back goes to zero id new but then is stuck with error can't go back further due to broken rule + shouldn't it skip this one like the others do?? + shouldn't it not prompt if it's a not filled in new wo anyway?? diff --git a/ayanova/src/views/svc-quote.vue b/ayanova/src/views/svc-quote.vue index c6e30626..349ec3f2 100644 --- a/ayanova/src/views/svc-quote.vue +++ b/ayanova/src/views/svc-quote.vue @@ -647,7 +647,10 @@ export default { generateWorkOrder() { let cp = JSON.parse(JSON.stringify(this.obj)); if (this.genCopyAttachments) { - cp.genCopyAttachments = true; //flag for later on success as need a object created to attach to + cp.genCopyAttachmentsFrom = { + AType: window.$gz.type.Quote, + ObjectId: this.obj.id + }; } if (!this.genCopyWiki) { cp.wiki = null; //already copied, need to remove it instead