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