Invoice create invocie item multible tax
This commit is contained in:
		| @@ -189,6 +189,14 @@ | ||||
|                             placeholder: { | ||||
|                                 id: '-1', // the value of the option | ||||
|                                 text: "{{ trans('general.form.select.field', ['field' => trans_choice('general.taxes', 1)]) }}" | ||||
|                             }, | ||||
|                             escapeMarkup: function (markup) { | ||||
|                                 return markup; | ||||
|                             }, | ||||
|                             language: { | ||||
|                                 noResults: function () { | ||||
|                                     return '<span id="tax-add-new"><i class="fa fa-plus"> {{ trans('general.title.new', ['type' => trans_choice('general.tax_rates', 1)]) }}</span>'; | ||||
|                                 } | ||||
|                             } | ||||
|                         }); | ||||
|  | ||||
| @@ -464,7 +472,7 @@ | ||||
|                 url: '{{ url("common/items/totalItem") }}', | ||||
|                 type: 'POST', | ||||
|                 dataType: 'JSON', | ||||
|                 data: $('#currency_code, #discount input[type=\'number\'], #items input[type=\'text\'],#items input[type=\'number\'],#items input[type=\'hidden\'], #items textarea, #items select'), | ||||
|                 data: $('#currency_code, #discount input[type=\'number\'], #items input[type=\'text\'],#items input[type=\'number\'],#items input[type=\'hidden\'], #items textarea, #items select').serialize(), | ||||
|                 headers: { 'X-CSRF-TOKEN': '{{ csrf_token() }}' }, | ||||
|                 success: function(data) { | ||||
|                     if (data) { | ||||
|   | ||||
| @@ -35,7 +35,7 @@ | ||||
|     @stack('taxes_td_start') | ||||
|     <td {{ $errors->has('item.' . $item_row . '.tax_id') ? 'class="has-error"' : '' }}> | ||||
|         @stack('tax_id_input_start') | ||||
|         {!! Form::select('item[' . $item_row . '][tax_id][]', $taxes, empty($item) ? setting('general.default_tax') : $item->tax_id, ['id'=> 'item-tax-'. $item_row, 'class' => 'form-control tax-select2', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.taxes', 1)]), 'multiple' => 'true']) !!} | ||||
|         {!! Form::select('item[' . $item_row . '][tax_id][]', $taxes, empty($item) ? setting('general.default_tax') : $item->tax_id, ['id'=> 'item-tax-'. $item_row, 'class' => 'form-control tax-select2', 'multiple' => 'true']) !!} | ||||
|         {!! $errors->first('item.' . $item_row . '.tax_id', '<p class="help-block">:message</p>') !!} | ||||
|         @stack('tax_id_input_end') | ||||
|     </td> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user