set default value in discount field
parent
b292b5f9aa
commit
b8ebffc570
|
@ -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" />
|
||||||
|
|
|
@ -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'];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue