diff --git a/ayanova/src/views/acc-service-rate.vue b/ayanova/src/views/acc-service-rate.vue index 1b3b5539..7bb0518d 100644 --- a/ayanova/src/views/acc-service-rate.vue +++ b/ayanova/src/views/acc-service-rate.vue @@ -235,6 +235,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( + "Copy" + )}`; setDirty = true; } } diff --git a/ayanova/src/views/acc-tax-code.vue b/ayanova/src/views/acc-tax-code.vue index bf4d2392..35299ab0 100644 --- a/ayanova/src/views/acc-tax-code.vue +++ b/ayanova/src/views/acc-tax-code.vue @@ -197,6 +197,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( + "Copy" + )}`; setDirty = true; } } diff --git a/ayanova/src/views/acc-travel-rate.vue b/ayanova/src/views/acc-travel-rate.vue index 2dd803ee..93f9d61f 100644 --- a/ayanova/src/views/acc-travel-rate.vue +++ b/ayanova/src/views/acc-travel-rate.vue @@ -233,6 +233,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( + "Copy" + )}`; setDirty = true; } } diff --git a/ayanova/src/views/ay-report-edit.vue b/ayanova/src/views/ay-report-edit.vue index c08b6abd..7e612f04 100644 --- a/ayanova/src/views/ay-report-edit.vue +++ b/ayanova/src/views/ay-report-edit.vue @@ -362,6 +362,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( + "Copy" + )}`; setDirty = true; } } diff --git a/ayanova/src/views/cust-customer.vue b/ayanova/src/views/cust-customer.vue index da2a929c..031a7866 100644 --- a/ayanova/src/views/cust-customer.vue +++ b/ayanova/src/views/cust-customer.vue @@ -782,6 +782,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( + "Copy" + )}`; setDirty = true; } } diff --git a/ayanova/src/views/cust-head-office.vue b/ayanova/src/views/cust-head-office.vue index 499b1377..aa6843d7 100644 --- a/ayanova/src/views/cust-head-office.vue +++ b/ayanova/src/views/cust-head-office.vue @@ -692,6 +692,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( + "Copy" + )}`; setDirty = true; } } diff --git a/ayanova/src/views/home-reminder.vue b/ayanova/src/views/home-reminder.vue index 1ea6751b..e81c8755 100644 --- a/ayanova/src/views/home-reminder.vue +++ b/ayanova/src/views/home-reminder.vue @@ -207,6 +207,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( + "Copy" + )}`; setDirty = true; } else { //---------------------------------------------------------- diff --git a/ayanova/src/views/home-review.vue b/ayanova/src/views/home-review.vue index af088f00..afd3790c 100644 --- a/ayanova/src/views/home-review.vue +++ b/ayanova/src/views/home-review.vue @@ -209,6 +209,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( + "Copy" + )}`; setDirty = true; } else { //New record so there has to be a object type and objectId in route diff --git a/ayanova/src/views/inv-part-assembly.vue b/ayanova/src/views/inv-part-assembly.vue index 1d72fe32..e1d4a667 100644 --- a/ayanova/src/views/inv-part-assembly.vue +++ b/ayanova/src/views/inv-part-assembly.vue @@ -307,6 +307,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( + "Copy" + )}`; this.obj.items.forEach(z => (z.id = 0)); setDirty = true; } diff --git a/ayanova/src/views/inv-part-warehouse.vue b/ayanova/src/views/inv-part-warehouse.vue index de06add3..051c52ea 100644 --- a/ayanova/src/views/inv-part-warehouse.vue +++ b/ayanova/src/views/inv-part-warehouse.vue @@ -138,6 +138,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( + "Copy" + )}`; setDirty = true; } } diff --git a/ayanova/src/views/inv-part.vue b/ayanova/src/views/inv-part.vue index 1a28d0b9..ff4cd1d0 100644 --- a/ayanova/src/views/inv-part.vue +++ b/ayanova/src/views/inv-part.vue @@ -342,6 +342,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.partNumber = `${ + this.obj.partNumber + } - ${window.$gz.translation.get("Copy")}`; setDirty = true; } } diff --git a/ayanova/src/views/svc-contract.vue b/ayanova/src/views/svc-contract.vue index a53c794e..7630c3fe 100644 --- a/ayanova/src/views/svc-contract.vue +++ b/ayanova/src/views/svc-contract.vue @@ -1350,6 +1350,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( + "Copy" + )}`; this.obj.serviceRateItems.forEach(z => (z.id = 0)); this.obj.travelRateItems.forEach(z => (z.id = 0)); this.obj.contractPartOverrideItems.forEach(z => (z.id = 0)); diff --git a/ayanova/src/views/svc-loaner.vue b/ayanova/src/views/svc-loaner.vue index 403062c9..dda26dfd 100644 --- a/ayanova/src/views/svc-loaner.vue +++ b/ayanova/src/views/svc-loaner.vue @@ -461,6 +461,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( + "Copy" + )}`; setDirty = true; } } diff --git a/ayanova/src/views/svc-project.vue b/ayanova/src/views/svc-project.vue index e13f5195..1cbdb1cf 100644 --- a/ayanova/src/views/svc-project.vue +++ b/ayanova/src/views/svc-project.vue @@ -214,6 +214,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( + "Copy" + )}`; setDirty = true; } } diff --git a/ayanova/src/views/svc-unit-model.vue b/ayanova/src/views/svc-unit-model.vue index a078bdad..4227e187 100644 --- a/ayanova/src/views/svc-unit-model.vue +++ b/ayanova/src/views/svc-unit-model.vue @@ -298,6 +298,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.number = `${this.obj.number} - ${window.$gz.translation.get( + "Copy" + )}`; setDirty = true; } } diff --git a/ayanova/src/views/svc-unit.vue b/ayanova/src/views/svc-unit.vue index 862fed82..64cde270 100644 --- a/ayanova/src/views/svc-unit.vue +++ b/ayanova/src/views/svc-unit.vue @@ -755,6 +755,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.serial = `${this.obj.serial} - ${window.$gz.translation.get( + "Copy" + )}`; setDirty = true; } } diff --git a/ayanova/src/views/vendor.vue b/ayanova/src/views/vendor.vue index e24e41e7..b217fffc 100644 --- a/ayanova/src/views/vendor.vue +++ b/ayanova/src/views/vendor.vue @@ -617,6 +617,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( + "Copy" + )}`; setDirty = true; } } diff --git a/ayanova/src/views/widget.vue b/ayanova/src/views/widget.vue index 2af3a7fb..35ab1a24 100644 --- a/ayanova/src/views/widget.vue +++ b/ayanova/src/views/widget.vue @@ -301,6 +301,9 @@ export default { this.obj = this.$route.params.obj; this.obj.concurrency = undefined; this.obj.id = 0; + this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( + "Copy" + )}`; setDirty = true; } else { //----------------------------------------------------------