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') - @stack('item_custom_fields') - - - - - @if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both'])) - - + - - - - - - - - - + + @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') }} +
+
+ +
+
+ + @endif +
+
+
+ {{ trans_choice('general.taxes', 1) }} +
-
- - - - @endif - - - - - - - - - - - - - - - - - - -
-
- + @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')
-
-
- {{ 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') + + @stack('taxes_input_end') +
+ +
+
+ {{ 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') + + @stack('taxes_input_end') +
+
+
+
+
+
-
- -
-
-
- {{ trans_choice('general.taxes', 1) }} -
- - @stack('taxes_input_start') - - @stack('taxes_input_end') -
-
-
- {{ 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') - - @stack('taxes_input_end') -
-
-
- __ -
-
- @if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both'])) - - @endif -
+ + +
+ @if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both'])) + + @endif +
+ + - + diff --git a/resources/views/components/documents/form/totals.blade.php b/resources/views/components/documents/form/totals.blade.php index ebeaf2849..90abf3fc4 100644 --- a/resources/views/components/documents/form/totals.blade.php +++ b/resources/views/components/documents/form/totals.blade.php @@ -6,7 +6,7 @@ - + @stack('sub_total_td_start') @@ -20,7 +20,7 @@ {{ Form::moneyGroup('sub_total', '', '', ['disabled' => 'true' , 'row-input' => 'true', 'v-model' => 'totals.sub', 'currency' => $currency, 'dynamic-currency' => 'currency', 'money-class' => 'text-right disabled-money'], 0.00, 'text-right disabled-money') }} - + @stack('sub_total_td_end') @@ -36,7 +36,7 @@ {{ Form::moneyGroup('item_discount', '', '', ['disabled' => 'true' , 'row-input' => 'true', 'v-model' => 'totals.item_discount', 'currency' => $currency, 'dynamic-currency' => 'currency', 'money-class' => 'text-right disabled-money'], 0.00, 'text-right disabled-money') }} - + @stack('item_discount_td_end') @endif @@ -92,7 +92,7 @@ {!! Form::hidden('discount', null, ['id' => 'discount', 'class' => 'form-control text-right', 'v-model' => 'form.discount']) !!} - + @stack('add_discount_td_end') @endif @@ -109,7 +109,7 @@ {{ Form::moneyGroup('tax_total', '', '', ['disabled' => 'true' , 'row-input' => 'true', 'v-model' => 'tax.total', 'currency' => $currency, 'dynamic-currency' => 'currency', 'money-class' => 'text-right disabled-money'], 0.00, 'text-right disabled-money') }} - + @stack('tax_total_td_end') @@ -126,7 +126,7 @@ {{ Form::moneyGroup('grand_total', '', '', ['disabled' => 'true' , 'row-input' => 'true', 'v-model' => 'totals.total', 'currency' => $currency, 'dynamic-currency' => 'currency', 'money-class' => 'text-right disabled-money'], 0.00, 'text-right disabled-money') }} - + @stack('grand_total_td_end') @@ -141,7 +141,7 @@ :currency-rate="form.currency_rate" > - + @stack('currency_conversion_td_end')