diff --git a/public/css/custom.css b/public/css/custom.css index d2778487d..87a6a7ad9 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -924,7 +924,7 @@ table .align-items-center td span.badge { margin-right: 15px; } -#invoice-item-rows td { +.table-padding-05 td { padding-top: 0.5rem; padding-bottom: 0.5rem; } diff --git a/resources/assets/js/views/common/documents.js b/resources/assets/js/views/common/documents.js index e791afd17..ff7d52fd3 100644 --- a/resources/assets/js/views/common/documents.js +++ b/resources/assets/js/views/common/documents.js @@ -280,7 +280,7 @@ const app = new Vue({ description: item.description, quantity: 1, price: item.price, - add_tax: (document.getElementById('line-discount') != null) ? false : true, + add_tax: (document.getElementById('invoice-item-discount-rows') != null) ? false : true, tax_ids: item_taxes, add_discount: false, discount: 0, diff --git a/resources/views/components/documents/form/items.blade.php b/resources/views/components/documents/form/items.blade.php index 7b6b9cbb1..613ef66e5 100644 --- a/resources/views/components/documents/form/items.blade.php +++ b/resources/views/components/documents/form/items.blade.php @@ -68,12 +68,12 @@ - + @include('components.documents.form.line-item') @stack('add_item_td_start') - + @@ -136,7 +134,7 @@ @stack('item_custom_fields') - + @@ -150,12 +148,12 @@ - @endif - diff --git a/resources/views/components/documents/form/totals.blade.php b/resources/views/components/documents/form/totals.blade.php index 58156ee12..78fe2071b 100644 --- a/resources/views/components/documents/form/totals.blade.php +++ b/resources/views/components/documents/form/totals.blade.php @@ -8,7 +8,7 @@ - + @stack('sub_total_td_start') @@ -26,7 +26,7 @@ @if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both'])) @stack('item_discount_td_start') - +
- +
- +
@@ -165,31 +163,33 @@
-
- {{ trans_choice('general.discount', 1) }} +
+
+ {{ trans('invoices.discount') }} @stack('discount_input_start') -
-
- - - -
- +
+
+
+ + + +
+ -
+
+
@stack('discount_input_end') @@ -213,7 +213,7 @@
+
{{ trans_choice('general.taxes', 1) }} @@ -304,8 +304,8 @@
@if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both'])) - - @endif
{{ trans('invoices.item_discount') }}