diff --git a/public/css/app.css b/public/css/app.css index 9bc65364c..cacaa6326 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -918,7 +918,11 @@ input[type="number"] { } /* App Detail Page Sliders Finish */ -.select2-results__option:hover{ +.select2-results__option { + color: lightslategray; +} + +.select2-results__option:hover { color: white; background: #6da252; cursor: pointer; diff --git a/resources/views/expenses/bills/create.blade.php b/resources/views/expenses/bills/create.blade.php index e1d8a20f9..24cc22284 100644 --- a/resources/views/expenses/bills/create.blade.php +++ b/resources/views/expenses/bills/create.blade.php @@ -223,7 +223,7 @@ }, language: { noResults: function () { - return ' {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}'; + return ' {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}'; } } }); diff --git a/resources/views/expenses/bills/edit.blade.php b/resources/views/expenses/bills/edit.blade.php index 56caa5718..7b8431925 100644 --- a/resources/views/expenses/bills/edit.blade.php +++ b/resources/views/expenses/bills/edit.blade.php @@ -204,7 +204,7 @@ }, language: { noResults: function () { - return ' {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}'; + return ' {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}'; } } }); diff --git a/resources/views/expenses/bills/item.blade.php b/resources/views/expenses/bills/item.blade.php index 0cddd0443..528c1d439 100644 --- a/resources/views/expenses/bills/item.blade.php +++ b/resources/views/expenses/bills/item.blade.php @@ -18,7 +18,7 @@ @stack('quantity_td_start') has('item.' . $item_row . '.quantity') ? 'class="has-error"' : '' }}> @stack('quantity_input_start') - + {!! $errors->first('item.' . $item_row . '.quantity', '

:message

') !!} @stack('quantity_input_end') diff --git a/resources/views/incomes/invoices/create.blade.php b/resources/views/incomes/invoices/create.blade.php index 86b0fda7c..6c33aff89 100644 --- a/resources/views/incomes/invoices/create.blade.php +++ b/resources/views/incomes/invoices/create.blade.php @@ -223,7 +223,7 @@ }, language: { noResults: function () { - return ' {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}'; + return ' {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}'; } } }); @@ -306,7 +306,7 @@ }, language: { noResults: function () { - return ' {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}'; + return ' {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}'; } } }); @@ -403,6 +403,7 @@ $(document).on('click', '#cancel-discount', function(){ $('#discount').val(''); + totalItem(); $('a[rel=popover]').trigger('click'); diff --git a/resources/views/incomes/invoices/edit.blade.php b/resources/views/incomes/invoices/edit.blade.php index 0da09adeb..ef36ba9f5 100644 --- a/resources/views/incomes/invoices/edit.blade.php +++ b/resources/views/incomes/invoices/edit.blade.php @@ -204,7 +204,7 @@ }, language: { noResults: function () { - return ' {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}'; + return ' {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}'; } } }); @@ -314,7 +314,7 @@ }, language: { noResults: function () { - return ' {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}'; + return ' {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}'; } } }); diff --git a/resources/views/incomes/invoices/item.blade.php b/resources/views/incomes/invoices/item.blade.php index af7022c1a..2daa215f1 100644 --- a/resources/views/incomes/invoices/item.blade.php +++ b/resources/views/incomes/invoices/item.blade.php @@ -18,7 +18,7 @@ @stack('quantity_td_start') has('item.' . $item_row . '.quantity') ? 'class="has-error"' : '' }}> @stack('quantity_input_start') - + {!! $errors->first('item.' . $item_row . '.quantity', '

:message

') !!} @stack('quantity_input_end') diff --git a/tests/Feature/Common/ItemsTest.php b/tests/Feature/Common/ItemsTest.php index 5ff8188c9..83946c4a9 100644 --- a/tests/Feature/Common/ItemsTest.php +++ b/tests/Feature/Common/ItemsTest.php @@ -86,7 +86,7 @@ class ItemsTest extends FeatureTestCase 'sale_price' => $this->faker->randomFloat(2, 10, 20), 'quantity' => $this->faker->randomNumber(2), 'category_id' => $this->company->categories()->type('item')->first()->id, - 'tax_id' => $this->company->taxes()->enabled()->first()->id, + 'tax_id' => '', 'enabled' => $this->faker->boolean ? 1 : 0 ]; }