@section('title','Purchase return - POS') @extends('layouts.master') @section('style') {{-- {{Html::style('assets/public_css/index.css')}} --}} @endsection @section('content')
{{trans('label.Purchase Invoice')}}
@if (Session::has('message'))
{{ Session::get('message') }}
@endif
{{csrf_field()}}
@php $discount_total=0; $vat_total=0; $gross_total=0; $net_line_total=0; @endphp @foreach($porder_details as $pdetails) @if($pdetails->pqty>0) @php $discount_rate=$pdetails->discount_rate ?? 0; $vat_rate=$pdetails->vat_rate ?? 0; $per_unitgros=$pdetails->l_gross_cost_price/$pdetails->qty; $dislinetotal=(($per_unitgros*$discount_rate)/100)*$pdetails->pqty; $grossltad=($per_unitgros-($per_unitgros*$discount_rate)/100)*$pdetails->pqty; $grossvatlt=(($grossltad*$vat_rate)/100); $linetav=$grossltad+$grossvatlt; // $discount_total=$discount_total+$dislinetotal; $vat_total=$vat_total+$grossvatlt; $gross_total=$gross_total+($per_unitgros*$pdetails->pqty); $net_line_total=$net_line_total+$linetav; @endphp @endif @endforeach
{{trans('label.Barcode')}} {{trans('label.Product Name')}} {{trans('label.Quantity')}} {{trans('label.Price_unit')}} {{trans('label.VAT')}} % {{trans('label.Discount')}} % {{trans('label.Line Total')}} {{trans('label.Action')}}
bqcode!=null) readonly="readonly" @endif>
@php if($porder->payment_amount<$porder->net_amount){ $initialdue=$porder->net_amount-$porder->payment_amount; }else{ $initialdue=0; } if ($initialdue !=0 && $initialdue >$net_line_total) { $payment_net_amount=$net_line_total; $cash_received=0; }elseif($initialdue !=0 && $initialdue <$net_line_total){ $payment_net_amount=$initialdue; $cash_received=$net_line_total-$initialdue; }else{ $payment_net_amount=$net_line_total; $cash_received=0; } @endphp
@endsection @section('script') {{Html::script('assets/js/sticky-kit.min.js')}} {{Html::script('assets/js/jquery.sparkline.min.js')}} {{Html::script('assets/js/jquery.dataTables.min.js')}} {{Html::script('assets/js/dataTables.buttons.min.js')}} {{Html::script('assets/js/buttons.flash.min.js')}} {{Html::script('assets/js/jszip.min.js')}} {{Html::script('assets/js/pdfmake.min.js')}} {{Html::script('assets/js/vfs_fonts.js')}} {{Html::script('assets/js/buttons.html5.min.js')}} {{Html::script('assets/js/buttons.print.min.js')}} {{Html::script('assets/custom_js/crud.js')}} {{Html::script('assets/custom_js/add_more.js')}} {{Html::script('assets/custom_js/purchase_return.js')}} @endsection