@extends('Reports.template') @section('title') Stock / Cycle Count Report @endsection @section('ExternalCss') @parent @endsection @section('Content')
@php $currentTime = \Carbon\Carbon::now(); $stockTitle = "Stock / Cycle Count Report"; @endphp @php $sr = 1; $sr_no = 1; $tempProductName = ''; $tempMfg = ''; $tempCat = ''; $negativeBold = ''; $totalUnitPrice = 0; $totalUnitPriceWoGst = 0; $totalMrp = 0; $totalStockQty = 0; @endphp @foreach ($stockData as $key =>$stock) @php $srNoClass = 'td notBold alignTop borderTop txtRight'; if($stock->current_stock_qty < '0') { $negativeBold = 'td bold alignTop borderTopBottom txtRight'; } else { $negativeBold = 'td notBold alignTop borderTopBottom txtRight'; } if($stock->product_name != $tempProductName){ $srClass = 'td notBold alignTop borderTop txtRight'; $productNameClass = 'td notBold alignTop borderTop'; $srValue = $sr++; $srNoValue = $sr_no++; $productNameValue = $stock->product_name; $productIDValue = $stock->product_id; $mfgClass = 'td notBold alignTop borderTop'; $mfgValue = $stock->manufacturer_code; $catClass = 'td notBold alignTop borderTop'; $catValue = $stock->category_abbrev; }else{ $srClass = 'td borderNone'; $productNameClass = 'td borderNone'; $srValue = ''; $srNoValue = $sr_no++; $productNameValue = ''; $productIDValue = ''; if($stock->manufacturer_code != $tempMfg){ $mfgClass = 'td notBold alignTop borderTop'; $mfgValue = $stock->manufacturer_code; }else{ $mfgClass = 'td borderNone'; $mfgValue = ''; } if($stock->category_abbrev != $tempCat){ $catClass = 'td notBold alignTop borderTop'; $catValue = $stock->category_abbrev; }else{ $catClass = 'td borderNone'; $catValue = ''; } } @endphp @php $totalMrp += $stock->mrp_per_unit; $totalUnitPrice += $stock->price_per_unit; $totalUnitPriceWoGst += $stock->price_per_unit_wo_gst; $totalStockQty += $stock->current_stock_qty; $tempProductName = $stock->product_name; $tempMfg = $stock->manufacturer_code; $tempCat = $stock->category_abbrev; @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}}
Stock / Cycle Count Report (Transaction : {{$trnNo}}) Store : {{$storeName}} As on: {{$currentTime->format('d/m/Y H:i:s ')}}
Sr  Item Product ID  Sr No. Pkg System Stock Physical Stock Stock Difference   UOM Bin Location Cat Mfg   Mrp   Unit Price
(With GST)
  Unit Price
(Without GST)
{{$srValue}} {{$productNameValue}} {{$productIDValue}} {{$srNoValue}} {{"1 x ".$stock->conversion_factor}} {{\Helper::zeroValueToNbspSpace($stock->current_stock_qty)}}  {{$stock->unit_abbrev}} {{\Helper::zeroValueToNbspSpace($stock->product_bin_location)}} {{$catValue}} {{$mfgValue}} {{\Helper::customAmountFormat($stock->mrp_per_unit)}} {{\Helper::customAmountFormat($stock->price_per_unit)}} {{\Helper::customAmountFormat($stock->price_per_unit_wo_gst)}}
Total {{\Helper::zeroValueToNbspSpace($totalStockQty)}} {{\Helper::customAmountFormat($totalMrp)}} {{\Helper::customAmountFormat($totalUnitPrice)}} {{\Helper::customAmountFormat($totalUnitPriceWoGst)}}
{{ strtoupper(Session::get('userId'))." # ".$currentTime->format('d/m/Y H:i:s ')}}
Back
@endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection