@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