This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user