Current File : /home/inlingua/www/crm.vprotectindia.com/resources/views/customer/print_customer_invoice.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>Product Invoice</title>
</head>
<style>
body{
font-family:Arial;
font-size: 13 px;
}
p {color: red;}
.td{
font-weight:bold;
padding:2px;
}
.tdclasshead{
border-bottom:1px solid;
border-left:1px solid;
font-weight:bold;
}
.tdclassleft{
border-left:1px solid;
font-weight:normal;
text-align:left;
padding:2px;
}
.tdclasscenter{
border-left:1px solid;
font-weight:bold;
text-align:center;
padding:2px;
}
.tdclassright{
border-left:1px solid;
font-weight:bold;
text-align:right;
padding:2px;
}
.tdclasstop{
border-top:1px solid;
font-weight:bold;
padding:2px;
}
.tdclassbottom{
border-bottom:1px solid;
border-left:1px solid;
font-weight:bold;
padding:2px;
}
</style>
<body>
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" rowspan="3" class="tdclassleft"><strong>SIS Alarm Monitoring and Response Services Private Limited</strong><br/>
4th & 5th Floor GNG Tower, Plot no-10, Sector-44 Gurugram 122002<br/>
GSTIN/UIN: 06AAWCS0189H1ZU<br/>
State Name: Haryana , State Code: 06<br/>
CIN: U74140BR2015PTC024604<br/>
E-Mail/Contact: customercare@vprotectindia.com, 0124-4171850
</td>
<td width="25%" class="tdclassleft" valign="top">Invoice No.<br /><strong><?php echo $invoice_mast->orderid; ?></strong></td>
<td width="26%" class="tdclassleft" valign="top">Dated<br /><strong><?php echo $invoice_mast->created_at; ?></strong></td>
</tr>
<tr>
<td width="25%" class="tdclassleft" valign="top">P.O. No.<br /></td>
<td width="25%" class="tdclassleft" valign="top">Mode of Payment<br /><strong><?php echo $invoice_mast->payment_mode; ?></strong></td>
</tr>
<tr>
<td width="25%" class="tdclassleft" valign="top">Sales Person<br /><strong></strong></td>
<td width="25%" class="tdclassleft" valign="top">Dated<br /><strong><?php echo $invoice_mast->created_at; ?></strong></td>
</tr>
<tr>
<td colspan="2" valign="top" class="tdclassleft" style="height: 100px;"><strong>BILL TO</strong><br /><br />
<strong><?php echo $invoice_mast->ledger_name; ?></strong><br />
<?php echo $invoice_mast->address.'<br>';
echo 'City:'.$invoice_mast->SITE_CITY.'<br>';
echo 'GSTIN/UIN:'.$invoice_mast->TAXPAYER_IDENTIFICATION_NUMBER.'<br>';
echo 'State Name:'. $invoice_mast->SITE_STATE.' '. $invoice_mast->SITE_PIN_CODE.'<br>';
?>
</td>
<td colspan="2" class="tdclassleft" valign="top" style="height: 100px;" ><strong>SHIP TO</strong><br/><br /><strong><?php echo $invoice_mast->ledger_name; ?></strong><br>
<?php
echo 'Customer Code:'. $invoice_mast->ACCOUNT_NUMBER.'<br>';
echo $invoice_mast->address.'<br>';
echo 'City:'.$invoice_mast->SITE_CITY.'<br>';
echo 'GSTIN/UIN:'.$invoice_mast->TAXPAYER_IDENTIFICATION_NUMBER.'<br>';
echo 'State Name:'. $invoice_mast->SITE_STATE.', Code:'. $invoice_mast->SITE_PIN_CODE.'<br>';
echo 'Contact:'. $invoice_mast->CUSTOMER_PHONE_NUMBER.'<br>';
echo 'E-mail:'. $invoice_mast->email.'<br>';
?>
</td>
</tr>
<tr>
<td colspan="4">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td width="40%" colspan="2" align="center" class="tdclasscenter"><strong>Contract Validity</strong></td>
<td width="30%" align="center" class="tdclassbottom"><strong>Payment Terms</strong></td>
<td width="30%" align="center" class="tdclassbottom"><strong>Type of Premises</strong></td>
</tr>
<tr>
<td width="40%" colspan="2" align="center">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr><td class="tdclasstop">Contract Start Date : </td></tr>
<tr><td class="tdclasstop">Contract End Date : </td></tr>
</table>
</td>
<td width="30%" align="center" rowspan="2" class="tdclassleft"> </td>
<td width="30%" align="center" rowspan="2" class="tdclasscenter"><strong><?php echo $invoice_mast->tran_type; ?></strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="4" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" width="3%" class="tdclasshead">Sl No.</td>
<td align="center" width="37%" class="tdclasshead">Description of Services</td>
<td align="center" width="10%" class="tdclasshead">HSN/SAC</td>
<td align="center" width="10%" class="tdclasshead">Quantity</td>
<td align="center" width="10%" class="tdclasshead">Rate</td>
<td align="center" width="5%" class="tdclasshead">Per</td>
<td align="center" width="12%" class="tdclasshead">Gross Amount</td>
<td align="center" width="13%" class="tdclasshead">Net Amount</td>
</tr>
<?php
$total_qty=1;
$total_amt=$invoice_mast->amount;
$total_disc=0;
?>
<tr>
<td class="tdclasscenter"> </td>
<td class="tdclassleft"><strong>Residential Alarm,
Monitoring and Response</strong><br/>
Discount on Sales<br/>
Integrated GST <br/>
State GST <br/>
Central GST <br/>
Round Off<br/>
</td>
<td valign="top" class="tdclassleft">998523</td>
<td valign="top" class="tdclassright">18.00%</td>
<td valign="top" class="tdclassright">1</td>
<td valign="top" class="tdclasscenter"><?php echo $total_amt; ?></td>
<td valign="top"class="tdclassright"><?php echo $total_amt; ?></td>
<td valign="top" class="tdclassright" style="padding:2px; font-weight:normal;">
<?php echo $total_amt; ?></td>
</tr>
<?php
$center_tax_perc=9;$state_tax_perc=9;
$center_tax_amt=9;$state_tax_amt=9;
?>
<tr>
<td class="tdclasscenter"> </td>
<td class="tdclassleft"> </td>
<td class="tdclassleft"> </td>
<td class="tdclassright"> </td>
<td class="tdclassright"> </td>
<td class="tdclasscenter"> </td>
<td class="tdclassright"> </td>
<td class="tdclassright"> </td>
</tr>
<tr>
<td class="tdclasscenter"> </td>
<td class="tdclassleft"> </td>
<td class="tdclassleft"> </td>
<td class="tdclassright"> </td>
<td class="tdclassright"> </td>
<td class="tdclasscenter"> </td>
<td class="tdclassright"> </td>
<td class="tdclassright"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="4" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" width="3%" class="tdclasscenter"> </td>
<td align="center" width="37%" class="tdclassright"><span style="font-weight:normal">Total</span></td>
<td align="center" width="10%" class="tdclassleft"> </td>
<td align="center" width="10%" class="tdclassright"><?php echo $total_qty; ?> Pcs</td>
<td align="center" width="10%" class="tdclassright"> </td>
<td align="center" width="5%" class="tdclasscenter"> </td>
<td align="center" width="12%" class="tdclassright"><span style="font-weight:normal"><?php echo $total_amt; ?></span></td>
<td align="center" width="13%" class="tdclassright"><?php echo $total_amt; ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="4" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" width="50%" class="tdclassleft" valign="top"><span style="font-weight:normal">Amount Chargeable (in words)</span>INR <strong><?php echo displaywords($total_amt); ?></strong></td>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="4" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" width="44%" class="tdclasscenter">HSN/SAC</td>
<td align="center" width="10%" class="tdclasscenter">Taxable</td>
<td align="center" width="18%" class="tdclassbottom">Central Tax</td>
<td align="center" width="18%" class="tdclassbottom">State Tax</td>
<td align="center" width="10%" class="tdclasscenter">Total</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="4" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" width="44%" class="tdclasscenter"> </td>
<td align="center" width="10%" class="tdclassbottom">Value</td>
<td align="center" width="8%" class="tdclassbottom">Rate</td>
<td align="center" width="10%" class="tdclassbottom">Amount</td>
<td align="center" width="8%" class="tdclassbottom">Rate</td>
<td align="center" width="10%" class="tdclassbottom">Amount</td>
<td align="center" width="10%" class="tdclassbottom">Tax Amount</td>
</tr>
<tr>
<td align="left" width="44%" class="tdclasstop"><?php echo $invoice_mast->orderid; ?></td>
<td align="center" width="10%" class="tdclassright"><?php echo ($total_amt-$total_disc); ?></td>
<td align="center" width="8%" class="tdclassright"><?php echo $center_tax_perc; ?>%</td>
<td align="center" width="10%" class="tdclassright"><?php echo $center_tax_amt; ?></td>
<td align="center" width="8%" class="tdclassright"><?php echo $state_tax_perc; ?>%</td>
<td align="center" width="10%" class="tdclassright"><?php echo $state_tax_amt; ?></td>
<td align="center" width="10%" class="tdclassright"><?php echo ($center_tax_amt+$state_tax_amt); ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="4" class="tdclassleft"><span style="font-weight:normal">Tax Amount (in words) :</span> INR <?php echo displaywords(($center_tax_amt+$state_tax_amt)); ?></td>
</tr>
<tr>
<td colspan="4" class="tdclassleft"> </td>
</tr>
<tr>
<td colspan="4" class="tdclassleft"> </td>
</tr>
<tr>
<td colspan="2" align="left" width="48%" class="td">Company's PAN: AAWCS0189H</td>
<td colspan="2" align="left" width="52%" class="td">Bank Detail : SIS Alarm Monitoring and Response Services Private
Limited<br/>
Bank: RBL Bank (India)<br/>
A/c No: 609000769986<br/>
IFSC: RATN0000116<br/>
Branch – Iffco Chowk,Gurgaon-122001<br/>
Account Type: CC Account</td>
</tr>
<tr>
<td colspan="2" align="left" width="48%" class="td"><span style="text-decoration:underline">Declaration</span><br />We declare that this invoice shows the actual price of the goods described and that all particulars are true and correct.</td>
<td colspan="2" align="center" valign="bottom" width="52%" class="tdclassright" style="height:80px;">Authorised Signatory</td>
</tr>
<table>
</body>
</html>
<?php
function displaywords($number){
$no = (int)floor($number);
$point = (int)round(($number - $no) * 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) ? 's' : 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);
if ($point > 20) {
$points = ($point) ?
"" . $words[floor($point / 10) * 10] . " " .
$words[$point = $point % 10] : '';
} else {
$points = $words[$point];
}
if($points != ''){
echo $result . "Rupees " . $points . " Paise Only";
} else {
echo $result . "Rupees Only";
}
}
?>