Fix delete Invoice Item not updating balance

This commit is contained in:
johnnyq 2021-08-28 19:48:06 -04:00
parent 3b3e6a0166
commit 09c62eb359
5 changed files with 10 additions and 10 deletions

View File

@ -96,7 +96,7 @@
<div class="tab-pane fade" id="pills-photo">
<div class="form-group">
<label>Photo</label>
<label>Upload Photo</label>
<input type="file" class="form-control-file" name="file">
</div>
@ -105,7 +105,7 @@
<div class="tab-pane fade" id="pills-notes">
<div class="form-group">
<textarea class="form-control" rows="8" name="notes"></textarea>
<textarea class="form-control" rows="8" name="notes" placeholder="Enter some notes"></textarea>
</div>
</div>

View File

@ -168,7 +168,7 @@
<div class="tab-pane fade" id="pills-notes">
<div class="form-group">
<textarea class="form-control" rows="8" name="notes"></textarea>
<textarea class="form-control" rows="8" name="notes" placeholder="Enter some notes"></textarea>
</div>
</div>

View File

@ -35,7 +35,7 @@
<label>Name <strong class="text-danger">*</strong></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-user"></i></span>
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
</div>
<input type="text" class="form-control" name="name" placeholder="Full Name" value="<?php echo $contact_name; ?>" required>
</div>
@ -45,7 +45,7 @@
<label>Title / Primary Contact</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-id-badge"></i></span>
<span class="input-group-text"><i class="fa fa-fw fa-id-badge"></i></span>
</div>
<input type="text" class="form-control" name="title" placeholder="Title" value="<?php echo $contact_title; ?>">
<div class="input-group-append">
@ -87,7 +87,7 @@
<label>Email</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-envelope"></i></span>
<span class="input-group-text"><i class="fa fa-fw fa-envelope"></i></span>
</div>
<input type="email" class="form-control" name="email" placeholder="Email Address" value="<?php echo $contact_email; ?>">
</div>
@ -109,7 +109,7 @@
</center>
<div class="form-group">
<label>Photo</label>
<label>Upload Photo</label>
<input type="file" class="form-control-file" name="file">
</div>
@ -118,7 +118,7 @@
<div class="tab-pane fade" id="pills-notes<?php echo $contact_id; ?>">
<div class="form-group">
<textarea class="form-control" rows="8" name="notes"><?php echo $contact_notes; ?></textarea>
<textarea class="form-control" rows="8" name="notes" placeholder="Enter some notes"><?php echo $contact_notes; ?></textarea>
</div>
</div>

View File

@ -177,7 +177,7 @@
<div class="tab-pane fade" id="pills-notes<?php echo $location_id; ?>">
<div class="form-group">
<textarea class="form-control" rows="8" name="notes"><?php echo $location_notes; ?></textarea>
<textarea class="form-control" rows="8" name="notes" placeholder="Enter some notes"><?php echo $location_notes; ?></textarea>
</div>
</div>

View File

@ -2683,7 +2683,7 @@ if(isset($_GET['delete_invoice_item'])){
$sql = mysqli_query($mysqli,"SELECT * FROM invoice_items WHERE item_id = $item_id AND company_id = $session_company_id");
$row = mysqli_fetch_array($sql);
$invoice_id = $row['invoice_id'];
$invoice_id = $row['item_invoice_id'];
$item_subtotal = $row['item_subtotal'];
$item_tax = $row['item_tax'];
$item_total = $row['item_total'];