mirror of
https://github.com/itflow-org/itflow
synced 2026-03-11 16:24:50 +00:00
Updated all Queries related to invoice items to reflect their new tables quote, invoice, recurring invoice items
This commit is contained in:
@@ -2515,7 +2515,7 @@ if (isset($_POST['add_quote_from_ticket'])) {
|
||||
$quote_id = mysqli_insert_id($mysqli);
|
||||
|
||||
// Add line item
|
||||
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_quote_id = $quote_id");
|
||||
mysqli_query($mysqli, "INSERT INTO quote_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_quote_id = $quote_id");
|
||||
|
||||
// Add internal note to ticket, and link to invoice in database
|
||||
mysqli_query($mysqli, "INSERT INTO ticket_replies SET ticket_reply = 'Created quote <a href=\"quote.php?quote_id=$quote_id\">$config_quote_prefix$quote_number</a> for this ticket.', ticket_reply_type = 'Internal', ticket_reply_time_worked = '00:01:00', ticket_reply_by = $session_user_id, ticket_reply_ticket_id = $ticket_id");
|
||||
|
||||
Reference in New Issue
Block a user