@extends('Reports.template') @php if($trnType == 'DT') $reportTitle = "Discard Stock Register Report"; else $reportTitle = "Adjustment Register Report"; @endphp @section('title') {{$reportTitle}} @endsection @section('ExternalCss') @parent @endsection @section('Content') @php $oldPhTrnId = ''; $headerSr = 1; $totalQty = 0; $totalAmount = 0; $finalAmount = 0; $datetime = ''; $transactionSr = 1; $remark = ''; @endphp @foreach ($productTransactionData as $key => $productTransaction) @if($productTransaction->ph_trn_id != $oldPhTrnId) @if($totalQty != 0) @endif @php $totalQty = 0; $totalAmount = 0; $transactionSr = 1; $remark = ''; @endphp @endif @php $oldPhTrnId = $productTransaction->ph_trn_id; $datetime = $productTransaction->created_date; $totalQty += $productTransaction->quantity; $totalAmount += $productTransaction->total; $finalAmount += $productTransaction->total; @endphp @endforeach @php $currentTime = \Carbon\Carbon::now(); @endphp
@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) }}
Vou No  Vou Date Remark Created By
Sr  Medicine Name Category SUOM  Mfg  Batch Exp  Adj. Type Adj. Stock Qty Unit Price (With GST) Adj. Stock Value Current Stock Qty
Total : {{ \Helper::zeroValueToNbspSpace($totalQty)}} {{\Helper::customAmountFormat($totalAmount)}}
{{ $productTransaction->trn_type."/".$productTransaction->trn_fyear."/".$productTransaction->ph_trn_id }}  {{ \Helper::getDisplayDate($productTransaction->trn_date) }} {{ $productTransaction->ph_remarks }} @if($productTransaction->ph_created_by) {{$productTransaction->ph_created_by ." ".Carbon\Carbon::parse($datetime)->format('d-m-Y h:i:s')}} @endif
{{$transactionSr++}}  {{ \Helper::zeroValueToDash($productTransaction->product_name) }} {{ \Helper::zeroValueToDash($productTransaction->category_abbrev) }} {{ \Helper::zeroValueToDash($productTransaction->unit_abbrev) }}  {{ \Helper::zeroValueToDash($productTransaction->manufacturer_name) }}  {{ $productTransaction->batch_no }} {{ \Helper::getMonthYearFromDate($productTransaction->batch_exp) }}  {{ ($productTransaction->ledger_type == 'C') ? 'Credit' : 'Debit' }} {{\Helper::zeroValueToNbspSpace($productTransaction->quantity)}} {{\Helper::customAmountFormat($productTransaction->price_per_unit_suom)}} {{\Helper::customAmountFormat($productTransaction->total)}} {{\Helper::zeroValueToNbspSpace($productTransaction->current_stock_qty)}}
Total : {{ \Helper::zeroValueToNbspSpace($totalQty)}} {{\Helper::customAmountFormat($totalAmount)}}
Grand Total : {{\Helper::customAmountFormat($finalAmount)}}
{{ strtoupper(Session::get('userId'))." # ".$currentTime->format('d/m/Y H:i:s ')}}
Back
@endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection