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:
@@ -857,7 +857,7 @@ if (isset($_POST['add_invoice_from_ticket'])) {
|
|||||||
|
|
||||||
$total = $subtotal + $tax_amount;
|
$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
|
//Update Invoice Balances
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user