-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmoneySphereBill.html
177 lines (156 loc) · 9.36 KB
/
moneySphereBill.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<?php
if($_COOKIE['loggedIn']==0){
echo "
<script>
alert('User not logged in...Please log in first');
window.location ='index.html';
</script>
";
}
require_once 'connect.php';
$var = explode(":",$_POST['id']);
?>
<!DOCTYPE html>
<html>
<head>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<!-- CSS only -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<link href="Bootstrap/css/bootstrap.min.css">
<script src="Bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<!-- JavaScript Bundle with Popper -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.3.1/jspdf.umd.min.js"></script>
<script src="https://unpkg.com/jspdf@latest/dist/jspdf.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jQuery.print/1.6.2/jQuery.print.min.js" integrity="sha512-t3XNbzH2GEXeT9juLjifw/5ejswnjWWMMDxsdCg4+MmvrM+MwqGhxlWeFJ53xN/SBHPDnW0gXYvBx/afZZfGMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script>
$(document).ready(function(){
$('#printPage').click(function (){
console.log("1");
$("#printArea").print();
});
$("#logout").click(function(){
document.cookie="loggedIn=0";
window.location = 'logout.php';
});
});
</script>
</head>
<body>
<center><button id="printPage" class="btn btn-success mt-5 m-5 text-center">Print page</button></center>
<div id="printArea" class="container bg-muted border border-dark">
<div class="row col-12">
<div class="col-8">
<h1 class="text-center mt-5 pt-3" style="color:darkblue;">MONEYSPHERE SOLUTIONS</h1>
</div>
<div class="col-2"></div>
<?php
$sql1="select * from bill_master bm inner join firmname f inner join clientlist c on bm.firm_id=f.firmNameId and bm.client_id=c.clientId where bm.firm_id=$var[0] and bm.invoice_no = '$var[1]'";
$result1=mysqli_query($con,$sql1) or die($con->error);
$row1;
if($result1->num_rows==1){
$row1=$result1->fetch_assoc();
//print_r($row1);
}
?>
<div class="col-2">
<h3 class="text-center text-decoration-underline pt-5" style="color:darkblue;"><i>INVOICE</i></h3>
<div class="col-12 p-1 border border-muted">
<h6><b>Date:</b> <?php echo $row1['invoice_date']; ?></h6>
</div>
<div class="col-12 p-1 border border-muted">
<h6><b>Invoice:</b> <?php echo $row1['invoice_no']; ?></h6>
</div>
</div>
</div>
<div class="col-12 pt-5">
<h5 style="background:darkblue" class="text-light p-2 mt-2">Bill to:</h5>
<table class="table table-light table-bordered">
<tr>
<th>Name:</th>
<td><?php echo $row1['clientName']; ?></td>
</tr>
<tr>
<th>Address:</th>
<td><?php echo $row1['clientAddress']; ?></td>
</tr>
</table>
</div>
<div class="mt-4 col-12">
<h5 style="background:darkblue" class="text-light p-2 mt-2">Perticulars:</h5>
<table align="center" class="table table-bordered table-responsive-sm table-light">
<thead>
<tr>
<th>Sr. No.</th>
<th>Service</th>
<th>Service Note</th>
<th>Amount</th>
</tr>
</thead>
<?php
$sql="select * from bill_details bd inner join services s inner join bill_master bm on bd.service_id=s.serviceId and bm.firm_id=bd.firm_id and bm.invoice_no=bd.bill_master_id where bd.firm_id = $var[0] and bd.bill_master_id = '$var[1]'";
$result=mysqli_query($con,$sql) or die($con->error);
if($result->num_rows>0){
$row_count=0;
while($row=$result->fetch_assoc()){
$row_count+=1;
//print_r($row);
?>
<tbody>
<tr>
<td>1</td>
<td><?php echo $row['serviceName']; ?></td>
<td><?php echo $row['service_note']; ?></td>
<td><?php echo $row['taxable_amount']; ?></td>
</tr>
</tbody>
<?php
}
}
?>
</table>
</div>
<div class="row col-12 mt-3">
<div class="col-4">
<table width="90%" class="text-left border border-1">
<tr><th class="text-light" style="background:darkblue"> Bank Info: MONEYSPHERE SOLUTIONS</th></tr>
<tr><td> Bank: Indusind Bank</td></tr>
<tr><td> Branch: Pune Camp</td></tr>
<tr><td class="font-weight-bold"> Account No: 201003035017</td></tr>
<tr><td> IFSC: INDB0000002</td></tr>
<tr><td> MICR Code: 411234002</td></tr>
</table>
</div>
<div class="col-4">
<img class="img-thumbnail border-0" align="center" width="250" src="images/moneySphereQR.png">
</div>
<div class="col-4">
<hr>
<table width="80%" align="right">
<th>Total Rs.</th>
<td></td>
<td class="text-right"><?php echo ' ₹ '.$row1['total_amount'].' /-' ; ?></td>
</table>
<h5 class="mt-5 pt-5">For</h5>
<h5 class="text-center">MONEYSPHERE SOLUTIONS</h5>
<img class="img-thumbnail border-0 d-block mx-auto" src="images/moneySphere.png">
<h5 class="text-center">AUTHORISED SIGNATURE</h5>
</div>
</div>
<span class="text-center col-auto"><h5>Plaese Scan above QR Code to pay through UPI Apps like <b class="text-decoration-underline"><i>Google Pay/Paytm/PhonePe/Freecharge...etc</i></b></h5></span>
<span class="text-center col-auto"><h5>Make all cheques/Demand Drafts payable to <b class="text-decoration-underline"><i>MONEYSPHERE SOLUTIONS</i></b></h5></span>
<h6 class="font-weight-bold text-center">Thank you for your Business!</h6>
<h6 class="text-center">If you have any enquiries concerning this invoice, please contact <b>Harshal Mistry on 7666570182</b></h6>
<hr>
<h6 class="text-center font-weight-bold">802, Ratna building, Sujay Garden, Mukundnagar, Pune 411037</h6>
<h6 class="text-center">Tel: +91-7666570182/+91-992124004 Office: (020)-4861 0391 E-mail:[email protected]/ [email protected]</h6>
</div>
</body>
</html>