This commit is contained in:
@@ -647,6 +647,7 @@ export default {
|
|||||||
generateWorkOrder() {
|
generateWorkOrder() {
|
||||||
let cp = JSON.parse(JSON.stringify(this.obj));
|
let cp = JSON.parse(JSON.stringify(this.obj));
|
||||||
if (this.genCopyAttachments) {
|
if (this.genCopyAttachments) {
|
||||||
|
//this property set will trigger server to copy attachments
|
||||||
cp.genCopyAttachmentsFrom = {
|
cp.genCopyAttachmentsFrom = {
|
||||||
sAType: window.$gz.type.Quote,
|
sAType: window.$gz.type.Quote,
|
||||||
sId: this.obj.id
|
sId: this.obj.id
|
||||||
@@ -659,6 +660,8 @@ export default {
|
|||||||
cp.items.forEach(x => {
|
cp.items.forEach(x => {
|
||||||
x.partRequests = [];
|
x.partRequests = [];
|
||||||
});
|
});
|
||||||
|
cp.id = 0;
|
||||||
|
cp.fromQuoteId = this.obj.id;
|
||||||
// console.log("source", this.obj);
|
// console.log("source", this.obj);
|
||||||
// console.log("copy", cp);
|
// console.log("copy", cp);
|
||||||
//console.log("From quote", JSON.stringify(this.obj, null, 5));
|
//console.log("From quote", JSON.stringify(this.obj, null, 5));
|
||||||
|
|||||||
Reference in New Issue
Block a user