@extends('Reports.template') @php $reportTitle = 'Product Sale Details with HSN'; @endphp @section('title') {{$reportTitle}} @endsection @section('ExternalCss') @parent @endsection @section('Content') @php $net_value=0; $taxable_value=0; $igst=0; $cgst=0; $sgst=0; $Rnet_value=0; $Rtaxable_value=0; $Rigst=0; $Rcgst=0; $Rsgst=0; @endphp @foreach ($productTransactionData as $ptd) @php if($ptd->trn_type=="I") { $net_value+=$ptd->total-$ptd->discount_amt; $taxable_value+=$ptd->taxable_amt; $igst+=$ptd->igst_value; $cgst+=$ptd->cgst_value; $sgst+=$ptd->sgst_value; } else { $Rnet_value+=$ptd->total-$ptd->discount_amt; $Rtaxable_value+=$ptd->taxable_amt; $Rigst+=$ptd->igst_value; $Rcgst+=$ptd->cgst_value; $Rsgst+=$ptd->sgst_value; } if($ptd->visit_type=="O") { $visit_type="OPD"; } else if($ptd->visit_type=="I") { $visit_type="IPD"; } else { $visit_type=$ptd->visit_type; } @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." "}} Period : {{\Helper::getDisplayDate($fromDate)}} TO {{\Helper::getDisplayDate($toDate)}}
Case Type Bill No Medicine Name HSN Code Quantity Net Value Taxable Value GST % Integrated Tax Amount Central Tax Amount State/UT Tax Amount
{{ $visit_type }} {{$ptd->trn_type .' / '.$ptd->trn_fyear.' / '. $ptd->trn_id}} {{$ptd->product_name}} {{ $ptd->product_hsn_code }} {{ $ptd->quantity}} {{\Helper::customAmountFormat($ptd->total-$ptd->discount_amt)}} {{\Helper::customAmountFormat($ptd->taxable_amt)}} {{ ($ptd->sgst_percentage+$ptd->cgst_percentage+$ptd->igst_percentage ) }} {{\Helper::customAmountFormat($ptd->igst_value)}} {{\Helper::customAmountFormat($ptd->cgst_value)}} {{\Helper::customAmountFormat($ptd->sgst_value)}}
Total Sale: {{$net_value}} {{$taxable_value}} {{$igst!=0 ? $igst : '' }} {{$cgst}} {{$sgst}}
Total Sale Return: {{$Rnet_value}} {{$Rtaxable_value}} {{$Rigst!=0 ? $igst : '' }} {{$Rcgst}} {{$Rsgst}}
Total: {{$net_value-$Rnet_value}} {{$taxable_value-$Rtaxable_value}} {{($igst-$Rigst)!=0 ? $igst : '' }} {{$cgst-$Rcgst}} {{$sgst-$Rsgst}}
Partially save {{ strtoupper(Session::get('userId'))." # ".$currentTime->format('d/m/Y H:i:s ')}}
Back
@endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection