feat: enhance receipt import functionality with category selection and PDF opening support

This commit is contained in:
Nils-Johan Gynther
2026-05-01 22:46:58 +02:00
parent 5c263a14df
commit 4cbd658fa0
7 changed files with 440 additions and 68 deletions
@@ -6,11 +6,16 @@ import '../domain/parsed_receipt_item.dart';
enum ImportDestination { inventory, pantry }
enum CategorySelectionSource { ai, manual }
// ── Per-rad redigeringstillstånd ──────────────────────────────────────────────
class ItemEdit {
final int? productId;
final String? productName;
final int? categoryId;
final String? categoryPath;
final CategorySelectionSource? categorySource;
final double? quantity;
final String? unit;
final ImportDestination destination;
@@ -18,6 +23,9 @@ class ItemEdit {
const ItemEdit({
this.productId,
this.productName,
this.categoryId,
this.categoryPath,
this.categorySource,
this.quantity,
this.unit,
this.destination = ImportDestination.inventory,