Fix Invoice Item order in Ticketing, When creating an invoice from a ticket make sure the item added has an item_order of 1

This commit is contained in:
johnnyq 2023-12-09 16:31:28 -05:00
parent 594c8565ce
commit 74aa0e829f
1 changed files with 1 additions and 1 deletions

View File

@ -857,7 +857,7 @@ if (isset($_POST['add_invoice_from_ticket'])) {
$total = $subtotal + $tax_amount;
mysqli_query($mysqli,"INSERT INTO invoice_items SET item_name = '$item_name', item_description = '$item_description', item_quantity = $qty, item_price = $price, item_subtotal = $subtotal, item_tax = $tax_amount, item_total = $total, item_tax_id = $tax_id, item_invoice_id = $invoice_id");
mysqli_query($mysqli,"INSERT INTO invoice_items SET item_name = '$item_name', item_description = '$item_description', item_quantity = $qty, item_price = $price, item_subtotal = $subtotal, item_tax = $tax_amount, item_total = $total, item_order = 1, item_tax_id = $tax_id, item_invoice_id = $invoice_id");
//Update Invoice Balances