This commit is contained in:
2021-07-27 19:31:48 +00:00
parent ca7603d48a
commit 3d3a56d03c

View File

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