@extends('Reports.template') @section('title') @if($trnType == "I") @php $title= "Sales Bill"; @endphp @elseif($trnType == "IR") @php $title= "Sales Return Bill"; @endphp @elseif($trnType == "DC") @php $title= "Delivery Challan"; @endphp @else @php $title= "Delivery Challan Return"; @endphp @endif {{__($title)}} @endsection @section('ExternalCss') @parent @endsection @section('Content')
|
@if(isset($businessEntityMasterData[0]->logo) )
|
@if(isset($businessEntityMasterData[0]->name) )
{{ $businessEntityMasterData[0]->name }}
@endif
@if(isset($businessEntityMasterData[0]->add1) && isset($businessEntityMasterData[0]->add2) && isset($businessEntityMasterData[0]->city) && isset($businessEntityMasterData[0]->pincode))
{{$businessEntityMasterData[0]->add1. " " .$businessEntityMasterData[0]->add2 ." ".$businessEntityMasterData[0]->city." : " .$businessEntityMasterData[0]->pincode }}
@endif
@if(isset($businessEntityMasterData[0]->tel1) )
{{"Phone : ".$businessEntityMasterData[0]->tel1}}
@endif
|
@if($trnType == 'I' || $trnType == 'IR')
@if($salesGstExempt == "N")
{{__('TAX INVOICE')}} @else {{__('BILL OF SUPPLY')}} @endif @endif |
|||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@php
if($productHeader[0]->patient_id == NULL || $productHeader[0]->patient_id == '0'){
$patOrCustDetail = "".__('Customer')." : " . $productHeader[0]->ph_cust_id." / ".$productHeader[0]->ph_cust_name. ($productHeader[0]->ph_cust_contact_no ? " / " : "").$productHeader[0]->ph_cust_contact_no;
if($productHeader[0]->gst_number) {
$patOrCustDetail .= " / GST No : " .$productHeader[0]->gst_number;
}
}else{
if($productHeader[0]->is_ptr_applicable == "Y" || $productHeader[0]->hosp_name_on_ph_bill == "Y"){
$patOrCustDetail = "Patient : " . $productHeader[0]->patient_id." / ".$productHeader[0]->patient_name." / ".$productHeader[0]->patient_contact1." (C/o $companyName)";
}else{
$patOrCustDetail = "Patient : " . $productHeader[0]->patient_id." / ".$productHeader[0]->patient_name." / ".$productHeader[0]->patient_contact1;
}
}
@endphp
@if ($trnType == "DC" || $trnType == "DCR")
{{__('Hospital')}} : {{ $getHospitalForIPBill }} @endif {{$patOrCustDetail}} {{__('Address')}} : {{$patientAdress}} |
{{__($reportTitle)}}
{{__('Prescribed By')}} : {{$doctorName}} |
{{__($no).$productHeader[0]->trn_type." / ".$productHeader[0]->trn_fyear." / ".$productHeader[0]->trn_id}}
{{__($date).$trnDate}} |
|||||||||||||||||||||||||||||
| {{__('Sale')}} | @if($show_discount == "Y") | {{__('Total')}} | {{__('Discount')}} | @endif{{__('Taxable')}} | {{__('SGST')}} | {{__('CGST')}} | |||||||||||||||||||||||||
| {{__('Sr.')}} | {{__('Item Name')}} |
DP CO |
{{__('Pkg')}} | {{__('Batch')}} | {{__('Exp')}} | {{__('MRP')}} | {{__('Rate')}} | {{__('Qty')}} | @if($show_discount == "Y"){{__('Amount')}} | {{__('Rate')}} | {{__('Value')}} | @endif{{__('Value')}} | {{__('Rate')}} | {{__('Value')}} | {{__('Rate')}} | {{__('Value')}} | {{__('Amount')}} | ||||||||||||||
| {{__('Sale')}} | @if($show_discount == "Y") | {{__('Total')}} | {{__('Discount')}} | @endif||||||||||||||||||||||||||||
| {{__('Sr.')}} {{__('Item Name')}} |
DP CO |
{{__('Pkg')}} | {{__('Batch')}} | {{__('Exp')}} | {{__('MRP')}} | {{__('Rate')}} | {{__('Qty')}} | @if($show_discount == "Y"){{__('Amount')}} | {{__('Rate')}} | {{__('Value')}} | @endif{{__('Amount')}} | ||||||||||||||||||||
| {{$productTransaction->ref_trn_type}}{{$productTransaction->ref_trn_id}} {{\Helper::getDisplayDate($productTransaction->ref_trn_date)}} | |||||||||||||||||||||||||||||||
| {{ $i++ }} | {{ $productTransaction->product_name.$productHsnCode }} | {{$productTransaction->is_dpco }} | {{$productTransaction->conversion_factor }} | {{ $productTransaction->batch_no }} | {{$batchExp}} | {{ number_format($productTransaction->original_mrp,2) }} | {{--{{ number_format($productTransaction->mrp,2) }} | --}}{{ number_format($orgi_mrp_per_unit,2) }} | {{ $productTransaction->quantity }} | {{--{{ $discountPercentage }} | --}} @if($show_discount == "Y"){{ number_format($mrpValue,2) }} | {{ number_format((($discount_amt*100)/$mrpValue),2) }} | @endif {{--{{ number_format($productTransaction->discount_amt,2) }} | --}} @if($show_discount == "Y"){{ number_format($discount_amt,2) }} | @endif{{ number_format($productTransaction->taxable_amt,2) }} | {{ number_format($productTransaction->cgst_percentage,1) }} | {{ number_format($productTransaction->cgst_value,2) }} | {{ number_format($productTransaction->sgst_percentage,1) }} | {{ number_format($productTransaction->sgst_value,2) }} | {{ number_format($netTotal,2) }} | |||||||||||
| {{ $i++ }} {{ substr($productTransaction->product_name, 0, 35).$productHsnCode }} | {{$productTransaction->is_dpco }} | {{$productTransaction->conversion_factor }} | {{ $productTransaction->batch_no }} | {{$batchExp}} | {{ number_format($productTransaction->original_mrp,2) }} | {{ number_format($productTransaction->mrp,2) }} | {{ $productTransaction->quantity }} | @if($show_discount == "Y"){{ number_format($mrpValue,2) }} | {{ $discountPercentage }} | {{ number_format($productTransaction->discount_amt,2) }} | @endif{{ number_format($netTotal,2) }} | ||||||||||||||||||||
| @if($productHeader[0]->rate_card != "") {{"Patient Type : ".$productHeader[0]->rate_card}} @endif | {{$totalQty }} | @if($show_discount == "Y"){{\Helper::zeroValueToNbspSpace(number_format($totalmrpValue,2)) }} | {{-- | {{\Helper::zeroValueToNbspSpace(number_format($productHeader[0]->discount_amt,2)) }} | --}}{{\Helper::zeroValueToNbspSpace(number_format($grand_discount_amt,2)) }} | @endif{{\Helper::zeroValueToNbspSpace(number_format($productHeader[0]->net_taxable_amt,2)) }} | {{\Helper::zeroValueToNbspSpace(number_format($productHeader[0]->sgst_amt,2)) }} | {{\Helper::zeroValueToNbspSpace(number_format($productHeader[0]->cgst_amt,2)) }} | {{\Helper::zeroValueToNbspSpace(number_format($productHeader[0]->invoice_amt,2)) }} | ||||||||||||||||||||||
| @if($productHeader[0]->rate_card != "") {{"Patient Type : ".$productHeader[0]->rate_card}} @endif | {{$totalQty }} | @if($show_discount == "Y"){{\Helper::zeroValueToNbspSpace(number_format($totalmrpValue,2)) }} | {{\Helper::zeroValueToNbspSpace(number_format($productHeader[0]->discount_amt,2)) }} | @endif{{\Helper::zeroValueToNbspSpace(number_format($productHeader[0]->invoice_amt,2)) }} | |||||||||||||||||||||||||||
| {{__('REMARK')}} : {{strtoupper($productHeader[0]->remarks)}} | {{__('ROUND OFF')}} : | @if($productHeader[0]->round_off == 0) 0.00 @else {{ \Helper::zeroValueToNbspSpace(number_format($productHeader[0]->round_off, 2)) }} @endif | |||||||||||||||||||||||||||||
| @if($productHeader[0]->total >= 0) {{__('RUPEES')}} {{ strtoupper(\Helper::convertNumber($productHeader[0]->total) . " only") }} @if($productHeader[0]->is_credit_bill == 'N') {{"By ".strtoupper($productHeader[0]->gm_description) }} @endif @if(strtoupper($productHeader[0]->payment_agency != '')) {{", ".strtoupper($productHeader[0]->payment_agency) }} {{", ".strtoupper($productHeader[0]->payment_number) }} @endif @endif | @if($productHeader[0]->discount_amt > 0 && $show_discount == "Y"){{__('YOU SAVED RUPEES')}} : {{number_format($productHeader[0]->discount_amt,2)}} | @else@endif | {{__('NET TOTAL')}} : | @if($productHeader[0]->total == 0) 0.00 @else {{\Helper::zeroValueToNbspSpace(number_format($productHeader[0]->total,2)) }} @endif | @else
|
@endif
||||||||||||||||||||||||||
| {{-- @if($productHeader[0]->rate_card != "") {{"Patient Type : ".$productHeader[0]->rate_card}} @endif --}} @if($RemarkParameter != "" || $RemarkParameter != " ") {{__('Note')}}: {{$RemarkParameter}} @endif | @if($printRoomDetailsInPharmacyBillParameter->value == 'Y')@if($productHeader[0]->room_id != "" && $productHeader[0]->discharge_date == "0000-00-00" ) {{"Room : ". $productHeader[0]->room_id ." / ".$productHeader[0]->room_cat_dis." / Floor : ".$productHeader[0]->floor}} @endif | @endif
@if($indentId != "")
{{__('Indent No')}} : {{$indentId}}
{{__('Indent By')}}: {{strtoupper($indentBy.' # '.\Helper::getDisplayDateTime($indentDate))}} @endif |
|||||||||||||||||||||||||||||
|
@if(isset($businessEntityMasterData[0]->dl_no) )
{{__('D.L NO')}} : {{$businessEntityMasterData[0]->dl_no}}
@endif
@if(isset($businessEntityMasterData[0]->dl_no) ) {{__('GST NO')}} : {{$businessEntityMasterData[0]->gsttin_no}} @endif {{-- @if($RemarkParameter != "" || $RemarkParameter != " ") {{__('Note')}}: {{$RemarkParameter}} @endif --}} |
@if(isset($businessEntityMasterData[0]->name) ) E. & O.E. For, {{ strtoupper(($businessEntityMasterData[0]->name)) }} |
@endif
||||||||||||||||||||||||||||||
| {!! $businessEntityMasterData[0]->remarks !!} | |||||||||||||||||||||||||||||||
| {{__('Print By')}} : {{ strtoupper($userId)." # ".$currentTime->format('d/m/Y H:i:s ')}} | @if($printRemarkParameter != "")Special Instruction: {{$printRemarkParameter}} | @else@endif | {{__('Created By')}} : {{strtoupper($productHeader[0]->ph_created_by.' # '.\Helper::getDisplayDateTime($productHeader[0]->ph_created_date))}} | ||||||||||||||||||||||||||||