From 3d3a56d03cfe442f8ee6e145f6d79954d148b300 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 27 Jul 2021 19:31:48 +0000 Subject: [PATCH] --- ayanova/src/views/svc-quote.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ayanova/src/views/svc-quote.vue b/ayanova/src/views/svc-quote.vue index ba971265..e40fca15 100644 --- a/ayanova/src/views/svc-quote.vue +++ b/ayanova/src/views/svc-quote.vue @@ -647,6 +647,7 @@ export default { generateWorkOrder() { let cp = JSON.parse(JSON.stringify(this.obj)); if (this.genCopyAttachments) { + //this property set will trigger server to copy attachments cp.genCopyAttachmentsFrom = { sAType: window.$gz.type.Quote, sId: this.obj.id @@ -659,6 +660,8 @@ export default { cp.items.forEach(x => { x.partRequests = []; }); + cp.id = 0; + cp.fromQuoteId = this.obj.id; // console.log("source", this.obj); // console.log("copy", cp); //console.log("From quote", JSON.stringify(this.obj, null, 5));