Add discount to modal, reformat.
This commit is contained in:
+14
-2
@@ -44,10 +44,12 @@
|
|||||||
|
|
||||||
$sql_income_category = mysqli_query($mysqli, "SELECT * FROM categories WHERE category_type = 'Income' AND (category_archived_at > '$invoice_created_at' OR category_archived_at IS NULL) ORDER BY category_name ASC");
|
$sql_income_category = mysqli_query($mysqli, "SELECT * FROM categories WHERE category_type = 'Income' AND (category_archived_at > '$invoice_created_at' OR category_archived_at IS NULL) ORDER BY category_name ASC");
|
||||||
while ($row = mysqli_fetch_array($sql_income_category)) {
|
while ($row = mysqli_fetch_array($sql_income_category)) {
|
||||||
$category_id_select= intval($row['category_id']);
|
$category_id_select = intval($row['category_id']);
|
||||||
$category_name_select = nullable_htmlentities($row['category_name']);
|
$category_name_select = nullable_htmlentities($row['category_name']);
|
||||||
?>
|
?>
|
||||||
<option <?php if ($category_id == $category_id_select) { echo "selected"; } ?> value="<?php echo $category_id_select; ?>"><?php echo $category_name_select; ?></option>
|
<option <?php if ($category_id == $category_id_select) {
|
||||||
|
echo "selected";
|
||||||
|
} ?> value="<?php echo $category_id_select; ?>"><?php echo $category_name_select; ?></option>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
@@ -59,6 +61,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class='form-group'>
|
||||||
|
<label>Discount Amount</label>
|
||||||
|
<div class='input-group'>
|
||||||
|
<div class='input-group-prepend'>
|
||||||
|
<span class='input-group-text'><i class='fa fa-fw fa-dollar-sign'></i></span>
|
||||||
|
</div>
|
||||||
|
<input type='number' class='form-control' name='invoice_discount' placeholder='Discount Amount' value='<?php echo $invoice_discount; ?>'>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Scope</label>
|
<label>Scope</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
|
|||||||
Reference in New Issue
Block a user