-
Notifications
You must be signed in to change notification settings - Fork 0
/
purchase_return_view.php
111 lines (93 loc) · 3.95 KB
/
purchase_return_view.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
<?php session_start(); ?>
<?php include "connection.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<link rel="stylesheet" href="index.css">
<script src="purchase.js"></script>
<title>Purchase Return Journal</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/style1.css">
</head>
<body>
<nav class="navbar navbar-dark navbar-expand-lg bg-dark">
<a class="navbar-brand" href="index.html"><img src="logo.jpeg" alt="" width="50px" style="margin-left: 10px;"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo02" aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarTogglerDemo02">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about_us.html">About Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="team.html">Team</a>
</li>
</ul>
</div>
</nav>
<section style="margin-top: 2rem;margin-bottom: 80px;">
<h1>Purchase Return Journal</h1>
<table class="data-table">
<thead>
<tr>
<th rowspan="2">Date</th>
<th rowspan="2">Debit Note Number</th>
<th rowspan="2">Supplier</th>
<th colspan="5">Description of goods</th>
<th rowspan="2">Total Value</th>
</tr>
<tr>
<th>Description</th>
<th>Quantity</th>
<th>Unit Price</th>
<th>Value</th>
<th>Trade Discount</th>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT * FROM purchase_return_journal order by db_num asc ";
$select_questions = mysqli_query($conn, $query) or die(mysqli_error($conn));
if (mysqli_num_rows($select_questions) > 0 ) {
while ($row = mysqli_fetch_array($select_questions)) {
$date=$row["date"];
$invoice=$row["db_num"];
$supplier=$row["supplier"];
$description=$row["description"];
$qty=$row["qty"];
$price=$row["unit_price"];
$val=$row["val"];
$discount=$row["trade_discount"];
$tot=$row["tot"];
echo "<tr>";
echo "<td>$date</td>";
echo "<td>$invoice</td>";
echo "<td>$supplier</td>";
echo "<td>$description</td>";
echo "<td>$qty</td>";
echo "<td>$price</td>";
echo "<td>$val</td>";
echo "<td>$discount</td>";
echo "<td>$tot</td>";
echo "</tr>";
}
}
?>
</section>
<div class="footer bg-dark">
<p>© Copyright 2021 Auditaholic</p>
</div>
</body>
</html>