From f9de526cfd5d1b7a3bd7fb4de41c94c322031f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Sat, 29 Feb 2020 12:27:13 +0300 Subject: [PATCH] Invoice and Bill item page fixes. --- .../views/purchases/bills/item.blade.php | 73 +++++++++++-------- resources/views/sales/invoices/item.blade.php | 73 +++++++++++-------- 2 files changed, 88 insertions(+), 58 deletions(-) diff --git a/resources/views/purchases/bills/item.blade.php b/resources/views/purchases/bills/item.blade.php index 3c224b275..aab4fec40 100644 --- a/resources/views/purchases/bills/item.blade.php +++ b/resources/views/purchases/bills/item.blade.php @@ -4,20 +4,22 @@ @stack('actions_button_start') @stack('actions_button_end') @stack('actions_td_end') @stack('name_td_start') - + @stack('name_input_start') - {!! $errors->first('item.name', '

:message

') !!} + +
+
@stack('name_input_end') @stack('name_td_end') @stack('quantity_td_start') - + @stack('quantity_input_start') - - {!! $errors->first('item.quantity', '

:message

') !!} + + +
+
@stack('quantity_input_end') @stack('quantity_td_end') @stack('price_td_start') - + @stack('price_input_start') - {{ Form::moneyGroup('name', '', '', ['required' => 'required', 'v-model' => 'row.price', 'data-item' => 'price', 'currency' => $currency, 'change' => 'row.price = $event; onCalculateTotal'], 0.00, 'text-right input-price') }} - - {!! $errors->first('item.price', '

:message

') !!} + {{ Form::moneyGroup('name', '', '', ['required' => 'required', 'v-model' => 'row.price', 'v-error' => 'form.errors.get(\'items.\' + index + \'.price\')', 'v-error-message' => 'form.errors.get(\'items.\' + index + \'.price\')' , 'data-item' => 'price', 'currency' => $currency, 'dynamic-currency' => 'currency', 'change' => 'row.price = $event; form.errors.clear(\'items.\' + index + \'.price\'); onCalculateTotal'], 0.00, 'text-right input-price') }} + + @stack('price_input_end') @stack('price_td_end') @stack('taxes_td_start') - + @stack('tax_id_input_start') @stack('actions_button_start') @stack('actions_button_end') @stack('actions_td_end') @stack('name_td_start') - + @stack('name_input_start') - {!! $errors->first('item.name', '

:message

') !!} + +
+
@stack('name_input_end') @stack('name_td_end') @stack('quantity_td_start') - + @stack('quantity_input_start') - - {!! $errors->first('item.quantity', '

:message

') !!} + + +
+
@stack('quantity_input_end') @stack('quantity_td_end') @stack('price_td_start') - + @stack('price_input_start') - {{ Form::moneyGroup('name', '', '', ['required' => 'required', 'v-model' => 'row.price', 'data-item' => 'price', 'currency' => $currency, 'change' => 'row.price = $event; onCalculateTotal'], 0.00, 'text-right input-price') }} - - {!! $errors->first('item.price', '

:message

') !!} + {{ Form::moneyGroup('name', '', '', ['required' => 'required', 'v-model' => 'row.price', 'v-error' => 'form.errors.get(\'items.\' + index + \'.price\')', 'v-error-message' => 'form.errors.get(\'items.\' + index + \'.price\')' , 'data-item' => 'price', 'currency' => $currency, 'dynamic-currency' => 'currency', 'change' => 'row.price = $event; form.errors.clear(\'items.\' + index + \'.price\'); onCalculateTotal'], 0.00, 'text-right input-price') }} + + @stack('price_input_end') @stack('price_td_end') @stack('taxes_td_start') - + @stack('tax_id_input_start')