diff --git a/app/cron/process_batches.php b/app/cron/process_batches.php index b0cfe10..e51acfb 100644 --- a/app/cron/process_batches.php +++ b/app/cron/process_batches.php @@ -111,7 +111,7 @@ try { // Save Lines if (!empty($extracted['lines'])) { - $lineStmt = $db->prepare("INSERT INTO invoice_lines (id, invoice_id, line_number, description, quantity, unit_price, tax_rate, total_amount) VALUES (?,?,?,?,?,?,?,?)"); + $lineStmt = $db->prepare("INSERT INTO invoice_lines (id, invoice_id, line_number, description, quantity, unit_price, tax_rate, line_total) VALUES (?,?,?,?,?,?,?,?)"); foreach ($extracted['lines'] as $idx => $line) { $lineStmt->execute([ vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex(random_bytes(16)), 4)),