@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) ) logo )}}"/> @endif |
@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 | @endifTaxable | SGST | CGST | |||||||||||||||||
Sr. | Item Name | Pkg | Batch | Exp | MRP | Rate | Qty | @if($show_discount == "Y")Amount | Rate | Value | @endifValue | Rate | Value | Rate | Value | Amount | |||||||
Sale | @if($show_discount == "Y") | Total | Discount | @endif||||||||||||||||||||
Sr. Item Name | Pkg | Batch | Exp | MRP | Rate | Qty | @if($show_discount == "Y")Amount | Rate | Value | @endifAmount | |||||||||||||
{{$productTransaction->ref_trn_type}}{{$productTransaction->ref_trn_id}} {{\Helper::getDisplayDate($productTransaction->ref_trn_date)}} | |||||||||||||||||||||||
{{ $i++ }} | {{ $productTransaction->product_name.$productHsnCode }} | {{$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->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 | |||||||||||||||||||
{{-- @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))}} |