set default value in discount field

main
Suvodip 2025-04-03 12:30:32 +05:30
parent b292b5f9aa
commit b8ebffc570
2 changed files with 4 additions and 4 deletions

View File

@ -218,10 +218,10 @@
<tbody> <tbody>
<tr> <tr>
<td> <td>
<input type="text" class="form-control w-100" name="item" id="item" rows="3" /> <input type="text" class="form-control w-100" name="item" id="item" />
</td> </td>
<td> <td>
<input type="text" class="form-control w-100" name="description" id="description" rows="3" /> <input type="text" class="form-control w-100" name="description" id="description" />
</td> </td>
<td> <td>
<input class="form-control w-100" name="quantity" id="quantity" /> <input class="form-control w-100" name="quantity" id="quantity" />
@ -230,7 +230,7 @@
<input class="form-control w-100" name="rate" id="rate" /> <input class="form-control w-100" name="rate" id="rate" />
</td> </td>
<td> <td>
<input class="form-control" name="discountAmount" id="discountAmount" /> <input class="form-control" name="discountAmount" id="discountAmount" value="0" />
</td> </td>
<td> <td>
<input readonly class="form-control" name="totalAmount" id="totalAmount" /> <input readonly class="form-control" name="totalAmount" id="totalAmount" />

View File

@ -2,7 +2,7 @@
require('../.hta_config/conf.php'); require('../.hta_config/conf.php');
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['delete'])) { if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['delete'])) {
if (!empty($_POST['customerId']) && !empty($_POST['invoiceId'])) { if (!empty($_POST['customerId'])) {
$customerId = $_POST['customerId']; $customerId = $_POST['customerId'];
$invoiceId = $_POST['invoiceId']; $invoiceId = $_POST['invoiceId'];