@extends('Reports.template') @section('title') {{__('Cycle Count Stock Adjustment Report - Trn Wise')}} @endsection @section('ExternalCss') @parent @endsection @section('Content')
@php $currentTime = \Carbon\Carbon::now(); $stockTitle = "Cycle Count Stock Adjustment Report - Trn Wise"; @endphp @php $sr = 1; $sr_no = 1; $tempProductName = ''; $tempMfg = ''; $tempCat = ''; $negativeBold = ''; $totalMrp = 0; $totalUnitPrice = 0; $totalUnitPriceWoGst = 0; $totalPurQty = 0; $totalSaleQty = 0; $totalStockQty = 0; $systemStockAmount = 0; $physicalStockAmount = 0; $StockDiffStockAmount = 0; $totalSystemStock = 0; $totalSystemAmount = 0; $totalPhysicalStock = 0; $totalPhysicalAmount = 0; $totalStockDiff = 0; $totalStockDiffAmount = 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 = ''; } } $systemStockAmount = floatval($stock->unit_price_wo_gst) * floatval($stock->system_stock); $physicalStockAmount = floatval($stock->unit_price_wo_gst) * floatval($stock->physical_stock); $StockDiffStockAmount = floatval($stock->unit_price_wo_gst) * floatval($stock->diff_stock); $totalSystemStock += $stock->system_stock; $totalSystemAmount += $systemStockAmount; $totalPhysicalStock += $stock->physical_stock; $totalPhysicalAmount += $physicalStockAmount; $totalStockDiff += $stock->diff_stock; $totalStockDiffAmount += $StockDiffStockAmount; @endphp @php $totalMrp += $stock->mrp_per_unit; $totalUnitPrice += $stock->unit_price; $totalUnitPriceWoGst += $stock->unit_price_wo_gst; $totalPurQty += $stock->cum_purchase_qty; $totalSaleQty += $stock->cum_sale_qty; $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}}
{{__('Cycle Count Stock Adjustment Report')}} ({{__('Transaction')}} : {{$trnNo}}) {{__('Store')}} : {{$storeName}} {{__('As on')}}: {{$currentTime->format('d/m/Y H:i:s ')}}
{{__('Sr')}}  {{__('Item')}} {{__('Product ID')}}  {{__('Sr No.')}} {{__('Batch')}} {{__('Pkg')}} {{__('System Stock')}} {{__('System Amount')}}
({{__('Without GST')}})
{{__('Physical Stock')}} {{__('Physical Amount')}}
({{__('Without GST')}})
{{__('Stock Difference')}} {{__('Stock Difference Amount')}}
({{__('Without GST')}})
{{__('Exp')}}   {{__('UOM')}} {{__('Bin Location')}} {{__('Cat')}} {{__('Mfg')}}   {{__('Mrp')}}   {{__('Unit Price')}}
({{__('With GST')}})
  {{__('Unit Price')}}
({{__('Without GST')}})
{{$srValue}} {{$productNameValue}} {{$productIDValue}} {{$srNoValue}} {{strtoupper($stock->batch_no)}} {{" 1x".$stock->conversion_factor}} {{$stock->system_stock}} {{\Helper::customAmountFormat2($systemStockAmount)}} {{$stock->physical_stock}} {{\Helper::customAmountFormat2($physicalStockAmount)}} {{$stock->diff_stock}} {{\Helper::customAmountFormat2($StockDiffStockAmount)}} {{\Helper::getMonthYearFromDate($stock->batch_exp)}}  {{$stock->unit_abbrev}} {{$stock->product_bin_location}} {{$catValue}} {{$mfgValue}} {{\Helper::customAmountFormat2($stock->mrp_per_unit)}} {{\Helper::customAmountFormat2($stock->unit_price)}} {{\Helper::customAmountFormat2($stock->unit_price_wo_gst)}}
{{__("Total")}}    {{$totalSystemStock}} {{\Helper::customAmountFormat2($totalSystemAmount)}} {{$totalPhysicalStock}} {{\Helper::customAmountFormat2($totalPhysicalAmount)}} {{$totalStockDiff}} {{\Helper::customAmountFormat2($totalStockDiffAmount)}} {{\Helper::customAmountFormat2($totalMrp)}} {{\Helper::customAmountFormat2($totalUnitPrice)}} {{\Helper::customAmountFormat2($totalUnitPriceWoGst)}}
{{ strtoupper(Session::get('userId'))." # ".$currentTime->format('d/m/Y H:i:s ')}}
{{__('Back')}}
@endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection