Added seperate tax section and added the ability add taxes to invoice this update requires a new table called taxes see the db.sql file for the structure More to come

This commit is contained in:
johnny@pittpc.com
2021-01-15 15:07:27 -05:00
parent 64b2ab3da9
commit a2848fad09
8 changed files with 250 additions and 8 deletions

30
edit_tax_modal.php Normal file
View File

@@ -0,0 +1,30 @@
<div class="modal" id="editTaxModal<?php echo $tax_id; ?>" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content bg-dark">
<div class="modal-header">
<h5 class="modal-title text-white"><i class="fa fa-fw fa-balance-scale mr-2"></i><?php echo $tax_name; ?></h5>
<button type="button" class="close text-white" data-dismiss="modal">
<span aria-hidden="true">&times;</span>
</button>
</div>
<form action="post.php" method="post" autocomplete="off">
<input type="hidden" name="tax_id" value="<?php echo $tax_id; ?>">
<div class="modal-body bg-white">
<div class="form-group">
<label>Name <strong class="text-danger">*</strong></label>
<input type="text" class="form-control" name="name" value="<?php echo $tax_name; ?>" required>
</div>
<div class="form-group">
<label>Percent <strong class="text-danger">*</strong></label>
<input type="number" min="0" class="form-control col-md-2" name="percent" value="<?php echo $tax_percent; ?>">
</div>
</div>
<div class="modal-footer bg-white">
<a href="post.php?delete_category=<?php echo $category_id; ?>" class="btn btn-danger mr-auto"><i class="fa fa-trash text-white"></i></a>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button type="submit" name="edit_tax" class="btn btn-primary">Save</button>
</div>
</form>
</div>
</div>
</div>