This commit is contained in:
2021-06-28 20:16:29 +00:00
parent 5ac4ce20ac
commit 06c1503b29
26 changed files with 65 additions and 78 deletions

View File

@@ -519,7 +519,7 @@ async function clickHandler(menuItem) {
case "new":
m.vm.$router.push({
name: "tax-code-edit",
params: { recordid: 0, new: true }
params: { recordid: 0 }
});
break;
case "duplicate":
@@ -633,7 +633,7 @@ function generateMenu(vm) {
});
}
if (vm.rights.change) {
if (vm.rights.change && vm.$route.params.recordid != 0) {
menuOptions.menuItems.push({
title: "Duplicate",
icon: "$ayiClone",