diff --git a/app/Http/Controllers/Modals/Taxes.php b/app/Http/Controllers/Modals/Taxes.php index 0b27b06a3..ead10ebcf 100644 --- a/app/Http/Controllers/Modals/Taxes.php +++ b/app/Http/Controllers/Modals/Taxes.php @@ -2,9 +2,10 @@ namespace App\Http\Controllers\Modals; +use App\Models\Setting\Tax; +use App\Jobs\Setting\CreateTax; use App\Abstracts\Http\Controller; use App\Http\Requests\Setting\Tax as Request; -use App\Jobs\Setting\CreateTax; class Taxes extends Controller { diff --git a/resources/assets/js/components/AkauntingSelect.vue b/resources/assets/js/components/AkauntingSelect.vue index 313141f65..18c93b71d 100644 --- a/resources/assets/js/components/AkauntingSelect.vue +++ b/resources/assets/js/components/AkauntingSelect.vue @@ -87,7 +87,7 @@ - +
@@ -425,11 +425,17 @@ export default { methods: { change() { + // This controll added add new changed.. + if (typeof(this.selected) === 'object' && typeof(this.selectedz.type) !== 'undefined') { + return false; + } + this.$emit('interface', this.selected); this.$emit('change', this.selected); // Option changed sort_option data + /* if (this.group) { this.sort_options.forEach(function (option_group, group_index) { this.option_group.value.forEach(function (option, index) { @@ -493,6 +499,7 @@ export default { } }, this); } + */ }, visibleChange(event) { @@ -520,11 +527,11 @@ export default { if (this.title) { var value = this.$children[0].$children[0].$children[0].$refs.input.value; } else { - var value = this.$children[0].$children[0].$refs.input.value; + var value = this.$children[0].$children[0].$children[0].$refs.input.value; } if (value === '') { - return false; + //return false; } if (this.add_new.type == 'inline') { diff --git a/resources/assets/js/components/AkauntingSelectRemote.vue b/resources/assets/js/components/AkauntingSelectRemote.vue index 631229ca2..80a139074 100644 --- a/resources/assets/js/components/AkauntingSelectRemote.vue +++ b/resources/assets/js/components/AkauntingSelectRemote.vue @@ -88,7 +88,7 @@ - +
@@ -541,11 +541,17 @@ export default { }, change() { + // This controll added add new changed.. + if (typeof(this.selected) === 'object' && typeof(this.selected.type) !== 'undefined') { + return false; + } + this.$emit('interface', this.selected); this.$emit('change', this.selected); // Option changed sort_option data + /* if (this.group) { this.sort_options.forEach(function (option_group, group_index) { this.option_group.value.forEach(function (option, index) { @@ -609,6 +615,7 @@ export default { } }, this); } + */ }, visibleChange(event) { @@ -695,7 +702,7 @@ export default { if (this.title) { var value = this.$children[0].$children[0].$children[0].$refs.input.value; } else { - var value = this.$children[0].$children[0].$refs.input.value; + var value = this.$children[0].$children[0].$children[0].$refs.input.value; } if (this.add_new.type == 'inline') {