-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew_order.php
151 lines (140 loc) · 7.28 KB
/
new_order.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
<?php
include_once("./database/constants.php");
if (!isset($_SESSION["userid"])) {
header("location:".DOMAIN."/");
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Inventory Management System</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script type="text/javascript" src="./js/order.js"></script>
</head>
<body>
<div class="overlay"><div class="loader"></div></div>
<!-- Navbar -->
<?php include_once("./templates/header.php"); ?>
<br/><br/>
<div class="container">
<div class="row">
<div class="col-md-10 mx-auto">
<div class="card" style="box-shadow:0 0 25px 0 lightgrey;">
<div class="card-header">
<h4>New Orders</h4>
</div>
<div class="card-body">
<form id="get_order_data" onsubmit="return false">
<div class="form-group row">
<label class="col-sm-3 col-form-label" align="right">Order Date</label>
<div class="col-sm-6">
<input type="text" id="order_date" name="order_date" readonly class="form-control form-control-sm" value="<?php echo date("Y-d-m"); ?>">
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 col-form-label" align="right">Customer Name*</label>
<div class="col-sm-6">
<input type="text" id="cust_name" name="cust_name"class="form-control form-control-sm" placeholder="Enter Customer Name" required/>
</div>
</div>
<div class="card" style="box-shadow:0 0 15px 0 lightgrey;">
<div class="card-body">
<h3>Make a order list</h3>
<table align="center" style="width:800px;">
<thead>
<tr>
<th>#</th>
<th style="text-align:center;">Item Name</th>
<th style="text-align:center;">Total Quantity</th>
<th style="text-align:center;">Quantity</th>
<th style="text-align:center;">Price</th>
<th>Total</th>
</tr>
</thead>
<tbody id="invoice_item">
<!--<tr>
<td><b id="number">1</b></td>
<td>
<select name="pid[]" class="form-control form-control-sm" required>
<option>Washing Machine</option>
</select>
</td>
<td><input name="tqty[]" readonly type="text" class="form-control form-control-sm"></td>
<td><input name="qty[]" type="text" class="form-control form-control-sm" required></td>
<td><input name="price[]" type="text" class="form-control form-control-sm" readonly></td>
<td>Rs.1540</td>
</tr>-->
</tbody>
</table> <!--Table Ends-->
<center style="padding:10px;">
<button id="add" style="width:150px;" class="btn btn-success">Add</button>
<button id="remove" style="width:150px;" class="btn btn-danger">Remove</button>
</center>
</div> <!--Crad Body Ends-->
</div> <!-- Order List Crad Ends-->
<p></p>
<div class="form-group row">
<label for="sub_total" class="col-sm-3 col-form-label" align="right">Sub Total</label>
<div class="col-sm-6">
<input type="text" readonly name="sub_total" class="form-control form-control-sm" id="sub_total" required/>
</div>
</div>
<div class="form-group row">
<label for="gst" class="col-sm-3 col-form-label" align="right">GST (18%)</label>
<div class="col-sm-6">
<input type="text" readonly name="gst" class="form-control form-control-sm" id="gst" required/>
</div>
</div>
<div class="form-group row">
<label for="discount" class="col-sm-3 col-form-label" align="right">Discount</label>
<div class="col-sm-6">
<input type="text" name="discount" class="form-control form-control-sm" id="discount" required/>
</div>
</div>
<div class="form-group row">
<label for="net_total" class="col-sm-3 col-form-label" align="right">Net Total</label>
<div class="col-sm-6">
<input type="text" readonly name="net_total" class="form-control form-control-sm" id="net_total" required/>
</div>
</div>
<div class="form-group row">
<label for="paid" class="col-sm-3 col-form-label" align="right">Paid</label>
<div class="col-sm-6">
<input type="text" name="paid" class="form-control form-control-sm" id="paid" required>
</div>
</div>
<div class="form-group row">
<label for="due" class="col-sm-3 col-form-label" align="right">Due</label>
<div class="col-sm-6">
<input type="text" readonly name="due" class="form-control form-control-sm" id="due" required/>
</div>
</div>
<div class="form-group row">
<label for="payment_type" class="col-sm-3 col-form-label" align="right">Payment Method</label>
<div class="col-sm-6">
<select name="payment_type" class="form-control form-control-sm" id="payment_type" required/>
<option>Cash</option>
<option>Card</option>
<option>Draft</option>
<option>Cheque</option>
</select>
</div>
</div>
<center>
<input type="submit" id="order_form" style="width:150px;" class="btn btn-info" value="Order">
<input type="submit" id="print_invoice" style="width:150px;" class="btn btn-success d-none" value="Print Invoice">
</center>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>