@lang('messages.date'): {{@format_date($purchase->transaction_date)}}
@lang('purchase.business_location'): {{ $purchase->location->name }}
| # | @lang('product.product_name') | @lang('sale.unit_price') | @if(!empty($common_settings['enable_serial_number']))Select Return Serial No. | @endif@lang('purchase.purchase_quantity') | @lang('lang_v1.quantity_left') | @lang('lang_v1.return_quantity') | @lang('lang_v1.return_subtotal') | ||
|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $purchase_line->product->name }} @if( $purchase_line->product->type == 'variable') - {{ $purchase_line->variations->product_variation->name}} - {{ $purchase_line->variations->name}} @endif | {{ $purchase_line->purchase_price_inc_tax }} | @if(!empty($common_settings['enable_serial_number'])) @if($purchase_line->product->enable_serial_number == "1")@php $product_serial_numbers = App\SerialNumber::where('serial_purchase_code', $purchase_line->serial_purchase_code) ->where('stock_status', 'available') ->where('is_p_return', null) ->get(); $alredy_return_serial_numbers = App\SerialNumber::where('serial_purchase_code', $purchase_line->serial_purchase_code) ->where('is_p_return', 1) ->where('stock_status', 'available') ->get(); @endphp | @elseNo Serial | @endif @endif{{ $purchase_line->quantity }} {{$unit_name}} | {{ $qty_available }} {{$unit_name}} | @if ($purchase_line->product->enable_serial_number == "1")
@php
$check_decimal = 'false';
if($purchase_line->product->unit->allow_decimal == 0){
$check_decimal = 'true';
}
@endphp
product->enable_stock)
data-rule-max-value="{{$qty_available}}"
data-msg-max-value="@lang('validation.custom-messages.quantity_not_available', ['qty' => $purchase_line->formatted_qty_available, 'unit' => $unit_name ])"
@endif
>
|
@else
@php $check_decimal = 'false'; if($purchase_line->product->unit->allow_decimal == 0){ $check_decimal = 'true'; } @endphp product->enable_stock) data-rule-max-value="{{$qty_available}}" data-msg-max-value="@lang('validation.custom-messages.quantity_not_available', ['qty' => $purchase_line->formatted_qty_available, 'unit' => $unit_name ])" @endif > | @endif