@extends('Reports.template') @section('title') Store Product Stock Statement @endsection @section('ExternalCss') @parent @endsection @section('Content')
@php $currentTime = \Carbon\Carbon::now(); $priceHeader = 'Unit Price'; $stockTitle = $productstock == 'All' ? Config::get('store_constants.reports.STORE_STOCK_STATEMENT') : Config::get('store_constants.reports.STORE_NEGATIVE_STOCK_STATEMENT'); if($productRequestedBy == "Y"){ $stockTitle .= ' -- Requested By '; } if ($priceType == 'W') { $stockTitle .= ' (With GST)'; } elseif ($priceType == 'WO') { $stockTitle .= ' (Without GST)'; } else { $stockTitle .= ' (MRP)'; $priceHeader = 'Unit MRP'; } @endphp @if($productRequestedBy == "Y") @else @endif @php $sr = 1; $tempProductName = ''; $tempMfg = ''; $tempCat = ''; $negativeBold = ''; $totalStocAmt = 0; @endphp @foreach ($stockData as $key => $stock) @if ($stock->current_stock_qty != '0') @php if ($stock->current_stock_qty < '0') { $negativeBold = 'td bold alignTop borderTopBottom txtRight'; } else { $negativeBold = 'td notBold alignTop borderTopBottom txtRight'; } $productRequestedByUser = $stock->product_requested_by; if ($stock->product_name != $tempProductName) { $srClass = 'td notBold alignTop borderTop txtRight'; $productNameClass = 'td notBold alignTop borderTop'; $srValue = $sr++; $productNameValue = $stock->product_name; $mfgClass = 'td notBold alignTop borderTop'; $mfgValue = $stock->manufacturer_code; $catClass = 'td notBold alignTop borderTop'; $catValue = $stock->category_abbrev; $productId = $stock->product_id; } else { $srClass = 'td borderNone'; $productNameClass = 'td borderNone'; $srValue = ''; $productNameValue = ''; $productId = ''; $productRequestedByUser = ''; 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 = ''; } } $cumSaleQty = 0; $currentStockQty = 0; $price = 0; $currentStockAmt = 0; $cumSaleQty = $stock->cum_sale_qty; $currentStockQty = $stock->current_stock_qty; if ($priceType == 'W') { $price = $stock->current_stock_amt; } elseif ($priceType == 'WO') { $price = $stock->total_stock_value_wo_gst; } else { $price = $stock->total_stock_value_mrp; } $currentStockAmt = $price; @endphp @if($productRequestedBy == "Y") @else @endif @php $totalStocAmt += $currentStockAmt; $tempProductName = $stock->product_name; $tempMfg = $stock->manufacturer_code; $tempCat = $stock->category_abbrev; @endphp @endif @endforeach
@if ($businessEntityMasterData[0]->logo != null) Pharmacy Logo @endif
{{ $businessEntityMasterData[0]->name }}
{{ $businessEntityMasterData[0]->add1 . ' ' . $businessEntityMasterData[0]->add2 . ' ' . $businessEntityMasterData[0]->city . ' : ' . $businessEntityMasterData[0]->pincode }}
{{ 'Phone : ' . $businessEntityMasterData[0]->tel1 }}
{{ $stockTitle }} Store : {{ $storeName }} As on: {{ $currentTime->format('d/m/Y H:i:s ') }}
SrReq ByPro. ID  Product Name Mfg Cat Bin Location   UOM Stock Qty Stock Amt Re-Order Qty
{{ $srValue }}{{ $productRequestedByUser }}{{ $productId }} {{ $productNameValue }} {{ $mfgValue }} {{ $catValue }} {{ \Helper::zeroValueToNbspSpace($stock->product_bin_location) }}  {{ $stock->unit_abbrev }} {{ \Helper::zeroValueToNbspSpace($currentStockQty) }} {{ \Helper::customAmountFormat4($currentStockAmt) }} {{ \Helper::zeroValueToNbspSpace($stock->product_reorder_level) }}
{{ 'Total : ' }} {{ \Helper::customAmountFormat4($totalStocAmt) }}
{{ strtoupper(Session::get('userId')) . ' # ' . $currentTime->format('d/m/Y H:i:s ') }}
@php if($productRequestedBy == "Y") $url = url('StoreItem/storeStockStatementReqByInput'); else $url = url('StoreItem/storeStockStatementInput'); @endphp
Back
@endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection