@extends('layouts.app') @section('content')

Stock Detailed Statement

@include('validate')

Product Detailed Statement

@csrf
@php $startDate=date('Y-m-d',strtotime($startDate)); $endDate=date('Y-m-d',strtotime($endDate)); @endphp @forelse ($productList as $product) @php $clobal=0; @endphp @empty @endforelse
Product Op Qty. Pur. Qty SalRet. Qty Stk Trs. Qty Stk Ajd. Qty Stk Con. Qty Pur Retn. Qty Sal. Qty Stk Tran. Qty Stk Con. Qty Stk Ajd. Qty Clo. Qty.
{{ $product->product_name ?? '' }} @php $op=$product->getOpenningBalance($startDate,$branch_id); $clobal+=$op; @endphp {{ round($op,2) }} @php $pqty=$product->getRepPurchaseQty($startDate,$endDate,$branch_id); $clobal+=$pqty; @endphp {{ round($pqty,2) }} @php $srqty=$product->getRepSaleReturnQty($startDate,$endDate,$branch_id); $clobal+=$srqty; @endphp {{ round($srqty,2) }} @php $plustktrnsqty=$product->getRepStkTransferQty($startDate,$endDate,$branch_id,'stock_in'); $clobal+=$plustktrnsqty; @endphp {{ round($plustktrnsqty,2) }} @php $plusstkadjuqty=$product->getRepStkAdjustQty($startDate,$endDate,$branch_id,'stock_in'); $clobal+=$plusstkadjuqty; @endphp {{ round($plusstkadjuqty,2) }} @php $plusstkconqty=$product->getRepStkConverQty($startDate,$endDate,$branch_id,'stock_in'); $clobal+=$plusstkconqty; @endphp {{ round($plusstkconqty,2) }} @php $prqty=$product->getRepPurRetnrQty($startDate,$endDate,$branch_id); $clobal-=$prqty; @endphp {{ round($prqty,2) }} @php $salqty=$product->getRepSaleQty($startDate,$endDate,$branch_id); $clobal-=$salqty; @endphp {{ round($salqty,2) }} @php $minstkTrsnqty=$product->getRepStkTransferQty($startDate,$endDate,$branch_id,'stock_out'); $clobal-=$minstkTrsnqty; @endphp {{ round($minstkTrsnqty,2) }} @php $minstkConqty=$product->getRepStkConverQty($startDate,$endDate,$branch_id,'stock_out'); $clobal-=$minstkConqty; @endphp {{ round($minstkConqty,2) }} @php $minStkAdjustQty=$product->getRepStkAdjustQty($startDate,$endDate,$branch_id,'stock_out'); $clobal-=$minStkAdjustQty; @endphp {{ round($minStkAdjustQty,2) }} {{ round($clobal,2) }}
@lang('general.no_details_found')
@endsection