-
Notifications
You must be signed in to change notification settings - Fork 0
/
invoice_detail.php
168 lines (111 loc) · 5.16 KB
/
invoice_detail.php
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
<?php require_once("connection.php"); ?>
<?php
$invoice = mysqli_query($con, "SELECT * , CONCAT_WS('-' , issue_year, issue_month, issue_day) AS issue_date FROM counterbox INNER JOIN province ON province.province_id=counterbox.province_id INNER JOIN invoice ON counterbox.counter_id=invoice.counter_id WHERE invoice_id=" . getValue($_GET["invoice_id"]));
$row_invoice = mysqli_fetch_assoc($invoice);
?>
<?php require_once("top.php"); ?>
<div class="panel panel-info col-lg-6 col-lg-offset-3">
<div class="panel-heading">
<!-- printing require -->
<?php require_once("print.php"); ?>
<h1> Invoice List </h1>
</div>
<div class="panel-body">
<h2 style="margin-left: 50px">Invoice ID : <?php echo $row_invoice["invoice_id"]; ?></h2>
<table class="pull-left list">
<tr>
<th>Customer ID: </th> <td><?php echo $row_invoice["counter_id"]; ?></td>
</tr>
<tr>
<th>Customer No: </th> <td><?php echo $row_invoice["customer_no"]; ?></td>
</tr>
<tr>
<th>Customer Name: </th> <td><?php echo $row_invoice["customer_name"]; ?></td>
</tr>
<tr>
<th>Father Name: </th> <td><?php echo $row_invoice["father_name"]; ?></td>
</tr>
<tr>
<th>Province: </th> <td><?php echo $row_invoice["province_name"]; ?></td>
</tr>
<tr>
<th>District: </th> <td><?php echo $row_invoice["district"]; ?></td>
</tr>
<tr>
<th>Address: </th> <td><?php echo $row_invoice["address"]; ?></td>
</tr>
<tr>
<th>Customer Type: </th> <td><?php echo $row_invoice["customer_type"]== 0 ? "Personal" : "Commercial" ?></td>
</tr>
<tr>
<th>Coefficint: </th> <td><?php echo $row_invoice["coeffecent"]; ?></td>
</tr>
<tr>
<th>Phase: </th> <td><?php echo $row_invoice["phase"]; ?></td>
</tr>
<tr>
<th>Accoun No: </th> <td><?php echo $row_invoice["account_no"]; ?></td>
</tr>
<tr>
<th>Junction: </th> <td><?php echo $row_invoice["junction"]; ?></td>
</tr>
<tr>
<th>Transformer: </th> <td><?php echo $row_invoice["transformer"]; ?></td>
</tr>
<tr>
<th>Box No: </th> <td><?php echo $row_invoice["box_id"]; ?></td>
</tr>
<tr>
<th>Rout Code: </th> <td><?php echo $row_invoice["rout_code"]; ?></td>
</tr>
</table>
<table class="list " >
<tr>
<th>Round Read: </th> <td><?php echo $row_invoice["round_read"]; ?></td>
</tr>
<tr>
<th>Issue Date: </th> <td><?php echo $row_invoice["issue_date"]; ?></td>
</tr>
<tr>
<th>Expire Date: </th> <td><?php echo $row_invoice["expire_date"]; ?></td>
</tr>
<tr>
<th>Previous Value: </th> <td><?php echo $row_invoice["previous_value"]; ?></td>
</tr>
<tr>
<th>Present Value: </th> <td><?php echo $row_invoice["present_value"]; ?></td>
</tr>
<tr>
<th>Electricity Charge: </th> <td><?php echo $row_invoice["electricity_charge"]; ?></td>
</tr>
<tr>
<th>Bank Charge: </th> <td><?php echo $row_invoice["bank_charge"]; ?></td>
</tr>
<tr>
<th>Service Charge: </th> <td><?php echo $row_invoice["service_charge"]; ?></td>
</tr>
<tr>
<th>Stationary Charge: </th> <td><?php echo $row_invoice["stationay_charge"]; ?></td>
</tr>
<tr>
<th>Surcharge: </th> <td><?php echo $row_invoice["surcharge"]; ?></td>
</tr>
<tr>
<th>Invoice Amount: </th> <td><?php echo $row_invoice["invoice_amount"]; ?></td>
</tr>
<tr>
<th>Tax: </th> <td><?php echo $row_invoice["taxt"]; ?></td>
</tr>
<tr>
<th>Payable Amount: </th> <td><?php echo $row_invoice["payable_amount"]; ?></td>
</tr>
<tr>
<th>Due Amount: </th> <td><?php echo $row_invoice["due_amount"]; ?></td>
</tr>
<tr>
<th>Total Amount: </th> <td><?php echo $row_invoice["total_amount"]; ?></td>
</tr>
</table>
</div>
</div>
<?php require_once("footer.php"); ?>