@php
$common_settings = session()->get('business.common_settings');
$multiplier = 1;
$action = !empty($action) ? $action : '';
$is_enable_product_multi_unit = !empty($common_settings['enable_product_multi_unit']);
@endphp
@foreach($sub_units as $key => $value)
@if (!empty($product->first_conversion_unit_id) && $product->sub_unit_id == $product->first_conversion_unit_id)
@php
$multiplier = $product->first_conversion_unit_rate;
@endphp
@elseif (!empty($product->second_conversion_unit_id) && $product->sub_unit_id == $product->second_conversion_unit_id)
@php
$multiplier = $product->first_conversion_unit_rate*$product->second_conversion_unit_rate;
@endphp
@else
@if(!empty($product->sub_unit_id) && $product->sub_unit_id == $key)
@php
$multiplier = $value['multiplier'];
@endphp
@endif
@endif
@endforeach
@php
$product_name = $product->product_name . ' ' . $product->sub_sku ;
if(!empty($product->brand)){ $product_name .= ' ' . $product->brand ;}
@endphp
{!! $product_name !!}
@if(!empty($pos_settings['show_last_price']))
@if(!empty($last_purchase_line))
@lang('lang_v1.last_purchase_price'): @format_currency($last_purchase_line->pp_without_discount)
@else
@lang('lang_v1.last_purchase_price'): @format_currency($product->default_purchase_price)
@endif
@if(!empty($last_sell_line))
@lang('lang_v1.last_selling_price'): @format_currency($last_sell_line->unit_price_before_discount)
@else
@lang('lang_v1.last_selling_price'): @format_currency($product->sell_price_inc_tax)
@endif
@endif
|
@if(!empty($product->transaction_sell_lines_id))
@endif
@if(empty($product->quantity_ordered))
@php
$product->quantity_ordered = 1;
@endphp
@endif
@php
$allow_decimal = true;
if($product->unit_allow_decimal != 1) {
$allow_decimal = false;
}
@endphp
@foreach($sub_units as $key => $value)
@if(!empty($product->sub_unit_id) && $product->sub_unit_id == $key)
@php
$unit_name = $value['name'];
if($value['allow_decimal']) {
$allow_decimal = true;
}
@endphp
@endif
@endforeach
@if(count($sub_units) > 0)
@else
{{$product->unit}}
@endif
@if(!empty($product->second_unit))
@lang('lang_v1.quantity_in_second_unit', ['unit' => $product->second_unit])*:
@endif
@if($product->product_type == 'combo'&& !empty($product->combo_products))
@foreach($product->combo_products as $k => $combo_product)
@if(!empty($action) && $action == 'edit')
@php
$combo_product['qty_required'] = $combo_product['quantity'] / $product->quantity_ordered;
$qty_total = $combo_product['quantity'];
@endphp
@else
@php
$qty_total = $combo_product['qty_required'];
@endphp
@endif
@if(!empty($action) && $action == 'edit')
@endif
@endforeach
@endif
|
{{$product->default_purchase_price}}
|
{{$product->profit_percent}}
|
{{$product->default_sell_price}}
|
{{$product->quantity_ordered * $product->sell_price_inc_tax}}
|
|