Update: 2026-05-08 01:04:27
This commit is contained in:
@@ -111,7 +111,7 @@ try {
|
|||||||
|
|
||||||
// Save Lines
|
// Save Lines
|
||||||
if (!empty($extracted['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) {
|
foreach ($extracted['lines'] as $idx => $line) {
|
||||||
$lineStmt->execute([
|
$lineStmt->execute([
|
||||||
vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex(random_bytes(16)), 4)),
|
vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex(random_bytes(16)), 4)),
|
||||||
|
|||||||
Reference in New Issue
Block a user