From a6ae628934c7d3e2f07983fc276f3ae0ed420484 Mon Sep 17 00:00:00 2001 From: Marius Mutu Date: Tue, 16 Dec 2025 15:08:55 +0200 Subject: [PATCH] feat: Restructure receipt form UI with bon fiscal sections MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Restructure OCRPreview with 5 sections matching Romanian receipt format: FURNIZOR, DOCUMENT, TOTAL, PLATA, TVA - Add collapse button to OCRPreview header with minimize functionality - Restructure form with matching compact sections for side-by-side comparison - Add "din OCR" indicator when payment mode is auto-set from OCR - Remove auto-collapse behavior - OCRPreview stays visible after applying data - Add prominent TOTAL box styling with gradient background - Compact form layout with fields on same row where logical - Add TVA section to form with editable breakdown 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../src/components/ocr/OCRPreview.vue | 351 ++++--- .../src/views/receipts/ReceiptCreateView.vue | 906 ++++++++++++------ 2 files changed, 795 insertions(+), 462 deletions(-) diff --git a/data-entry-app/frontend/src/components/ocr/OCRPreview.vue b/data-entry-app/frontend/src/components/ocr/OCRPreview.vue index 89f1cb9..c90c68b 100644 --- a/data-entry-app/frontend/src/components/ocr/OCRPreview.vue +++ b/data-entry-app/frontend/src/components/ocr/OCRPreview.vue @@ -7,117 +7,107 @@
- Incredere generala: +
-
- -
- -
+ +
+
FURNIZOR
+
+
+ {{ data.partner_name }} + +
+
CUI: {{ data.cui }}
+
{{ data.address }}
+
+
+ + +
+
DOCUMENT
+
+
+ + Nr: {{ data.receipt_series ? data.receipt_series + ' ' : '' }}{{ data.receipt_number }} + + + + {{ formatDate(data.receipt_date) }} + +
+
- -
-