@extends('Reports.template') @section('title') @if($type == "supplier") @php $reportTitle = "Purchase Detail - Supplier Wise Report"; @endphp @else @php $reportTitle = "Purchase Detail - Item Wise Report"; @endphp @endif {{$reportTitle}} @endsection @section('ExternalCss') @parent @endsection @section('Content') @php $currentTime = \Carbon\Carbon::now(); @endphp @if($type == "supplier") @else @endif @php $oldSuppProID = ''; $totalQty = 0; $totalFQty = 0; $totalTaxable = 0; $totalGst = 0; $total = 0; @endphp @foreach($purchaseData as $purchase) @if($type == "supplier") @php $suppProID = $purchase->supplier_id.$purchase->product_id; @endphp @else @php $suppProID = $purchase->product_id.$purchase->supplier_id; @endphp @endif @if($suppProID != $oldSuppProID) @if($totalQty != 0 && $oldSuppProID != '') @endif @php $totalQty = 0; $totalFQty = 0; $totalTaxable = 0; $totalGst = 0; $total = 0; $currentStockQty = 0; @endphp @foreach ($productStockData as $productStock) @if($productStock->product_id == $purchase->product_id) @php $currentStockQty = $productStock->currentStock; @endphp @endif @endforeach @if($type == "supplier") @endif @php $totalQty += $purchase->quantity; $totalFQty += $purchase->free_quantity; $totalTaxable += $purchase->taxable_amt; $totalGst += $purchase->gst_amt; $total += $purchase->total; @endphp @if($purchase->supplier_supply_type == "inter_state") @php $isIgstApplicable = "Yes"; @endphp @else @php $isIgstApplicable = ""; @endphp @endif @php $oldSuppProID = $suppProID; @endphp @endforeach
@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}}
{{$reportTitle}} Store : {{$storeName}} Period : {{\Helper::getDisplayDate($fromDate)}} TO {{\Helper::getDisplayDate($toDate)}}
Supplier Name Product NameProduct Name Supplier NameMfg Category PUOM Pack Size Stock Qty SUOM
Vou No   Vou Date Supp Bill No Supp Bill Date Qty FQty   Batch Exp Sch Amt MRP Rate Disc Amt Taxable IGST? GST % GST Total
Total : {{$totalQty}} {{$totalFQty}}   {{\Helper::customAmountFormat($totalTaxable)}} {{\Helper::customAmountFormat($totalGst)}} {{\Helper::customAmountFormat($total)}}
{{$purchase->supplier_name}} {{$purchase->product_name}} @else {{$purchase->product_name}} {{$purchase->supplier_name}} @endif {{$purchase->manufacturer_name}} {{$purchase->category_abbrev}} {{$purchase->PUOM}} {{"1x".$purchase->conversion_factor}} {{$currentStockQty}} {{$purchase->SUOM}}
{{$trnType."/".$purchase->trn_fyear."/".$purchase->trn_id}}   {{\Helper::getDisplayDate($purchase->trn_date)}} {{$purchase->purchase_bill_no}} {{\Helper::getDisplayDate($purchase->purchase_bill_date)}} {{$purchase->quantity}} {{$purchase->free_quantity}}   {{$purchase->batch_no}} {{\Helper::getMonthYearFromDate($purchase->batch_exp)}} {{\Helper::customAmountFormat($purchase->sch_amt)}} {{\Helper::customAmountFormat($purchase->mrp)}} {{\Helper::customAmountFormat4($purchase->price)}} {{\Helper::customAmountFormat($purchase->discount_amt)}} {{\Helper::customAmountFormat($purchase->taxable_amt)}} {{$isIgstApplicable}} {{\Helper::customAmountFormat($purchase->gst)}} {{\Helper::customAmountFormat($purchase->gst_amt)}} {{\Helper::customAmountFormat($purchase->total)}}
Total : {{$totalQty}} {{$totalFQty}}   {{\Helper::customAmountFormat($totalTaxable)}} {{\Helper::customAmountFormat($totalGst)}} {{\Helper::customAmountFormat($total)}}
{{ strtoupper(Session::get('userId'))." # ".$currentTime->format('d/m/Y H:i:s ')}}


@if($trnType == "P") Back @else Back @endif
@endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection