From f9ad078c08038f619e3e865b7f55894f918011df Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Tue, 1 Jun 2021 15:02:51 +0300 Subject: [PATCH 1/5] Invoice styling edited again --- public/css/custom.css | 40 +++++++++++++++++++ .../documents/form/line-item.blade.php | 30 ++++---------- 2 files changed, 48 insertions(+), 22 deletions(-) diff --git a/public/css/custom.css b/public/css/custom.css index 8e9cd06c8..8d79abef3 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -1628,3 +1628,43 @@ table .align-items-center td span.badge { display: contents !important; } /* Select Tag Fixed Content Finish */ + +@-moz-document url-prefix() { + .row-tax-clear { + max-width: 40px !important; + } + + .row-tax-value { + width: 167px !important; + } + + .row-tax-input { + width: 224px !important; + } + } + +.row-tax-clear { + max-width: 40px !important; +} + +.row-tax-value { + width: 243px !important; +} + +.row-tax-input { + width: 244px !important; +} + +@media (max-width: 1300px) { + .row-tax-clear { + max-width: 40px !important; + } + + .row-tax-value { + width: 233px !important; + } + + .row-tax-input { + width: 234px !important; + } +} \ No newline at end of file diff --git a/resources/views/components/documents/form/line-item.blade.php b/resources/views/components/documents/form/line-item.blade.php index 97a04b43d..7102085ab 100644 --- a/resources/views/components/documents/form/line-item.blade.php +++ b/resources/views/components/documents/form/line-item.blade.php @@ -136,20 +136,6 @@ - - @if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both'])) - - - - - @else - - - - - @endif - - @if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both'])) @@ -230,7 +216,7 @@ - - - - - - From 3dfb9c23e8a22a977bbfdf6b4ef8c4ed665a1fb3 Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Tue, 1 Jun 2021 15:20:17 +0300 Subject: [PATCH 2/5] Unusage code ejected --- public/css/custom.css | 14 -------------- .../components/documents/form/line-item.blade.php | 4 ++-- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/public/css/custom.css b/public/css/custom.css index 8d79abef3..ea9a68e94 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -1629,20 +1629,6 @@ table .align-items-center td span.badge { } /* Select Tag Fixed Content Finish */ -@-moz-document url-prefix() { - .row-tax-clear { - max-width: 40px !important; - } - - .row-tax-value { - width: 167px !important; - } - - .row-tax-input { - width: 224px !important; - } - } - .row-tax-clear { max-width: 40px !important; } diff --git a/resources/views/components/documents/form/line-item.blade.php b/resources/views/components/documents/form/line-item.blade.php index 7102085ab..fee17a96b 100644 --- a/resources/views/components/documents/form/line-item.blade.php +++ b/resources/views/components/documents/form/line-item.blade.php @@ -258,7 +258,7 @@ - -
+
{{ trans_choice('general.taxes', 1) }} @@ -258,13 +244,13 @@
+
{{ 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') }}
+ @@ -272,7 +258,7 @@
+
{{ trans_choice('general.taxes', 1) }} @@ -322,18 +308,18 @@
+
__
- @if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both'])) + + @if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both'])) - @endif + @endif
+
{{ trans_choice('general.taxes', 1) }} @@ -308,7 +308,7 @@
+
__
From bdbca0f17506fcb7e54f7cfcd4533723971c7809 Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Wed, 2 Jun 2021 17:42:45 +0300 Subject: [PATCH 3/5] Code refactoring --- public/css/custom.css | 28 +---------------- .../documents/form/line-item.blade.php | 31 +++++++++++++------ 2 files changed, 23 insertions(+), 36 deletions(-) diff --git a/public/css/custom.css b/public/css/custom.css index ea9a68e94..f4217bd52 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -1627,30 +1627,4 @@ table .align-items-center td span.badge { .form-group .el-select .el-select__tags > span { display: contents !important; } -/* Select Tag Fixed Content Finish */ - -.row-tax-clear { - max-width: 40px !important; -} - -.row-tax-value { - width: 243px !important; -} - -.row-tax-input { - width: 244px !important; -} - -@media (max-width: 1300px) { - .row-tax-clear { - max-width: 40px !important; - } - - .row-tax-value { - width: 233px !important; - } - - .row-tax-input { - width: 234px !important; - } -} \ No newline at end of file +/* Select Tag Fixed Content Finish */ \ No newline at end of file diff --git a/resources/views/components/documents/form/line-item.blade.php b/resources/views/components/documents/form/line-item.blade.php index fee17a96b..6e067d1c4 100644 --- a/resources/views/components/documents/form/line-item.blade.php +++ b/resources/views/components/documents/form/line-item.blade.php @@ -136,6 +136,19 @@
+ + @if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both'])) + + + + + @else + + + + + @endif + @if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both'])) @@ -166,7 +179,7 @@ - - - - -
-
+
{{ trans('invoices.discount') }}
@@ -216,9 +229,9 @@
+
-
+
{{ trans_choice('general.taxes', 1) }}
@@ -244,13 +257,13 @@
+
{{ 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') }}
+ @@ -258,9 +271,9 @@
-
-
+
+
+
{{ trans_choice('general.taxes', 1) }}
@@ -308,7 +321,7 @@
+
__
From 38ee37818a87cfd332024e0a8e235a463cca59cc Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Thu, 3 Jun 2021 18:40:26 +0300 Subject: [PATCH 4/5] Code refactoring --- .../documents/form/line-item.blade.php | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/resources/views/components/documents/form/line-item.blade.php b/resources/views/components/documents/form/line-item.blade.php index 6e067d1c4..e666cff51 100644 --- a/resources/views/components/documents/form/line-item.blade.php +++ b/resources/views/components/documents/form/line-item.blade.php @@ -136,7 +136,7 @@
- + + @if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both'])) - - - - - - - - - - From 2aee641b4bd2b2cbc2ad85794135539879da9beb Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Fri, 4 Jun 2021 09:25:29 +0300 Subject: [PATCH 5/5] Unusage code ejected --- .../components/documents/form/line-item.blade.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/resources/views/components/documents/form/line-item.blade.php b/resources/views/components/documents/form/line-item.blade.php index e666cff51..7b9c7ecde 100644 --- a/resources/views/components/documents/form/line-item.blade.php +++ b/resources/views/components/documents/form/line-item.blade.php @@ -136,20 +136,6 @@
+
-
+
+
@@ -177,9 +178,9 @@
+
-
+
{{ trans('invoices.discount') }}
@@ -213,7 +214,7 @@
+
{{ 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') }}
@@ -229,9 +230,9 @@
-
-
+
+
+
{{ trans_choice('general.taxes', 1) }}
@@ -257,13 +258,13 @@
+
{{ 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') }}
+ @@ -271,9 +272,9 @@
+
-
+
{{ trans_choice('general.taxes', 1) }}
@@ -321,18 +322,18 @@
+
__
- @if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both'])) + + @if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both'])) - @endif + @endif
- - @if (!$hideDiscount && in_array(setting('localisation.discount_location'), ['item', 'both']))