mirror of https://github.com/itflow-org/itflow
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:
parent
594c8565ce
commit
74aa0e829f
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue