diff --git a/public/css/custom.css b/public/css/custom.css index bf90d118f..0d23a4b30 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -1631,4 +1631,74 @@ table .align-items-center td span.badge { .form-group .el-select .el-select__tags > span { display: contents !important; } -/* Select Tag Fixed Content Finish */ \ No newline at end of file +/* Select Tag Fixed Content Finish */ + +/* Line item */ +.line-item-link-container { + height: 25px; +} + +.line-item-link { + display: flex; + padding-bottom: 10px; + top: -12px; +} + +.line-item-area { + display: flex; + justify-content: space-between; + align-items:center; +} + +.line-item-content { + position: relative; + width: 100%; + max-width: 242px; +} + +.line-item-content .form-group { + position: relative; +} + +.line-item-content .badge { + position: absolute !important; + bottom: 12px; + right: 0; +} + +.line-item-content-right { + display: flex; + align-items: center; +} + +.line-item-content-right-price { + padding-right: 1.5rem; +} + +.line-item-content-right-delete { + width:40px; + padding-right: 1.5rem; + /* padding-left: 5px !important; */ +} + +.line-item-text { + width: 54px; + text-align: right; +} + +@media (max-width: 1500px) { + @media not all and (min-resolution:.001dpcm) { @media { + + .line-item-content { + max-width:223px; + } +}} +} + +@media only screen and (max-width: 600px) { + .line-item-content { + max-width: 133px; + } +} + +/* Line item */ diff --git a/resources/views/components/documents/form/line-item.blade.php b/resources/views/components/documents/form/line-item.blade.php index 7b9c7ecde..0b2e3fc85 100644 --- a/resources/views/components/documents/form/line-item.blade.php +++ b/resources/views/components/documents/form/line-item.blade.php @@ -128,205 +128,181 @@ @stack('delete_td_end') -
-
-
+ @if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both']))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ trans('invoices.discount') }}
+
+ @stack('discount_input_start')
+
+
+
+
+
+
- |
+
-
-
-
+ |
-
- - | - -- | -
-
-
-
- {{ trans('invoices.discount') }}
-
-
- @stack('discount_input_start')
-
-
- @stack('discount_input_end')
-
-
-
-
-
-
-
-
-
-
- |
+
+ @stack('discount_input_end')
+
+
-
- {{ Form::moneyGroup('discount_amount', '', '', ['required' => 'required', 'disabled' => 'true' , 'row-input' => 'true', 'v-model' => 'row.discount_amount', 'data-item' => 'discount_amount', 'currency' => $currency, 'dynamic-currency' => 'currency'], 0.00, 'text-right input-price disabled-money') }}
+ @stack('taxes_input_start')
+
+
+
+
+
+
+ {{ Form::moneyGroup('tax', '', '', ['required' => 'required', 'disabled' => 'true' , 'row-input' => 'true', 'v-model' => 'row_tax.price', 'data-item' => 'total', 'currency' => $currency, 'dynamic-currency' => 'currency'], 0.00, 'text-right input-price disabled-money') }}
+
+
+
+
+
+
+
+
+ {{ trans_choice('general.taxes', 1) }}
+
+
+ @stack('taxes_input_start')
+
+
+
+
+
- |
-
- - - | -|
-
-
-
- {{ trans_choice('general.taxes', 1) }}
-
-
- @stack('taxes_input_start')
- |
-
-
-
- {{ Form::moneyGroup('tax', '', '', ['required' => 'required', 'disabled' => 'true' , 'row-input' => 'true', 'v-model' => 'row_tax.price', 'data-item' => 'total', 'currency' => $currency, 'dynamic-currency' => 'currency'], 0.00, 'text-right input-price disabled-money') }}
-
- |
-
- - - | -|
-
-
-
- {{ trans_choice('general.taxes', 1) }}
-
-
- @stack('taxes_input_start')
- |
-
-
-
- __
-
- |
-
- - @if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both'])) - - @endif - | -