@php $hide_tax = ''; if( session()->get('business.enable_inline_tax') == 0){ $hide_tax = 'hide'; } $currency_precision = session('business.currency_precision', 2); $quantity_precision = session('business.quantity_precision', 2); @endphp
| # | @lang( 'product.sku' ) | @lang( 'product.product_name' ) | @lang( 'product.product_purchase_qty' ) | @lang( 'product.product_mrp' ) | {{--@lang( 'lang_v1.unit_cost_before_discount' ) | --}}@lang( 'product.product_basic_cost' ) | @lang( 'product.product_discount_per' ) | @lang( 'product.product_discount_per1' ) | {{--@lang( 'lang_v1.discount_percent' ) | --}}@lang( 'product.product_discount_amnt' ) | @lang( 'product.product_free_qty' ) | @lang( 'purchase.unit_cost_before_tax' ) | {{--@lang( 'purchase.subtotal_before_tax' ) | --}}@lang( 'product.gross_amount' ) | @lang( 'purchase.product_tax' ) | @lang( 'purchase.net_cost' ) | {{--@lang( 'product.product_cost_price' ) | --}}@lang( 'Net Amount' ) | @lang( 'product.net_margin_mrp' ) | {{-- @lang( 'purchase.unit_selling_price' ) --}} @lang( 'product.product_selling_price' ) (@lang('product.inc_of_tax')) | @if(session('business.enable_lot_number'))@lang('lang_v1.lot_number') | @endif @if(session('business.enable_product_expiry'))@lang('product.mfg_date') | @lang('product.exp_date') | @endif|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$purchase_line->variations->sub_sku}} @if( $product->type == 'variable' ) {{---({{ $variation->product_variation->name }} : {{ $variation->name }}) ({{ $variation->name }})--}} @endif @if(!empty($is_purchase_order)) @endif | {{ $purchase_line->product->name }} |
@if(!empty($purchase_line->purchase_order_line_id) && !empty($common_settings['enable_purchase_order']))
{!! Form::hidden('purchases[' . $loop->index . '][purchase_order_line_id]', $purchase_line->purchase_order_line_id ); !!}
@endif
@if(!empty($purchase_line->purchase_requisition_line_id) && !empty($common_settings['enable_purchase_requisition']))
{!! Form::hidden('purchases[' . $loop->index . '][purchase_requisition_line_id]', $purchase_line->purchase_requisition_line_id ); !!}
@endif
{!! Form::hidden('purchases[' . $loop->index . '][product_id]', $purchase_line->product_id ); !!}
{!! Form::hidden('purchases[' . $loop->index . '][variation_id]', $purchase_line->variation_id ); !!}
{!! Form::hidden('purchases[' . $loop->index . '][purchase_line_id]',
$purchase_line->id); !!}
@php
$check_decimal = 'false';
if($purchase_line->product->unit->allow_decimal == 0){
$check_decimal = 'true';
}
$max_quantity = 0;
if(!empty($purchase_line->purchase_order_line_id) && !empty($common_settings['enable_purchase_order'])){
$max_quantity = $purchase_line->purchase_order_line->quantity - $purchase_line->purchase_order_line->po_quantity_purchased + $purchase_line->quantity;
}
@endphp
@if(!empty($purchase_line->sub_units_options))
@else {{ $purchase_line->product->unit->short_name }} @endif @if(!empty($purchase_line->product->second_unit)) @lang('lang_v1.quantity_in_second_unit', ['unit' => $purchase_line->product->second_unit->short_name])*: @endif |
{!! Form::text('purchases[' . $loop->index . '][product_mrp]', number_format($purchase_line->variations->product_mrp, $currency_precision, $currency_details->decimal_separator, $currency_details->thousand_separator), ['class' => 'form-control input-sm input-sm-cust-width product_mrp input_number', 'required', 'readonly']); !!} | {!! Form::text('purchases[' . $loop->index . '][pp_without_discount]', number_format($purchase_line->pp_without_discount/$purchase->exchange_rate, $currency_precision, $currency_details->decimal_separator, $currency_details->thousand_separator), ['class' => 'form-control input-sm input-sm-cust-width purchase_unit_cost_without_discount input_number', 'required']); !!} | {!! Form::text('purchases[' . $loop->index . '][discount_percent]', number_format($purchase_line->discount_percent, $currency_precision, $currency_details->decimal_separator, $currency_details->thousand_separator), ['class' => 'form-control input-sm input-small-cust-width inline_discounts input_number', 'required']); !!} | {!! Form::text('purchases[' . $loop->index . '][discount_percent1]', number_format($purchase_line->discount_percent1, $currency_precision, $currency_details->decimal_separator, $currency_details->thousand_separator), ['class' => 'form-control input-sm input-small-cust-width inline_discounts1 input_number', 'required']); !!} | {!! Form::text('purchases[' . $loop->index . '][inline_discount_amount]', number_format($purchase_line->inline_discount_amount, $currency_precision, $currency_details->decimal_separator, $currency_details->thousand_separator), ['class' => 'form-control input-sm input-small-cust-width inline_discount_amount input_number', 'required']); !!} | {!! Form::text('purchases[' . $loop->index . '][free_qty]', number_format($purchase_line->free_qty, $currency_precision, $currency_details->decimal_separator, $currency_details->thousand_separator), ['class' => 'form-control input-sm input-small-cust-width free_qty input_number', 'required']); !!} | {!! Form::text('purchases[' . $loop->index . '][purchase_price]', number_format($purchase_line->purchase_price/$purchase->exchange_rate, $currency_precision, $currency_details->decimal_separator, $currency_details->thousand_separator), ['class' => 'form-control input-sm input-sm-cust-width purchase_unit_cost input_number', 'required']); !!} | {{number_format($purchase_line->quantity * $purchase_line->purchase_price/$purchase->exchange_rate, $currency_precision, $currency_details->decimal_separator, $currency_details->thousand_separator)}} |
{{number_format($purchase_line->item_tax/$purchase->exchange_rate, $currency_precision, $currency_details->decimal_separator, $currency_details->thousand_separator)}}
{!! Form::hidden('purchases[' . $loop->index . '][item_tax]', number_format($purchase_line->item_tax/$purchase->exchange_rate, $currency_precision, $currency_details->decimal_separator, $currency_details->thousand_separator), ['class' => 'purchase_product_unit_tax']); !!}
|
{!! Form::text('purchases[' . $loop->index . '][purchase_price_inc_tax]', number_format($purchase_line->purchase_price_inc_tax/$purchase->exchange_rate, $currency_precision, $currency_details->decimal_separator, $currency_details->thousand_separator), ['class' => 'form-control input-sm input-sm-cust-width purchase_unit_cost_after_tax input_number', 'required']); !!} | {{number_format($purchase_line->purchase_price_inc_tax * $purchase_line->quantity/$purchase->exchange_rate, $currency_precision, $currency_details->decimal_separator, $currency_details->thousand_separator)}} | @if(empty($is_purchase_order))@if(session('business.enable_editing_product_from_purchase')) {!! Form::text('purchases[' . $loop->index . '][default_sell_price]', number_format($sp, $currency_precision, $currency_details->decimal_separator, $currency_details->thousand_separator), ['class' => 'form-control input-sm input-sm-cust-width input_number default_sell_price', 'required']); !!} @else {{number_format($sp, $currency_precision, $currency_details->decimal_separator, $currency_details->thousand_separator)}} @endif | @if(session('business.enable_lot_number')){!! Form::text('purchases[' . $loop->index . '][lot_number]', $purchase_line->lot_number, ['class' => 'form-control input-sm input-sm-cust-width']); !!} | @endif @if(session('business.enable_product_expiry'))
{{-- Maybe this condition for checkin expiry date need to be removed --}}
@php
$expiry_period_type = !empty($product->expiry_period_type) ? $product->expiry_period_type : 'month';
@endphp
@if(!empty($expiry_period_type))
@if(session('business.expiry_type') == 'add_manufacturing')
@php
$hide_mfg = false;
@endphp
@else
@php
$hide_mfg = true;
@endphp
@endif
@php
$mfg_date = !empty($imported_data['mfg_date']) ? $imported_data['mfg_date'] : null;
$exp_date = !empty($imported_data['exp_date']) ? $imported_data['exp_date'] : null;
@endphp
{{---@lang('product.mfg_date'):--}}
@else
@lang('product.not_applicable')
@endif
|
{{---@lang('product.exp_date'):---}}
{{--
--}}
{!! Form::text('purchases[' . $row_count . '][exp_date]', $exp_date, ['class' => 'form-control input-sm input-sm-cust-width expiry_datepicker exp_date', 'style="z-index:0"', 'readonly']); !!}
|
@endif
@endif