@extends('Reports.template') @section('title') {{"Store Purchse Return Summary"}} @endsection @section('ExternalCss') @parent @endsection @section('Content') @php $currentTime = \Carbon\Carbon::now(); @endphp @php $sr = 1; $tempSupplierName = ''; $supplier_old= ''; $totalsupplier = 0; $totalPurchase = 0; $totalReturnCgst =0; $totalReturnSgst =0; $totalCgstAmt =0; $totalSgstAmt =0; $totalReturnAmt =0; $netPurchaseAmt =0; $netCgstAmt = 0; $netSgstAmt = 0; $totalNetAmt =0; $taxableAmt =0; $totalTaxableAmt =0; $totalTaxableReturn=0; $netTaxableAmt =0; $strike = 'noStrike'; $totalSupp = 0; $gstno =''; @endphp @foreach ($supplierwise as $key =>$stock) @if($stock->supplier_name != $supplier_old) @if($totalsupplier != 0) @endif @php $supplier_old= ''; $totalsupplier = 0; $totalNetAmt =0; $strike = 'noStrike'; $gstno =''; @endphp @endif @if($stock->supplier_name != $tempSupplierName) @else @endif @if(($stock->supplier_name != $tempSupplierName)||($gstno != $stock->supplier_gstin_no)) @else @endif @if($stock->ph_trn_status == 'T') @php $strike = 'strike'; $totalsupplier -= $stock->total; @endphp @else @php $strike = 'noStrike'; @endphp @endif @if($stock->trn_type == 'PR') @php $totalTaxableReturn +=$stock->net_taxable_amt; $totalSupp = $stock->total * (-1); $totalReturnAmt+=$stock->total; $totalsupplier -= $stock->total; $totalNetAmt -=$stock->net_taxable_amt; $totalReturnCgst +=$stock->cgst_amt; $totalReturnSgst +=$stock->sgst_amt; $taxableAmt =$stock->net_taxable_amt * (-1); @endphp @else @php $totalSupp = $stock->total; $totalPurchase +=$stock->total; $totalCgstAmt +=$stock->cgst_amt; $totalSgstAmt +=$stock->sgst_amt; $totalTaxableAmt+=$stock->net_taxable_amt; $netCgstAmt=$totalCgstAmt-$totalReturnCgst; $netSgstAmt=$totalSgstAmt-$totalReturnSgst; $taxableAmt =$stock->net_taxable_amt; @endphp @endif @php $netTaxableAmt =$totalTaxableAmt-$totalTaxableReturn; $netPurchaseAmt=$totalPurchase-$totalReturnAmt; $netCgstAmt=$totalCgstAmt-$totalReturnCgst; $netSgstAmt=$totalSgstAmt-$totalReturnSgst; @endphp @php $tempSupplierName = $stock->supplier_name; $supplier_old=$stock->supplier_name; $totalsupplier += $stock->total; $totalNetAmt +=$stock->net_taxable_amt; $gstno = $stock->supplier_gstin_no @endphp @endforeach
@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}}
{{Config::get('constants.reports.PURCHASE_SUMMARY')}} Period : {{\Helper::getDisplayDate($fromDate)}} TO {{\Helper::getDisplayDate($toDate)}} )
Sr No. {{Config::get('constants.reports.SUPPLIER_NAME')}} GST No {{Config::get('constants.reports.TRN_NO')}} {{Config::get('constants.reports.TRN_DATE')}} {{Config::get('constants.reports.SUPPLIER_BILL_NO')}} {{Config::get('constants.reports.SUPPLIER_BILL_DATE')}} Taxable Amt CGST Amt SGST Amt Bill Amount
Total {{\Helper::customAmountFormat($totalNetAmt)}} {{ \Helper::customAmountFormat($totalsupplier)}}
{{$sr++}} {{$stock->supplier_name}} {{$stock->supplier_gstin_no}}{{$stock->trn_type.$stock->trn_id}} {{\Helper::getDisplayDate($stock->trn_date)}} {{($stock->ph_purchase_bill_no)}} {{\Helper::getDisplayDate($stock->ph_purchase_bill_date)}} {{\Helper::customAmountFormat($taxableAmt)}} {{\Helper::customAmountFormat($stock->cgst_amt)}} {{\Helper::customAmountFormat($stock->sgst_amt)}} {{\Helper::customAmountFormat($totalSupp)}}
Total {{\Helper::customAmountFormat($totalNetAmt)}} {{ \Helper::customAmountFormat($totalsupplier)}}
Total Taxable Amt : {{ \Helper::customAmountFormat($totalTaxableAmt)}} Total CGST : {{ \Helper::customAmountFormat($totalCgstAmt)}} Total SGST : {{ \Helper::customAmountFormat($totalSgstAmt)}} Total Purchase : {{ \Helper::customAmountFormat($totalPurchase)}}
Total Taxable Return : {{ \Helper::customAmountFormat($totalTaxableReturn)}} Return CGST : {{ \Helper::customAmountFormat($totalReturnCgst)}} Return SGST : {{ \Helper::customAmountFormat($totalReturnSgst)}} Total Purchase Return : {{ \Helper::customAmountFormat($totalReturnAmt)}}
Net Taxable : {{ \Helper::customAmountFormat($netTaxableAmt)}} Net CGST : {{ \Helper::customAmountFormat($netCgstAmt)}} Net SGST : {{ \Helper::customAmountFormat($netSgstAmt)}} Net Purchase : {{ \Helper::customAmountFormat($netPurchaseAmt)}}
{{ strtoupper(Session::get('userId'))." # ".$currentTime->format('d/m/Y H:i:s ')}}
Back
@endsection @section('BootstrapModals') @endsection @section('ExternalJs') @endsection