This commit is contained in:
@@ -628,13 +628,13 @@ export default {
|
|||||||
duplicateHandler() {
|
duplicateHandler() {
|
||||||
switch (this.duplicateTo) {
|
switch (this.duplicateTo) {
|
||||||
case "pm":
|
case "pm":
|
||||||
this.duplicate();
|
this.generatePM();
|
||||||
break;
|
break;
|
||||||
case "wo":
|
case "wo":
|
||||||
this.generateWorkOrder();
|
this.generateWorkOrder();
|
||||||
break;
|
break;
|
||||||
case "quote":
|
case "quote":
|
||||||
this.generateQuote();
|
this.duplicate();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -704,7 +704,7 @@ export default {
|
|||||||
if (this.genCopyAttachments) {
|
if (this.genCopyAttachments) {
|
||||||
//this property set will trigger server to copy attachments
|
//this property set will trigger server to copy attachments
|
||||||
cp.genCopyAttachmentsFrom = {
|
cp.genCopyAttachmentsFrom = {
|
||||||
sAType: window.$gz.type.WorkOrder,
|
sAType: window.$gz.type.Quote,
|
||||||
sId: this.obj.id
|
sId: this.obj.id
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1777,7 +1777,7 @@ async function clickHandler(menuItem) {
|
|||||||
m.vm.duplicateTo = "quote";
|
m.vm.duplicateTo = "quote";
|
||||||
m.vm.duplicateDlg = true;
|
m.vm.duplicateDlg = true;
|
||||||
break;
|
break;
|
||||||
case "duplicate":
|
case "genpm":
|
||||||
m.vm.duplicateDlgTitle = m.vm.$ay.t("DuplicateToPM");
|
m.vm.duplicateDlgTitle = m.vm.$ay.t("DuplicateToPM");
|
||||||
m.vm.duplicateTo = "pm";
|
m.vm.duplicateTo = "pm";
|
||||||
m.vm.duplicateDlg = true;
|
m.vm.duplicateDlg = true;
|
||||||
@@ -1936,7 +1936,7 @@ function generateMenu(vm) {
|
|||||||
menuOptions.menuItems.push({
|
menuOptions.menuItems.push({
|
||||||
title: "Duplicate",
|
title: "Duplicate",
|
||||||
icon: "$ayiClone",
|
icon: "$ayiClone",
|
||||||
key: FORM_KEY + ":duplicate",
|
key: FORM_KEY + ":genquote",
|
||||||
vm: vm
|
vm: vm
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user