|
108 | 108 | <div class="modal-body"> |
109 | 109 | <form action="functions/add-supply.php" method="post"> |
110 | 110 | <div class="mb-3"><label class="form-label" for="first_name"><strong>Item Name</strong></label><input class="form-control" type="text" name="name" placeholder="Name" required=""></div> |
111 | | - <div class="mb-3"><label class="form-label" for="first_name"><strong>Item Price</strong></label><input class="form-control" type="number" name="price" placeholder="Price" required=""></div> |
112 | | - <div class="mb-3"><label class="form-label" for="first_name"><strong>Qty</strong></label><input class="form-control" type="number" name="qty" placeholder="Quantity" required=""></div> |
| 111 | + <div class="mb-3"><label class="form-label" for="first_name"><strong>Item Price</strong></label><input class="form-control" type="number" name="price" placeholder="Price" required="" min="1" value="1"></div> |
| 112 | + <div class="mb-3"><label class="form-label" for="first_name"><strong>Qty</strong></label><input class="form-control" type="number" name="qty" placeholder="Quantity" required="" min="1" value="1"></div> |
113 | 113 |
|
114 | 114 | </div> |
115 | 115 | <div class="modal-footer"><button class="btn btn-light" type="button" data-bs-dismiss="modal">Close</button><button class="btn btn-primary" type="submit">Save</button></div> |
|
127 | 127 | <form action="functions/update-supply.php" method="post"> |
128 | 128 | <input type="hidden" name="data_id"> |
129 | 129 | <div class="mb-3"><label class="form-label" for="first_name"><strong>Item Name</strong></label><input class="form-control" type="text" name="name" placeholder="Name" required=""></div> |
130 | | - <div class="mb-3"><label class="form-label" for="first_name"><strong>Item Price</strong></label><input class="form-control" type="number" name="price" placeholder="Price" required=""></div> |
| 130 | + <div class="mb-3"><label class="form-label" for="first_name"><strong>Item Price</strong></label><input class="form-control" type="number" name="price" placeholder="Price" required="" min="1"></div> |
131 | 131 | </div> |
132 | 132 | <div class="modal-footer"><button class="btn btn-light" type="button" data-bs-dismiss="modal">Close</button><button class="btn btn-primary" type="submit">Save</button></div> |
133 | 133 | </form> |
|
143 | 143 | <div class="modal-body"> |
144 | 144 | <form action="functions/stock-in.php" method="post"> |
145 | 145 | <input type="hidden" name="data_id"> |
146 | | - <div class="mb-3"><label class="form-label" for="first_name"><strong>Quantity</strong></label><input class="form-control" type="number" name="qty" placeholder="Stock In" required=""></div> |
| 146 | + <div class="mb-3"><label class="form-label" for="first_name"><strong>Quantity</strong></label><input class="form-control" type="number" name="qty" placeholder="Stock In" required="" min="1" value="1"></div> |
147 | 147 |
|
148 | 148 | </div> |
149 | 149 | <div class="modal-footer"><button class="btn btn-light" type="button" data-bs-dismiss="modal">Close</button><button class="btn btn-primary" type="submit">Save</button></div> |
|
160 | 160 | <div class="modal-body"> |
161 | 161 | <form action="functions/stock-out.php" method="post"> |
162 | 162 | <input type="hidden" name="data_id"> |
163 | | - <div class="mb-3"><label class="form-label" for="first_name"><strong>Quantity</strong></label><input class="form-control" type="number" name="qty" placeholder="Stock Out" required=""></div> |
| 163 | + <div class="mb-3"><label class="form-label" for="first_name"><strong>Quantity</strong></label><input class="form-control" type="number" name="qty" placeholder="Stock Out" required="" min="1" value="1"></div> |
164 | 164 |
|
165 | 165 | </div> |
166 | 166 | <div class="modal-footer"><button class="btn btn-light" type="button" data-bs-dismiss="modal">Close</button><button class="btn btn-primary" type="submit">Save</button></div> |
|
0 commit comments