@extends('Reports.template') @section('title') Purchase Order Report @endsection @section('ExternalCss') @parent @if($documentSetupData != null) @php $pageSize = $documentSetupData->page_size; $pageType = $documentSetupData->page_type; $pageOrientation = ($documentSetupData->page_orientation == "P" ) ? "Potrait" : "Landscape"; $pageLM = $documentSetupData->page_LM."mm"; $pageTM = $documentSetupData->page_TM."mm"; $pageRM = $documentSetupData->page_RM."mm"; $pageBM = $documentSetupData->page_BM."mm"; @endphp @endif @endsection @section('Content') @if($pageType != "P") @endif @php $currentTime = \Carbon\Carbon::now(); @endphp @php $sr = 1; @endphp @foreach ($poTransactionData as $poTransaction) @if ($purchase_order_type=="RPO") @else @endif @if($poTransaction->discount_type == 'P') @if ($purchase_order_type=="RPO") @else @endif @else @if ($purchase_order_type=="RPO") @else @endif @endif @if ($purchase_order_type=="RPO") @else @endif @if ($purchase_order_type=="RPO") @else @endif @if($poTransaction->additional_product_description != null) @endif @foreach($poDeliveryScheduleData as $schedule) @if($poTransaction->product_id == $schedule->product_id) @if ($purchase_order_type=="RPO") @else @endif @endif @endforeach @endforeach @if(count($poTransactionData) < 5) @endif @if ($purchase_order_type=="RPO") @else @endif @if ($purchase_order_type=="RPO") @else @endif @if ($purchase_order_type=="RPO") @else @endif @if ($purchase_order_type=="RPO") @else @endif @if ($purchase_order_type=="RPO") @else @endif @if ($purchase_order_type=="RPO") @else @endif @if ($purchase_order_type=="RPO") @else @endif @php $currentTime = \Carbon\Carbon::now(); @endphp
@if($businessEntityMasterData[0]->logo != null) Pharmacy Logologo )}}"/> @endif
{{ $businessEntityMasterData[0]->name }}
{{$businessEntityMasterData[0]->add1. " " .$businessEntityMasterData[0]->add2 ." ".$businessEntityMasterData[0]->city." : " .$businessEntityMasterData[0]->pincode }}
{{"Phone : ".$businessEntityMasterData[0]->tel1}}
@if ($businessEntityMasterData[0]->pan_no != '') {{ "PAN No : ".$businessEntityMasterData[0]->pan_no.", " }} @endif @if ($businessEntityMasterData[0]->tan_no != '') {{ "TAN No : ".$businessEntityMasterData[0]->tan_no.", " }} @endif @if ($businessEntityMasterData[0]->CIN_NO != '') {{ "CIN No : ".$businessEntityMasterData[0]->CIN_NO.", " }} @endif @if ($businessEntityMasterData[0]->tinno != '') {{ "TIN No : ".$businessEntityMasterData[0]->tinno }} @endif
@if ($purchase_order_type=="RPO") RATE CONTRACT PURCHASE ORDER @else PURCHASE ORDER @endif

{{$poHeader->supplier_name}}
{{$poHeader->supplier_address1}} {{$poHeader->supplier_address2}} {{$poHeader->supplier_city}} {{$poHeader->supplier_pincode}}

{{$businessEntityMasterData[0]->name}}
{{$businessEntityMasterData[0]->add1. " " .$businessEntityMasterData[0]->add2 ." ".$businessEntityMasterData[0]->city." : " .$businessEntityMasterData[0]->pincode }}
PO No
PO Date
@if ($purchase_order_type=="RPO") PO Valid Until
@endif Prepared By
Approved By
: {{ $poHeader->po_fyear.'/'.$poHeader->po_id}}
: {{\Helper::getDisplayDate($poHeader->po_date)}}
@if ($purchase_order_type=="RPO") : {{\Helper::getDisplayDate($poHeader->po_valid_upto)}}
@endif : {{strtoupper($poHeader->createdFname.' '.$poHeader->createdLname)}}
: {{strtoupper($poHeader->approvedFname.' '.$poHeader->approvedLname)}}
 Sr.  Product Name HSN Qty UOM Pkg Rate Discount % Discount Amt Taxable GST% GST Amt Total
 {{$sr++}}   {{ substr($poTransaction->product_name, 0, 60) }} {{ \Helper::zeroValueToDash($poTransaction->product_hsn_code) }}{{$poTransaction->po_quantity}}{{$poTransaction->unit_abbrev}} {{"1x".$poTransaction->conversion_factor}} {{number_format($poTransaction->price,2)}}{{number_format($poTransaction->discount,1)}}{{number_format($poTransaction->discount_amt,2)}}0.0{{number_format($poTransaction->discount_amt,2)}}{{number_format($poTransaction->taxable_amt,2)}}{{number_format($poTransaction->sgst_percentage + $poTransaction->cgst_percentage + $poTransaction->igst_percentage,1)}} {{number_format($poTransaction->sgst_value + $poTransaction->cgst_value + $poTransaction->igst_value,2)}} {{number_format($poTransaction->total,2)}}
        {{$poTransaction->additional_product_description}}
{{$schedule->po_quantity}} {{\Helper::getDisplayDate($schedule->expected_delivery_date)}}







Taxable Amount : 0.00{{number_format($poHeader->net_taxable_amt,2)}}
GST Amount : 0.00{{number_format(($poHeader->cgst_amt + $poHeader->sgst_amt + $poHeader->igst_amt),2)}}
Sub Total : 0.00{{number_format($poHeader->gross_total,2)}}
Shipping Charges : 0.00{{number_format($poHeader->shipping_charges,2)}}
Other Charges : 0.00{{number_format($poHeader->other_charges,2)}}
Adjustment : 0.00{{number_format($poHeader->round_off,2)}}
Net Total : 0.00{{number_format($poHeader->total,2)}}

Terms & Conditions :

Payment Terms : {{$poHeader->payment_terms_after." ".$poHeader->payment_terms_after_unit}} after date of delivery / inspection.

{!! $poHeader->terms_conditions !!}


@if($poHeader->user_signature != "")
@endif Authorized Signature
Print By : {{ strtoupper($userId)." # ".$currentTime->format('d/m/Y H:i:s ')}} Created By : @if($poHeader->lastmodified_by) {{strtoupper($poHeader->lastmodified_by.' # '.\Helper::getDisplayDateTime($poHeader->lastmodified_date))}} @else {{strtoupper($poHeader->created_by.' # '.\Helper::getDisplayDateTime($poHeader->created_date))}} @endif
@if($purchase_order_type == "RPO") @php $backUrl = 'StorePoDashboard/ApproveSupplierRate'; @endphp @elseif($poCategory == "G" || $poCategory == "RPO") @php $backUrl = ($from == 'R') ? 'StorePo/Reprint': 'StorePoDashboard/SuperUser'; @endphp @else @php $backUrl = ($from == 'R') ? 'StorePo/PharmacyReprint': 'StorePoDashboard/PharmacySuperUser'; @endphp @endif Back {{-- Back --}}
@endsection @section('ExternalJs') @endsection @section('BootstrapModals') @include('Components/Bootstrap Modals/email_modal') @include('Components/Bootstrap Modals/sending_modal') @endsection