From cab19d691fec6cd87bf54ae60deb2d4314ffd659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= <53110792+CihanSenturk@users.noreply.github.com> Date: Tue, 21 Jun 2022 10:00:20 +0300 Subject: [PATCH 1/9] item name initinals added --- app/Models/Common/Item.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Models/Common/Item.php b/app/Models/Common/Item.php index 2599e5e33..77091aac6 100644 --- a/app/Models/Common/Item.php +++ b/app/Models/Common/Item.php @@ -4,6 +4,7 @@ namespace App\Models\Common; use App\Abstracts\Model; use App\Models\Document\Document; +use App\Utilities\Str; use App\Traits\Currencies; use App\Traits\Media; use Bkwld\Cloner\Cloneable; @@ -138,6 +139,11 @@ class Item extends Model ->select('items.*'); } + public function getInitialsAttribute($value) + { + return Str::getInitials($this->name); + } + /** * Get the current balance. * From 68460f02ffa8ccdad35df6ff9f0b4edbff8ccd2f Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Wed, 22 Jun 2022 11:26:23 +0300 Subject: [PATCH 2/9] added static width for item title in document form --- resources/views/components/documents/form/items.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/components/documents/form/items.blade.php b/resources/views/components/documents/form/items.blade.php index 9df614518..00f6497a1 100644 --- a/resources/views/components/documents/form/items.blade.php +++ b/resources/views/components/documents/form/items.blade.php @@ -77,7 +77,7 @@ @stack('remove_th_start') - +
From 6a3e96364f34f52aab812a1515712812c921566f Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Wed, 22 Jun 2022 13:27:29 +0300 Subject: [PATCH 3/9] code refactoring --- .../assets/js/components/AkauntingSearch.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/resources/assets/js/components/AkauntingSearch.vue b/resources/assets/js/components/AkauntingSearch.vue index 2c27fe295..b8f0026e2 100644 --- a/resources/assets/js/components/AkauntingSearch.vue +++ b/resources/assets/js/components/AkauntingSearch.vue @@ -388,9 +388,9 @@ export default { this.show_icon = false; this.current_value = value; this.range = false; - - this.dynamicPlaceholder = this.selectPlaceholder; + this.onChangeSearchAndFilterText(this.selectPlaceholder); + let option = false; let option_url = false; @@ -522,7 +522,7 @@ export default { this.show_close_icon = true; let select_value = false; - this.dynamicPlaceholder = this.enterPlaceholder; + this.onChangeSearchAndFilterText(this.enterPlaceholder); for (let i = 0; i < this.values.length; i++) { if (this.values[i].key == value) { @@ -582,7 +582,7 @@ export default { this.show_date = false; if (this.filter_index == 0) { - this.dynamicPlaceholder = this.defaultPlaceholder; + this.onChangeSearchAndFilterText(this.defaultPlaceholder); } this.filter_last_step = 'options'; @@ -597,6 +597,10 @@ export default { this.onInputConfirm(); }, + onChangeSearchAndFilterText(arg) { + this.dynamicPlaceholder = arg; + }, + convertOption(options) { let values = []; @@ -765,6 +769,9 @@ export default { }, mounted() { + if (this.filter_index > 0) { + this.onChangeSearchAndFilterText(this.enterPlaceholder); + } }, computed: { From 0c492dbeaf577b8f3b7d283ed632e750fd6ed01b Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Wed, 22 Jun 2022 15:09:49 +0300 Subject: [PATCH 4/9] code refactoring --- resources/assets/js/components/AkauntingSearch.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/assets/js/components/AkauntingSearch.vue b/resources/assets/js/components/AkauntingSearch.vue index b8f0026e2..ebf00d8bd 100644 --- a/resources/assets/js/components/AkauntingSearch.vue +++ b/resources/assets/js/components/AkauntingSearch.vue @@ -385,11 +385,10 @@ export default { }, onOptionSelected(value) { - this.show_icon = false; this.current_value = value; this.range = false; - this.onChangeSearchAndFilterText(this.selectPlaceholder); + this.onChangeSearchAndFilterText(this.selectPlaceholder, false); let option = false; let option_url = false; @@ -522,7 +521,7 @@ export default { this.show_close_icon = true; let select_value = false; - this.onChangeSearchAndFilterText(this.enterPlaceholder); + this.onChangeSearchAndFilterText(this.enterPlaceholder, false); for (let i = 0; i < this.values.length; i++) { if (this.values[i].key == value) { @@ -582,7 +581,7 @@ export default { this.show_date = false; if (this.filter_index == 0) { - this.onChangeSearchAndFilterText(this.defaultPlaceholder); + this.onChangeSearchAndFilterText(this.defaultPlaceholder, true); } this.filter_last_step = 'options'; @@ -597,8 +596,9 @@ export default { this.onInputConfirm(); }, - onChangeSearchAndFilterText(arg) { + onChangeSearchAndFilterText(arg, param) { this.dynamicPlaceholder = arg; + this.show_icon = param; }, convertOption(options) { @@ -770,7 +770,7 @@ export default { mounted() { if (this.filter_index > 0) { - this.onChangeSearchAndFilterText(this.enterPlaceholder); + this.onChangeSearchAndFilterText(this.enterPlaceholder, false); } }, From 392719048df44cdc5ab9bfd3454b5537e939ba7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 22 Jun 2022 16:20:22 +0300 Subject: [PATCH 5/9] Added: Transaction form other section description changes ( #31eq3qj ) --- resources/lang/en-GB/transactions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lang/en-GB/transactions.php b/resources/lang/en-GB/transactions.php index a1dbd1b07..6a45cfa8d 100644 --- a/resources/lang/en-GB/transactions.php +++ b/resources/lang/en-GB/transactions.php @@ -15,7 +15,7 @@ return [ 'general' => 'Here you can enter the general information of transaction such as date, amount, account, description, etc.', 'assign_income' => 'Select a category and customer to make your reports more detailed.', 'assign_expense' => 'Select a category and vendor to make your reports more detailed.', - 'other' => 'Enter a reference to keep the transaction linked to your records.', + 'other' => 'Enter a number and reference to keep the transaction linked to your records.', ], 'slider' => [ From 1c9563bdce03690c79ad442f0622dd141610fb4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 22 Jun 2022 16:23:01 +0300 Subject: [PATCH 6/9] typo --- .../js/components/CreditCard/CardForm.vue | 23 +++++++---- resources/assets/js/mixins/global.js | 12 ++++++ .../index/bulkaction/index.blade.php | 28 ++++++------- .../payment_method/hosted.blade.php | 2 +- .../views/components/tabs/nav-link.blade.php | 1 + resources/views/components/tabs/nav.blade.php | 1 + resources/views/components/tabs/tab.blade.php | 7 +++- .../views/portal/invoices/show.blade.php | 39 +++++++++++-------- 8 files changed, 73 insertions(+), 40 deletions(-) diff --git a/resources/assets/js/components/CreditCard/CardForm.vue b/resources/assets/js/components/CreditCard/CardForm.vue index fc9ab38ef..ca079669e 100644 --- a/resources/assets/js/components/CreditCard/CardForm.vue +++ b/resources/assets/js/components/CreditCard/CardForm.vue @@ -260,7 +260,7 @@ v-for="n in 12" v-bind:disabled="n < minCardMonth" v-bind:key="n" - >{{generateMonthValue(n)}} + >{{ generateMonthValue(n) }} @@ -278,7 +278,7 @@ v-bind:value="$index + minCardYear" v-for="(n, $index) in 12" v-bind:key="n" - >{{$index + minCardYear}} + >{{ $index + minCardYear }} @@ -312,7 +312,7 @@ - @else - {{ $category->name }} + + {{ $item->name }} + + @endif + + @if (! $item->enabled) + @endif - @if (! empty($types[$category->type])) - {{ $types[$category->type] }} + @if (! empty($types[$item->type])) + {{ $types[$item->type] }} @else @endif - circle + circle - + - @foreach($category->sub_categories as $sub_category) - @include('settings.categories.sub_category', ['parent_category' => $category, 'sub_category' => $sub_category, 'tree_level' => 1]) + @foreach($item->sub_categories as $sub_category) + @include('settings.categories.sub_category', ['parent_category' => $item, 'sub_category' => $sub_category, 'tree_level' => 1]) @endforeach @endforeach diff --git a/resources/views/settings/categories/sub_category.blade.php b/resources/views/settings/categories/sub_category.blade.php index be9afa002..204778ecf 100644 --- a/resources/views/settings/categories/sub_category.blade.php +++ b/resources/views/settings/categories/sub_category.blade.php @@ -31,15 +31,15 @@ - @if (! empty($types[$category->type])) - {{ $types[$category->type] }} + @if (! empty($types[$item->type])) + {{ $types[$item->type] }} @else @endif - circle + circle From 248f760f3da274bfc635bbfd353e8517eee30e86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 22 Jun 2022 17:16:47 +0300 Subject: [PATCH 9/9] for sub category status.. --- resources/views/settings/categories/sub_category.blade.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/views/settings/categories/sub_category.blade.php b/resources/views/settings/categories/sub_category.blade.php index 204778ecf..4523c724e 100644 --- a/resources/views/settings/categories/sub_category.blade.php +++ b/resources/views/settings/categories/sub_category.blade.php @@ -28,6 +28,10 @@ {{ $sub_category->name }} @endif + + @if (! $sub_category->enabled) + + @endif