@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)
|
{{ $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 | |||||||||||||||