diff --git a/resources/assets/js/views/banking/accounts.js b/resources/assets/js/views/banking/accounts.js index 56a46b601..7074405ea 100644 --- a/resources/assets/js/views/banking/accounts.js +++ b/resources/assets/js/views/banking/accounts.js @@ -38,7 +38,7 @@ const app = new Vue({ params: { code: currency_code } - }) + }) .then(response => { this.money.decimal = response.data.decimal_mark; this.money.thousands = response.data.thousands_separator; diff --git a/resources/assets/js/views/banking/transactions.js b/resources/assets/js/views/banking/transactions.js index 704664dd6..93372eb1a 100644 --- a/resources/assets/js/views/banking/transactions.js +++ b/resources/assets/js/views/banking/transactions.js @@ -12,9 +12,6 @@ import DashboardPlugin from './../../plugins/dashboard-plugin'; import Global from './../../mixins/global'; -import Form from './../../plugins/form'; -import BulkAction from './../../plugins/bulk-action'; - // plugin setup Vue.use(DashboardPlugin); @@ -24,9 +21,4 @@ const app = new Vue({ mixins: [ Global ], - - data: function () { - return { - } - } }); diff --git a/resources/assets/js/views/portal/dashboard.js b/resources/assets/js/views/portal/dashboard.js index bb1bd5d01..727b2d987 100644 --- a/resources/assets/js/views/portal/dashboard.js +++ b/resources/assets/js/views/portal/dashboard.js @@ -28,9 +28,4 @@ const app = new Vue({ mixins: [ Global ], - - data: function () { - return { - } - } }); diff --git a/resources/assets/js/views/portal/payments.js b/resources/assets/js/views/portal/payments.js index 18d876b26..75d6403d8 100644 --- a/resources/assets/js/views/portal/payments.js +++ b/resources/assets/js/views/portal/payments.js @@ -13,9 +13,6 @@ import DashboardPlugin from './../../plugins/dashboard-plugin'; import Global from './../../mixins/global'; -import Form from './../../plugins/form'; -import BulkAction from './../../plugins/bulk-action'; - // plugin setup Vue.use(DashboardPlugin); @@ -25,9 +22,4 @@ const app = new Vue({ mixins: [ Global ], - - data: function () { - return { - } - } }); diff --git a/resources/assets/js/views/purchases/bills.js b/resources/assets/js/views/purchases/bills.js index 5dfbf7155..168f9eedb 100644 --- a/resources/assets/js/views/purchases/bills.js +++ b/resources/assets/js/views/purchases/bills.js @@ -101,7 +101,7 @@ const app = new Vue({ params: { code: currency_code } - }) + }) .then(response => { this.form.currency_code = response.data.currency_code; this.form.currency_rate = response.data.currency_rate; @@ -162,7 +162,7 @@ const app = new Vue({ type: 'bill', currency_code: this.form.currency_code } - }) + }) .then(response => { this.items = response.data; @@ -230,7 +230,7 @@ const app = new Vue({ params: { account_id: account_id } - }) + }) .then(response => { this.transaction_form.currency = response.data.currency_name; this.transaction_form.currency_code = response.data.currency_code; diff --git a/resources/assets/js/views/sales/customers.js b/resources/assets/js/views/sales/customers.js index b91a795af..3b34a2d0e 100644 --- a/resources/assets/js/views/sales/customers.js +++ b/resources/assets/js/views/sales/customers.js @@ -46,7 +46,7 @@ const app = new Vue({ column: 'email', value : this.form.email } - }) + }) .then(response => { if (response.data.errors) { if (response.data.data) { diff --git a/resources/assets/js/views/sales/invoices.js b/resources/assets/js/views/sales/invoices.js index e84e4a601..950b0f321 100644 --- a/resources/assets/js/views/sales/invoices.js +++ b/resources/assets/js/views/sales/invoices.js @@ -101,7 +101,7 @@ const app = new Vue({ params: { code: currency_code } - }) + }) .then(response => { this.form.currency_code = response.data.currency_code; this.form.currency_rate = response.data.currency_rate; @@ -162,7 +162,7 @@ const app = new Vue({ type: 'invoice', currency_code: this.form.currency_code } - }) + }) .then(response => { this.items = response.data; @@ -229,7 +229,7 @@ const app = new Vue({ params: { account_id: account_id } - }) + }) .then(response => { this.transaction_form.currency = response.data.currency_name; this.transaction_form.currency_code = response.data.currency_code; diff --git a/resources/assets/js/views/settings/currencies.js b/resources/assets/js/views/settings/currencies.js index fcfb8bb28..b24624c76 100644 --- a/resources/assets/js/views/settings/currencies.js +++ b/resources/assets/js/views/settings/currencies.js @@ -42,7 +42,7 @@ const app = new Vue({ params: { code: code } - }) + }) .then(response => { this.form.rate = response.data.rate; this.form.precision = response.data.precision; diff --git a/resources/assets/js/views/settings/taxes.js b/resources/assets/js/views/settings/taxes.js index b078ad61b..326d36f5d 100644 --- a/resources/assets/js/views/settings/taxes.js +++ b/resources/assets/js/views/settings/taxes.js @@ -32,8 +32,8 @@ const app = new Vue({ } }, - methods:{ - taxRateReplace(){ + methods: { + taxRateReplace() { this.form.rate = this.form.rate.replace(',', '.'); }, } diff --git a/resources/assets/js/views/wizard/currencies.js b/resources/assets/js/views/wizard/currencies.js index f48e797f2..fb4b009ba 100644 --- a/resources/assets/js/views/wizard/currencies.js +++ b/resources/assets/js/views/wizard/currencies.js @@ -94,7 +94,7 @@ const app = new Vue({ params: { code: code } - }) + }) .then(response => { this.form.rate = response.data.rate; this.form.precision = response.data.precision; diff --git a/resources/assets/js/views/wizard/finish.js b/resources/assets/js/views/wizard/finish.js index ec61e2218..d1fdffbd9 100644 --- a/resources/assets/js/views/wizard/finish.js +++ b/resources/assets/js/views/wizard/finish.js @@ -38,6 +38,6 @@ const app = new Vue({ methods: { next() { if (this.active++ > 3); - } + } } });