fix: remove vat_note from extraction_lines INSERT v2.2.24
This commit is contained in:
parent
5e94fc5e69
commit
aabd9f0069
@ -2356,13 +2356,13 @@ async def reprocess_uploaded_file(file_id: int):
|
|||||||
execute_insert(
|
execute_insert(
|
||||||
"""INSERT INTO extraction_lines
|
"""INSERT INTO extraction_lines
|
||||||
(extraction_id, line_number, description, quantity, unit_price,
|
(extraction_id, line_number, description, quantity, unit_price,
|
||||||
line_total, vat_rate, vat_note, confidence)
|
line_total, vat_rate, confidence)
|
||||||
VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)
|
VALUES (%s, %s, %s, %s, %s, %s, %s, %s)
|
||||||
RETURNING line_id""",
|
RETURNING line_id""",
|
||||||
(extraction_id, idx, line.get('description'),
|
(extraction_id, idx, line.get('description'),
|
||||||
line.get('quantity'), line.get('unit_price'),
|
line.get('quantity'), line.get('unit_price'),
|
||||||
line.get('line_total'), line.get('vat_rate'),
|
line.get('line_total'), line.get('vat_rate'),
|
||||||
line.get('vat_note'), confidence)
|
confidence)
|
||||||
)
|
)
|
||||||
|
|
||||||
# Update file status to ai_extracted
|
# Update file status to ai_extracted
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user