From 6cbf8ed52c29f7dc992124e624aab4e870f8ba9d Mon Sep 17 00:00:00 2001 From: batuhanbas Date: Wed, 26 Feb 2020 14:55:27 +0300 Subject: [PATCH] items updated to flexible structure --- public/css/custom.css | 5 +++ .../views/purchases/bills/create.blade.php | 44 +++++++++---------- .../views/purchases/bills/edit.blade.php | 44 +++++++++---------- .../views/purchases/bills/item.blade.php | 14 +++--- .../views/sales/invoices/create.blade.php | 44 +++++++++---------- resources/views/sales/invoices/edit.blade.php | 44 +++++++++---------- resources/views/sales/invoices/item.blade.php | 14 +++--- 7 files changed, 107 insertions(+), 102 deletions(-) diff --git a/public/css/custom.css b/public/css/custom.css index 61fb23e3b..7bc1d2807 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -589,6 +589,11 @@ button:focus { padding-top: 1.75rem !important; } + +.item-total +{ + width: 15%; +} /*--------Invoice and Bill Total Column Finish--------*/ /*--------Custom Table--------*/ diff --git a/resources/views/purchases/bills/create.blade.php b/resources/views/purchases/bills/create.blade.php index ef2c051b4..cc79027b6 100644 --- a/resources/views/purchases/bills/create.blade.php +++ b/resources/views/purchases/bills/create.blade.php @@ -34,29 +34,29 @@
- + @stack('actions_th_start') - + @stack('actions_th_end') @stack('name_th_start') - + @stack('name_th_end') @stack('quantity_th_start') - + @stack('quantity_th_end') @stack('price_th_start') - + @stack('price_th_end') @stack('taxes_th_start') - + @stack('taxes_th_end') @stack('total_th_start') - + @stack('total_th_end') @@ -64,21 +64,21 @@ @include('purchases.bills.item') @stack('add_item_td_start') - - + - + @stack('add_item_td_end') @stack('sub_total_td_start') - - + - - + - - + - - + -
{{ trans('general.actions') }}{{ trans('general.actions') }}{{ trans('general.name') }}{{ trans('general.name') }}{{ trans('bills.quantity') }}{{ trans('bills.quantity') }}{{ trans('bills.price') }}{{ trans('bills.price') }}{{ trans_choice('general.taxes', 1) }}{{ trans_choice('general.taxes', 1) }}{{ trans('bills.total') }}{{ trans('bills.total') }}
+
+
{{ trans('bills.sub_total') }} + {{ Form::moneyGroup('sub_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.sub', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) @@ -87,8 +87,8 @@ @stack('sub_total_td_end') @stack('add_discount_td_start') -
+
+ {{ Form::moneyGroup('discount_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.discount', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) @@ -139,11 +139,11 @@ @stack('add_discount_td_end') @stack('tax_total_td_start') -
+
{{ trans_choice('general.taxes', 1) }} + {{ Form::moneyGroup('tax_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.tax', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) @@ -152,11 +152,11 @@ @stack('tax_total_td_end') @stack('grand_total_td_start') -
+
{{ trans('bills.total') }} + {{ Form::moneyGroup('grand_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.total', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) diff --git a/resources/views/purchases/bills/edit.blade.php b/resources/views/purchases/bills/edit.blade.php index 5cc4d6e74..3027520f8 100644 --- a/resources/views/purchases/bills/edit.blade.php +++ b/resources/views/purchases/bills/edit.blade.php @@ -35,29 +35,29 @@
- + @stack('actions_th_start') - + @stack('actions_th_end') @stack('name_th_start') - + @stack('name_th_end') @stack('quantity_th_start') - + @stack('quantity_th_end') @stack('price_th_start') - + @stack('price_th_end') @stack('taxes_th_start') - + @stack('taxes_th_end') @stack('total_th_start') - + @stack('total_th_end') @@ -65,21 +65,21 @@ @include('purchases.bills.item') @stack('add_item_td_start') - - + - + @stack('add_item_td_end') @stack('sub_total_td_start') - - + - - + - - + - - + - @stack('actions_td_start') -
{{ trans('general.actions') }}{{ trans('general.actions') }}{{ trans('general.name') }}{{ trans('general.name') }}{{ trans('bills.quantity') }}{{ trans('bills.quantity') }}{{ trans('bills.price') }}{{ trans('bills.price') }}{{ trans_choice('general.taxes', 1) }}{{ trans_choice('general.taxes', 1) }}{{ trans('bills.total') }}{{ trans('bills.total') }}
+
+
{{ trans('bills.sub_total') }} + {{ Form::moneyGroup('sub_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.sub', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) @@ -88,8 +88,8 @@ @stack('sub_total_td_end') @stack('add_discount_td_start') -
+
+ {{ Form::moneyGroup('discount_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.discount', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) @@ -140,11 +140,11 @@ @stack('add_discount_td_end') @stack('tax_total_td_start') -
+
{{ trans_choice('general.taxes', 1) }} + {{ Form::moneyGroup('tax_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.tax', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) @@ -153,11 +153,11 @@ @stack('tax_total_td_end') @stack('grand_total_td_start') -
+
{{ trans('bills.total') }} + {{ Form::moneyGroup('grand_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.total', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) diff --git a/resources/views/purchases/bills/item.blade.php b/resources/views/purchases/bills/item.blade.php index 271a9f2fa..ca8ff9498 100644 --- a/resources/views/purchases/bills/item.blade.php +++ b/resources/views/purchases/bills/item.blade.php @@ -1,7 +1,7 @@ -
+ @stack('actions_button_start') @stack('name_input_start') + @stack('quantity_input_start') + @stack('price_input_start') {{ Form::moneyGroup('name', '', '', ['required' => 'required', 'v-model' => 'row.price', 'data-item' => 'price', 'currency' => $currency, 'dynamic-currency' => 'currency', 'change' => 'row.price = $event; onCalculateTotal'], 0.00, 'text-right input-price') }} + @stack('tax_id_input_start') + - + @stack('actions_th_start') - + @stack('actions_th_end') @stack('name_th_start') - + @stack('name_th_end') @stack('quantity_th_start') - + @stack('quantity_th_end') @stack('price_th_start') - + @stack('price_th_end') @stack('taxes_th_start') - + @stack('taxes_th_end') @stack('total_th_start') - + @stack('total_th_end') @@ -64,21 +64,21 @@ @include('sales.invoices.item') @stack('add_item_td_start') - - + - + @stack('add_item_td_end') @stack('sub_total_td_start') - - + - - + - - + - - + -
{{ trans('general.actions') }}{{ trans('general.actions') }}{{ trans('general.name') }}{{ trans('general.name') }}{{ trans($text_override['quantity']) }}{{ trans($text_override['quantity']) }}{{ trans($text_override['price']) }}{{ trans($text_override['price']) }}{{ trans_choice('general.taxes', 1) }}{{ trans_choice('general.taxes', 1) }}{{ trans('invoices.total') }}{{ trans('invoices.total') }}
+
+
{{ trans('invoices.sub_total') }} + {{ Form::moneyGroup('sub_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.sub', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) @@ -87,8 +87,8 @@ @stack('sub_total_td_end') @stack('add_discount_td_start') -
+
+ {{ Form::moneyGroup('discount_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.discount', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) @@ -139,11 +139,11 @@ @stack('add_discount_td_end') @stack('tax_total_td_start') -
+
{{ trans_choice('general.taxes', 1) }} + {{ Form::moneyGroup('tax_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.tax', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) @@ -152,11 +152,11 @@ @stack('tax_total_td_end') @stack('grand_total_td_start') -
+
{{ trans('invoices.total') }} + {{ Form::moneyGroup('grand_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.total', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) diff --git a/resources/views/sales/invoices/edit.blade.php b/resources/views/sales/invoices/edit.blade.php index 0e9804987..05d0d8a97 100644 --- a/resources/views/sales/invoices/edit.blade.php +++ b/resources/views/sales/invoices/edit.blade.php @@ -35,29 +35,29 @@
- + @stack('actions_th_start') - + @stack('actions_th_end') @stack('name_th_start') - + @stack('name_th_end') @stack('quantity_th_start') - + @stack('quantity_th_end') @stack('price_th_start') - + @stack('price_th_end') @stack('taxes_th_start') - + @stack('taxes_th_end') @stack('total_th_start') - + @stack('total_th_end') @@ -65,21 +65,21 @@ @include('sales.invoices.item') @stack('add_item_td_start') - - + - + @stack('add_item_td_end') @stack('sub_total_td_start') - - + - - + - - + - - + - @stack('actions_td_start') -
{{ trans('general.actions') }}{{ trans('general.actions') }}{{ trans('general.name') }}{{ trans('general.name') }}{{ trans($text_override['quantity']) }}{{ trans($text_override['quantity']) }}{{ trans($text_override['price']) }}{{ trans($text_override['price']) }}{{ trans_choice('general.taxes', 1) }}{{ trans_choice('general.taxes', 1) }}{{ trans('invoices.total') }}{{ trans('invoices.total') }}
+
+
{{ trans('invoices.sub_total') }} + {{ Form::moneyGroup('sub_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.sub', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) @@ -88,8 +88,8 @@ @stack('sub_total_td_end') @stack('add_discount_td_start') -
+
+ {{ Form::moneyGroup('discount_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.discount', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) @@ -140,11 +140,11 @@ @stack('add_discount_td_end') @stack('tax_total_td_start') -
+
{{ trans_choice('general.taxes', 1) }} + {{ Form::moneyGroup('tax_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.tax', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) @@ -153,11 +153,11 @@ @stack('tax_total_td_end') @stack('grand_total_td_start') -
+
{{ trans('invoices.total') }} + {{ Form::moneyGroup('grand_total', '', '', ['disabled' => 'disabled', 'required' => 'required', 'v-model' => 'totals.total', 'currency' => $currency, 'dynamic-currency' => 'currency', 'masked' => 'true'], 0.00, 'text-right d-none') }} @money(0, $currency->code, true) diff --git a/resources/views/sales/invoices/item.blade.php b/resources/views/sales/invoices/item.blade.php index 3c6d2540b..92b02f660 100644 --- a/resources/views/sales/invoices/item.blade.php +++ b/resources/views/sales/invoices/item.blade.php @@ -1,7 +1,7 @@ -
+ @stack('actions_button_start') @stack('name_input_start') + @stack('quantity_input_start') + @stack('price_input_start') {{ Form::moneyGroup('name', '', '', ['required' => 'required', 'v-model' => 'row.price', 'data-item' => 'price', 'currency' => $currency, 'dynamic-currency' => 'currency', 'change' => 'row.price = $event; onCalculateTotal'], 0.00, 'text-right input-price') }} + @stack('tax_id_input_start') +