@foreach( $variations as $variation) {{ $product->name }} ({{$variation->sub_sku}}) @if( $product->type == 'variable' )
({{ $variation->product_variation->name }} : {{ $variation->name }}) @endif {!! Form::hidden('purchases[' . $row_count . '][product_id]', $product->id ); !!} {!! Form::hidden('purchases[' . $row_count . '][variation_id]', $variation->id ); !!} {!! Form::text('purchases[' . $row_count . '][quantity]', number_format(1, 2, $currency_details->decimal_separator, $currency_details->thousand_separator), ['class' => 'form-control input-sm purchase_quantity input_number mousetrap', 'required']); !!} {{ $product->unit->short_name }} {!! Form::text('purchases[' . $row_count . '][pp_without_discount]', number_format($variation->default_purchase_price, 2, $currency_details->decimal_separator, $currency_details->thousand_separator), ['class' => 'form-control input-sm purchase_unit_cost_without_discount input_number', 'required']); !!} {!! Form::text('purchases[' . $row_count . '][discount_percent]', 0, ['class' => 'form-control input-sm inline_discounts input_number', 'required']); !!} {!! Form::text('purchases[' . $row_count . '][purchase_price]', number_format($variation->default_purchase_price, 2, $currency_details->decimal_separator, $currency_details->thousand_separator), ['class' => 'form-control input-sm purchase_unit_cost input_number', 'required']); !!} 0
{!! Form::hidden('purchases[' . $row_count . '][item_tax]', 0, ['class' => 'purchase_product_unit_tax']); !!} 0.00
@php $dpp_inc_tax = number_format($variation->dpp_inc_tax, 2, $currency_details->decimal_separator, $currency_details->thousand_separator); if($hide_tax == 'hide'){ $dpp_inc_tax = number_format($variation->default_purchase_price, 2, $currency_details->decimal_separator, $currency_details->thousand_separator); } @endphp {!! Form::text('purchases[' . $row_count . '][purchase_price_inc_tax]', $dpp_inc_tax, ['class' => 'form-control input-sm purchase_unit_cost_after_tax input_number', 'required']); !!} 0 {!! Form::text('purchases[' . $row_count . '][profit_percent]', number_format($variation->profit_percent, 2, $currency_details->decimal_separator, $currency_details->thousand_separator), ['class' => 'form-control input-sm input_number profit_percent', 'required']); !!} @if(session('business.enable_editing_product_from_purchase')) {!! Form::text('purchases[' . $row_count . '][default_sell_price]', number_format($variation->default_sell_price, 2, $currency_details->decimal_separator, $currency_details->thousand_separator), ['class' => 'form-control input-sm input_number default_sell_price', 'required']); !!} @else {{ number_format($variation->default_sell_price, 2, $currency_details->decimal_separator, $currency_details->thousand_separator)}} @endif @if(session('business.enable_lot_number')) {!! Form::text('purchases[' . $row_count . '][lot_number]', null, ['class' => 'form-control input-sm']); !!} @endif @if(session('business.enable_product_expiry')) {{-- Maybe this condition for checkin expiry date need to be removed --}} @if(!empty($product->expiry_period_type)) @if(session('business.expiry_type') == 'add_manufacturing') @php $hide_mfg = false; @endphp @else @php $hide_mfg = true; @endphp @endif @lang('product.mfg_date'):
{!! Form::text('purchases[' . $row_count . '][mfg_date]', null, ['class' => 'form-control input-sm expiry_datepicker mfg_date', 'readonly']); !!}
@lang('product.exp_date'):
{!! Form::text('purchases[' . $row_count . '][exp_date]', null, ['class' => 'form-control input-sm expiry_datepicker exp_date', 'readonly']); !!}
@else
@lang('product.not_applicable')
@endif @endif
Notice: Undefined variable: row_count in /home/edomesoft/public_html/pos/umpos/resources/views/purchase/partials/purchase_entry_row.blade.php on line 114
@endforeach