diff --git a/app/Http/Controllers/Wizard/Data.php b/app/Http/Controllers/Wizard/Data.php
index acc9de0cb..fa3a43b9f 100644
--- a/app/Http/Controllers/Wizard/Data.php
+++ b/app/Http/Controllers/Wizard/Data.php
@@ -98,6 +98,7 @@ class Data extends Controller
'developer' => trans('modules.developer'),
'previous' => trans('pagination.previous'),
'go_to_dashboard' => trans('general.go_to_dashboard'),
+ 'error_message' => trans('errors.title.500'),
]
];
diff --git a/resources/assets/js/views/wizard/Company.vue b/resources/assets/js/views/wizard/Company.vue
index 2ee611486..c5f96fb8b 100644
--- a/resources/assets/js/views/wizard/Company.vue
+++ b/resources/assets/js/views/wizard/Company.vue
@@ -26,8 +26,11 @@
/>
- Click here
- to get your API key.
+
@@ -71,14 +74,16 @@
-
-
-
+
+
+
@@ -86,7 +91,7 @@
2);
- this.$router.push("/wizard/currencies");
- },
-
onEditSave() {
this.onEditCompany();
this.$router.push("/wizard/currencies");
},
+
+ next() {
+ if (this.active++ > 2);
+ this.$router.push("/wizard/currencies");
+ },
},
};
\ No newline at end of file
diff --git a/resources/assets/js/views/wizard/Currencies.vue b/resources/assets/js/views/wizard/Currencies.vue
index 9f0b5165a..3bbde23c2 100644
--- a/resources/assets/js/views/wizard/Currencies.vue
+++ b/resources/assets/js/views/wizard/Currencies.vue
@@ -20,7 +20,7 @@
type="success"
native-type="button"
class="btn-sm"
- @click="addItem()"
+ @click="onAddItem()"
>{{ translations.currencies.add_new }}
@@ -63,7 +63,7 @@
{{ translations.currencies.edit }}
@@ -100,14 +100,14 @@
-
+ |
@@ -167,14 +167,14 @@
{{ translations.currencies.cancel }}
{{ translations.currencies.save }}
@@ -183,7 +183,7 @@
|
-
+
@@ -271,7 +271,7 @@
@@ -296,11 +296,11 @@ import { Step, Steps, Select, Option } from "element-ui";
import AkauntingRadioGroup from "./../../components/forms/AkauntingRadioGroup";
import BulkAction from "./../../plugins/bulk-action";
import MixinsGlobal from "./../../mixins/global";
-import MixinsSpaGlobal from "./../../mixins/spa-global";
+import WizardAction from "./wizardAction";
export default {
name: "Currencies",
- mixins: [MixinsGlobal, MixinsSpaGlobal],
+ mixins: [MixinsGlobal, WizardAction],
components: {
[Step.name]: Step,
[Steps.name]: Steps,
@@ -326,12 +326,12 @@ export default {
};
},
methods: {
- inputHandle(item) {
+ onSwitchUpdate(item) {
this.onStatus(item.id, event);
this.onStatusControl(this.currencies, item.id, event);
},
- handleClickDelete(item) {
+ onClickDelete(item) {
this.confirmDelete(
`${
new URL(url).protocol +
@@ -348,17 +348,11 @@ export default {
);
},
- next() {
- if (this.active++ > 2);
- this.$router.push("/wizard/taxes");
+ onDeleteCurrency(event) {
+ this.onEjetItem(event, this.currencies, event.currency_id);
},
- prev() {
- if (this.active-- > 2);
- this.$router.push("/wizard/companies");
- },
-
- onChangeCode(code) {
+ onChangeCodeItem(code) {
const formData = new FormData(this.$refs["form"]);
const data = {
rate: "",
@@ -394,8 +388,8 @@ export default {
}, this);
},
- onEditSave(item) {
- this.onEditEvent(
+ onEditForm(item) {
+ this.onEditItemEvent(
"PATCH",
url + "/wizard/currencies/" + item.id,
"",
@@ -413,8 +407,14 @@ export default {
);
},
- deleteCurrency(event) {
- this.onDeleteEvent(event, this.currencies, event.currency_id);
+ prev() {
+ if (this.active-- > 2);
+ this.$router.push("/wizard/companies");
+ },
+
+ next() {
+ if (this.active++ > 2);
+ this.$router.push("/wizard/taxes");
},
},
};
diff --git a/resources/assets/js/views/wizard/Finish.vue b/resources/assets/js/views/wizard/Finish.vue
index 0a8b35aac..beaeb4868 100644
--- a/resources/assets/js/views/wizard/Finish.vue
+++ b/resources/assets/js/views/wizard/Finish.vue
@@ -1,5 +1,5 @@
-
+
{{ translations.finish.title }}
|
-
+ |
{{ translations.taxes.cancel }}
{{ translations.taxes.save }}
@@ -144,7 +144,7 @@
|
-
+
|