From 5b1306cab46fb7c97a340d82f027149d1b83b3fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 22 Apr 2020 14:50:30 +0300 Subject: [PATCH] refs #1421 --- .../assets/js/components/AkauntingModal.vue | 12 + .../js/components/AkauntingModalAddNew.vue | 10 + .../js/components/AkauntingRecurring.vue | 73 +- .../assets/js/components/AkauntingSelect.vue | 1055 ++++++++++++----- .../assets/js/components/AkauntingWidget.vue | 64 +- .../js/components/CreditCard/CardForm.vue | 2 + resources/assets/js/views/purchases/bills.js | 29 +- resources/assets/js/views/sales/invoices.js | 29 +- .../assets/js/views/wizard/currencies.js | 4 + resources/assets/js/views/wizard/taxes.js | 4 + .../sass/core/mixins/_background-variant.scss | 13 - .../sass/core/navbars/_navbar-vertical.scss | 2 + resources/lang/bn-BD/install.php | 2 +- resources/lang/de-DE/install.php | 2 +- resources/lang/en-GB/install.php | 2 +- resources/lang/hi-IN/bills.php | 6 +- resources/lang/hi-IN/bulk_actions.php | 1 + resources/lang/hi-IN/install.php | 1 + resources/lang/hi-IN/invoices.php | 5 + resources/lang/hi-IN/settings.php | 6 + resources/lang/hr-HR/bills.php | 8 +- resources/lang/hr-HR/bulk_actions.php | 6 +- resources/lang/hr-HR/general.php | 14 +- resources/lang/hr-HR/install.php | 1 + resources/lang/hr-HR/invoices.php | 5 + resources/lang/hr-HR/messages.php | 2 + resources/lang/hr-HR/passwords.php | 1 + resources/lang/hr-HR/reports.php | 2 +- resources/lang/hr-HR/settings.php | 6 + resources/lang/hr-HR/validation.php | 7 +- resources/lang/hr-HR/widgets.php | 2 +- resources/lang/id-ID/auth.php | 1 + resources/lang/id-ID/bills.php | 10 +- resources/lang/id-ID/bulk_actions.php | 22 +- resources/lang/id-ID/companies.php | 5 +- resources/lang/id-ID/customers.php | 2 +- resources/lang/id-ID/demo.php | 35 +- resources/lang/id-ID/email_templates.php | 22 +- resources/lang/id-ID/errors.php | 26 +- resources/lang/id-ID/general.php | 83 +- resources/lang/id-ID/install.php | 7 +- resources/lang/id-ID/invoices.php | 20 +- resources/lang/id-ID/maintenance.php | 8 +- resources/lang/id-ID/messages.php | 9 +- resources/lang/id-ID/modules.php | 32 +- resources/lang/id-ID/pagination.php | 6 +- resources/lang/id-ID/passwords.php | 1 + resources/lang/id-ID/reconciliations.php | 2 +- resources/lang/id-ID/reports.php | 8 +- resources/lang/id-ID/settings.php | 56 +- resources/lang/id-ID/taxes.php | 2 +- resources/lang/id-ID/validation.php | 7 +- resources/lang/it-IT/install.php | 2 +- resources/lang/ja-JP/bills.php | 9 +- resources/lang/ja-JP/bulk_actions.php | 7 +- resources/lang/ja-JP/install.php | 1 + resources/lang/ja-JP/invoices.php | 5 + resources/lang/ja-JP/messages.php | 2 + resources/lang/ja-JP/passwords.php | 1 + resources/lang/ja-JP/settings.php | 6 + resources/lang/ja-JP/validation.php | 7 +- resources/lang/pt-BR/install.php | 2 +- resources/lang/sq-AL/bills.php | 6 +- resources/lang/sq-AL/bulk_actions.php | 1 + resources/lang/sq-AL/install.php | 1 + resources/lang/sq-AL/invoices.php | 5 + resources/lang/sq-AL/settings.php | 6 + resources/lang/tr-TR/email_templates.php | 2 +- resources/lang/tr-TR/install.php | 2 +- resources/views/layouts/admin.blade.php | 7 +- resources/views/partials/admin/menu.blade.php | 5 +- .../views/partials/portal/menu.blade.php | 5 +- .../partials/reports/table/rows.blade.php | 2 +- .../views/partials/wizard/content.blade.php | 2 +- .../views/portal/invoices/show.blade.php | 2 +- .../views/portal/invoices/signed.blade.php | 2 +- .../views/purchases/bills/create.blade.php | 2 +- .../views/purchases/bills/edit.blade.php | 2 +- .../views/purchases/bills/print.blade.php | 2 +- .../views/purchases/bills/show.blade.php | 4 +- .../views/sales/invoices/create.blade.php | 2 +- resources/views/sales/invoices/edit.blade.php | 4 +- .../sales/invoices/print_classic.blade.php | 4 +- .../sales/invoices/print_default.blade.php | 2 +- .../sales/invoices/print_modern.blade.php | 2 +- resources/views/sales/invoices/show.blade.php | 4 +- 86 files changed, 1244 insertions(+), 614 deletions(-) diff --git a/resources/assets/js/components/AkauntingModal.vue b/resources/assets/js/components/AkauntingModal.vue index 16ce46188..776ecaaa0 100644 --- a/resources/assets/js/components/AkauntingModal.vue +++ b/resources/assets/js/components/AkauntingModal.vue @@ -96,6 +96,14 @@ export default { }; }, + created: function () { + if (this.show) { + let documentClasses = document.body.classList; + + documentClasses.add("modal-open"); + } + }, + methods: { closeModal() { this.$emit("update:show", false); @@ -109,6 +117,10 @@ export default { }, onCancel() { + let documentClasses = document.body.classList; + + documentClasses.remove("modal-open"); + this.$emit("cancel"); } }, diff --git a/resources/assets/js/components/AkauntingModalAddNew.vue b/resources/assets/js/components/AkauntingModalAddNew.vue index b64a47d69..e87bbb93e 100644 --- a/resources/assets/js/components/AkauntingModalAddNew.vue +++ b/resources/assets/js/components/AkauntingModalAddNew.vue @@ -130,6 +130,12 @@ export default { }; }, + created: function () { + let documentClasses = document.body.classList; + + documentClasses.add("modal-open"); + }, + mounted() { if (this.is_component) { this.component = Vue.component('add-new-component', (resolve, reject) => { @@ -230,6 +236,10 @@ export default { }, onCancel() { + let documentClasses = document.body.classList; + + documentClasses.remove("modal-open"); + this.$emit("cancel"); } }, diff --git a/resources/assets/js/components/AkauntingRecurring.vue b/resources/assets/js/components/AkauntingRecurring.vue index 58a97de4f..5a29a0711 100644 --- a/resources/assets/js/components/AkauntingRecurring.vue +++ b/resources/assets/js/components/AkauntingRecurring.vue @@ -1,9 +1,9 @@ @@ -451,6 +835,12 @@ export default { }, options: null, + option_sortable: { + type: String, + default: 'value', + description: "Option Sortable type (key|value)" + }, + model: { type: [String, Number, Array, Object], default: '', @@ -478,7 +868,7 @@ export default { description: "Selectbox Add New Item Feature" }, - group: { + group: { type: Boolean, default: false, description: "Selectbox option group status" @@ -537,6 +927,39 @@ export default { }, created() { + /* + if (this.group != true && Object.keys(this.options).length) { + let sortable = []; + let option_sortable = this.option_sortable; + + for (var option_key in this.options) { + sortable.push({ + 'key' : option_key, + 'value': this.options[option_key] + }); + } + + if (option_sortable == 'value') { + sortable.sort(function(a, b) { + var sortableA = a[option_sortable].toUpperCase(); + var sortableB = b[option_sortable].toUpperCase(); + + let comparison = 0; + + if (sortableA > sortableB) { + comparison = 1; + } else if (sortableA < sortableB) { + comparison = -1; + } + + return comparison; + }); + } + + this.options = sortable; + } + */ + this.new_options = {}; }, @@ -815,4 +1238,4 @@ export default { margin-right: 35px; position: relative; } - + \ No newline at end of file diff --git a/resources/assets/js/components/AkauntingWidget.vue b/resources/assets/js/components/AkauntingWidget.vue index 2ef92dabc..456373d86 100644 --- a/resources/assets/js/components/AkauntingWidget.vue +++ b/resources/assets/js/components/AkauntingWidget.vue @@ -1,39 +1,39 @@