diff --git a/ayanova/src/views/svc-quote.vue b/ayanova/src/views/svc-quote.vue index c6cc5a49..612654fd 100644 --- a/ayanova/src/views/svc-quote.vue +++ b/ayanova/src/views/svc-quote.vue @@ -628,13 +628,13 @@ export default { duplicateHandler() { switch (this.duplicateTo) { case "pm": - this.duplicate(); + this.generatePM(); break; case "wo": this.generateWorkOrder(); break; case "quote": - this.generateQuote(); + this.duplicate(); break; } }, @@ -704,7 +704,7 @@ export default { if (this.genCopyAttachments) { //this property set will trigger server to copy attachments cp.genCopyAttachmentsFrom = { - sAType: window.$gz.type.WorkOrder, + sAType: window.$gz.type.Quote, sId: this.obj.id }; } @@ -1777,7 +1777,7 @@ async function clickHandler(menuItem) { m.vm.duplicateTo = "quote"; m.vm.duplicateDlg = true; break; - case "duplicate": + case "genpm": m.vm.duplicateDlgTitle = m.vm.$ay.t("DuplicateToPM"); m.vm.duplicateTo = "pm"; m.vm.duplicateDlg = true; @@ -1936,7 +1936,7 @@ function generateMenu(vm) { menuOptions.menuItems.push({ title: "Duplicate", icon: "$ayiClone", - key: FORM_KEY + ":duplicate", + key: FORM_KEY + ":genquote", vm: vm }); }