From f68e1ddca60ee846457f2412d4d3199596bf547b Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 28 Aug 2021 02:05:59 -0400 Subject: [PATCH] Recurring Invoice issue in cron --- cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron.php b/cron.php index b2b550c9..1fd9ca67 100644 --- a/cron.php +++ b/cron.php @@ -221,7 +221,7 @@ while($row = mysqli_fetch_array($sql_companies)){ $item_subtotal = $row['item_subtotal']; $item_tax = $row['item_tax']; $item_total = $row['item_total']; - $tax_id = $row['tax_id']; + $tax_id = $row['item_tax_id']; //Insert Items into New Invoice mysqli_query($mysqli,"INSERT INTO invoice_items SET item_name = '$item_name', item_description = '$item_description', item_quantity = '$item_quantity', item_price = '$item_price', item_subtotal = '$item_subtotal', item_tax = '$item_tax', item_total = '$item_total', item_created_at = NOW(), item_tax_id = $tax_id, item_invoice_id = $new_invoice_id, company_id = $company_id");