set default value in discount field
This commit is contained in:
@@ -218,10 +218,10 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<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>
|
||||
<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>
|
||||
<input class="form-control w-100" name="quantity" id="quantity" />
|
||||
@@ -230,7 +230,7 @@
|
||||
<input class="form-control w-100" name="rate" id="rate" />
|
||||
</td>
|
||||
<td>
|
||||
<input class="form-control" name="discountAmount" id="discountAmount" />
|
||||
<input class="form-control" name="discountAmount" id="discountAmount" value="0" />
|
||||
</td>
|
||||
<td>
|
||||
<input readonly class="form-control" name="totalAmount" id="totalAmount" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
require('../.hta_config/conf.php');
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['delete'])) {
|
||||
if (!empty($_POST['customerId']) && !empty($_POST['invoiceId'])) {
|
||||
if (!empty($_POST['customerId'])) {
|
||||
$customerId = $_POST['customerId'];
|
||||
$invoiceId = $_POST['invoiceId'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user