Skip to main content

types/invoices/Product

@arolariu/website


@arolariu/website / types/invoices/Product

types/invoices/Product

Fileoverview

Product type definitions for invoice line items.

Remarks

This module defines product (line item) types representing individual items purchased on an invoice. Products are the most granular level of transaction data, enabling detailed spending analytics.

Data Extraction: Product data is extracted from invoice scans via:

  1. OCR text recognition
  2. AI entity extraction (names, prices, quantities)
  3. Barcode/product code lookups
  4. Manual user corrections

Product Enrichment: Raw OCR names are enriched with:

  • Generic names (e.g., "MLK 2% 1L" → "Milk 2% 1 Liter")
  • Category classification
  • Allergen detection
  • Nutritional information (future)

See

  • Invoice.items for product attachment to invoices
  • Allergen for allergen information

Interfaces

Type Aliases

Variables

// was this page useful?