@extends('Reports.template') @php $reportTitle = ($trnType === 'P') ? 'Purchase Register Report' : 'Purchase Return Register Report'; @endphp @section('title') {{$reportTitle}} @endsection @section('ExternalCss') @parent @endsection @section('Content') @php $reportTitle = ($trnType === 'P' || $trnType === 'CSN') ? 'Purchase Voucher' : 'Purchase Return Voucher'; if($trnStatus === 'P'){ $trnStatusMessage = Config::get('constants.reports.TRN_PARTIAL'); }else if($trnStatus === 'T'){ $trnStatusMessage = Config::get('constants.reports.TRN_CANCELLED'); }else if($trnStatus === 'C'){ $trnStatusMessage = Config::get('constants.reports.TRN_COMPLETED'); }else{ $trnStatusMessage = 'ALL'; } @endphp @php $oldPhTrnId = ''; $createdBy = ''; $headerSr = 1; $transactionSr = 1; $datetime =0; $totalQty = 0; $remark = ''; $totalFreeQty = 0; $totalAmount = 0; $strike = 'noStrike'; $symbol = ''; @endphp @foreach ($productTransactionData as $key =>$productTransaction) @if($trnStatus == $productTransaction->ph_trn_status || $trnStatus == 'A' || $trnStatus == '') @if($productTransaction->ph_trn_id != $oldPhTrnId) @if($productTransaction->ph_trn_status == 'T') @php $strike = 'strike'; @endphp @elseif($productTransaction->ph_trn_status == 'P') @php $symbol = '*'; @endphp @endif @if($key > 0)
@if($businessEntityMasterData[0]->logo != null) logo )}}"/> @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)}} | |||||||||||||||||
{{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')}} | {{Config::get('constants.reports.SUPPLIER_NAME')}} | Supplier Address | GST NO | Credit Bill | PO No. | |||||||||||
{{ $symbol }} {{ $productTransaction->trn_type.'/'.$productTransaction->trn_fyear.'/'.$productTransaction->ph_trn_id }} | {{ \Helper::getDisplayDate($productTransaction->ph_trn_date) }} | {{ $productTransaction->ph_purchase_bill_no }} | {{ \Helper::getDisplayDate($productTransaction->ph_purchase_bill_date) }} | {{ $productTransaction->supplier_name }} | {{ $productTransaction->supplier_address1." ".$productTransaction->supplier_address2 }} | {{ $productTransaction->supplier_gstin_no }} | @if($productTransaction->is_credit_bill == 'Y'){{ "Yes" }}@else{{ "No" }}@endif | @if($productTransaction->ph_trn_type == "P" && $productTransaction->purchase_order_no > 0){{ "PO".$productTransaction->purchase_order_no }}@else{{ " " }}@endif | |||||||||||
Gross | Disc | Net Taxable | CGST | SGST | IGST | Invoice | Scheme Amount | TCS Amount | R. Off | Net Amount | |||||||||
{{ \Helper::customAmountFormat($productTransaction->ph_gross_total) }} | {{ \Helper::customAmountFormat($productTransaction->ph_discount_amt) }} | {{ \Helper::customAmountFormat($productTransaction->ph_net_taxable_amt) }} | {{ \Helper::customAmountFormat($productTransaction->ph_cgst_amt) }} | {{ \Helper::customAmountFormat($productTransaction->ph_sgst_amt) }} | {{ \Helper::customAmountFormat($productTransaction->ph_igst_amt) }} | {{ \Helper::customAmountFormat($productTransaction->ph_invoice_amt) }} | {{ \Helper::customAmountFormat($productTransaction->ph_sch_amount) }} | {{ \Helper::customAmountFormat($productTransaction->ph_tcs_amount) }} | {{ \Helper::customAmountFormat($productTransaction->ph_round_off) }} | {{ \Helper::customAmountFormat($productTransaction->ph_total) }} | |||||||||
Sr | Name | Mfg | Category | Unit | Pack Size | Ref No. | Qty | FQty | Batch | Exp | Sch Amt | MRP | Rate | Disc% | Net Rate | Taxable | GST% | GST | Amount |
{{$transactionSr++}} | {{ \Helper::zeroValueToNbspSpace($productTransaction->product_name) }} | {{ \Helper::zeroValueToNbspSpace(strtoupper($productTransaction->manufacturer_code)) }} | {{ \Helper::zeroValueToNbspSpace($productTransaction->category_abbrev) }} | {{ \Helper::zeroValueToNbspSpace($productTransaction->unit_abbrev) }} | {{ \Helper::zeroValueToNbspSpace($productTransaction->conversion_factor) }} | {{ \Helper::zeroValueToNbspSpace($refTrnNo) }} | {{ \Helper::zeroValueToNbspSpace($productTransaction->quantity) }} | {{ \Helper::zeroValueToNbspSpace($productTransaction->free_quantity) }} | {{ \Helper::zeroValueToNbspSpace($productTransaction->batch_no) }} | {{ \Helper::getMonthYearFromDate($productTransaction->batch_exp) }} | {{ \Helper::customAmountFormat($productTransaction->sch_amt) }} | {{ \Helper::customAmountFormat($productTransaction->mrp) }} | {{ \Helper::customAmountFormat($productTransaction->price) }} | {{ \Helper::customAmountFormat($productTransaction->discount) }} | {{ \Helper::customAmountFormat($productTransaction->net_rate) }} | {{ \Helper::customAmountFormat($productTransaction->taxable_amt) }} | {{ \Helper::customAmountFormat(floatval($productTransaction->sgst_percentage) + floatval($productTransaction->cgst_percentage) + floatval($productTransaction->igst_percentage)) }} | {{ \Helper::customAmountFormat(floatval($productTransaction->sgst_value) + floatval($productTransaction->cgst_value) + floatval($productTransaction->igst_value)) }} | {{ \Helper::customAmountFormat($productTransaction->total) }} |
@if($remark != '') Remarks : {{$remark}} @endif | Total Qty : | {{ \Helper::zeroValueToNbspSpace($totalQty)}} | {{\Helper::zeroValueToNbspSpace($totalFreeQty)}} | {{"Created By : "}} @if($createdBy) {{$createdBy ." ".Carbon\Carbon::parse($datetime)->format('d-m-Y h:i:s')}} @endif |