Песочница: UTOPIA FARMS UTF S.A.S

Intent ID: 41

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (invoice_165894.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-9981 7701",
  "items": [
    {
      "boxes": 0.25,
      "length": "60CM",
      "variety": "ASSORTED",
      "category": "SPRAY ROSES",
      "quantity": 120,
      "box_number": "UTF1",
      "plantation": "UTOPIA FARMS UTF S.A.S",
      "unit_price": 0.44,
      "box_marking": "BUKETO PT",
      "total_price": 52.8
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "ARIES",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "UTF2",
      "plantation": "UTOPIA FARMS UTF S.A.S",
      "unit_price": 0.44,
      "box_marking": "BUKETO PT",
      "total_price": 8.8
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "BON BON",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "UTF3",
      "plantation": "UTOPIA FARMS UTF S.A.S",
      "unit_price": 0.44,
      "box_marking": "BUKETO PT",
      "total_price": 4.4
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "CAPRICORN",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "UTF4",
      "plantation": "UTOPIA FARMS UTF S.A.S",
      "unit_price": 0.44,
      "box_marking": "BUKETO PT",
      "total_price": 8.8
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "VOLANS",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "UTF5",
      "plantation": "UTOPIA FARMS UTF S.A.S",
      "unit_price": 0.44,
      "box_marking": "BUKETO PT",
      "total_price": 4.4
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "WINK ALLURE",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "UTF6",
      "plantation": "UTOPIA FARMS UTF S.A.S",
      "unit_price": 0.44,
      "box_marking": "BUKETO PT",
      "total_price": 4.4
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "PURPLE IRIS",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "UTF7",
      "plantation": "UTOPIA FARMS UTF S.A.S",
      "unit_price": 0.44,
      "box_marking": "BUKETO PT",
      "total_price": 8.8
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "SCARLETTE MIMMI",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "UTF8",
      "plantation": "UTOPIA FARMS UTF S.A.S",
      "unit_price": 0.44,
      "box_marking": "BUKETO PT",
      "total_price": 4.4
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "SWEET DREAMS",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "UTF9",
      "plantation": "UTOPIA FARMS UTF S.A.S",
      "unit_price": 0.44,
      "box_marking": "BUKETO PT",
      "total_price": 8.8
    },
    {
      "boxes": 0.5,
      "length": "50CM",
      "variety": "KAHALA",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo1",
      "plantation": "Flor y Campo",
      "unit_price": 0.35,
      "box_marking": "BUKETO PT",
      "total_price": 140.0
    },
    {
      "boxes": 1.0,
      "length": null,
      "variety": "KAHALA",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo2",
      "plantation": "Flor y Campo",
      "unit_price": 0.35,
      "box_marking": "BUKETO PT",
      "total_price": 140.0
    },
    {
      "boxes": 0.5,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo3",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETO PT",
      "total_price": 120.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "FRUTETTO",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo4",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETO PT",
      "total_price": 120.0
    },
    {
      "boxes": 0.5,
      "length": "50CM",
      "variety": "ASSORTED",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo5",
      "plantation": "Flor y Campo",
      "unit_price": 0.255,
      "box_marking": "BUKETO PT",
      "total_price": 102.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "FRUTETTO",
      "category": "ROSES",
      "quantity": 175,
      "box_number": "Flo6",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETO PT",
      "total_price": 52.5
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "HIGH & MAGIC",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "Flo7",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETO PT",
      "total_price": 27.5
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "PALOMA",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "Flo8",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETO PT",
      "total_price": 22.0
    },
    {
      "boxes": 1.5,
      "length": "50CM",
      "variety": "FORTUNE",
      "category": "ROSES",
      "quantity": 1050,
      "box_number": "Flo9",
      "plantation": "Flor y Campo",
      "unit_price": 0.27,
      "box_marking": "BUKETO PT",
      "total_price": 283.5
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "FORTUNE",
      "category": "ROSES",
      "quantity": 1050,
      "box_number": "Flo10",
      "plantation": "Flor y Campo",
      "unit_price": 0.27,
      "box_marking": "BUKETO PT",
      "total_price": 283.5
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "PALOMA",
      "category": "ROSES",
      "quantity": 700,
      "box_number": "Flo11",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETO PT",
      "total_price": 154.0
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "PALOMA",
      "category": "ROSES",
      "quantity": 700,
      "box_number": "Flo12",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETO PT",
      "total_price": 154.0
    },
    {
      "boxes": 0.5,
      "length": "50CM",
      "variety": "PINK X-PRESSION",
      "category": "ROSES",
      "quantity": 300,
      "box_number": "Flo13",
      "plantation": "Flor y Campo",
      "unit_price": 0.4,
      "box_marking": "BUKETO PT",
      "total_price": 120.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "PINK X-PRESSION",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "Flo14",
      "plantation": "Flor y Campo",
      "unit_price": 0.4,
      "box_marking": "BUKETO PT",
      "total_price": 120.0
    },
    {
      "boxes": 0.25,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "Flo15",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETO PT",
      "total_price": 60.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "FRUTETTO",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "Flo16",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETO PT",
      "total_price": 60.0
    }
  ],
  "country": "EC",
  "summary": {
    "total_boxes": 17.5,
    "total_stems": 5350,
    "total_amount": 1032.3
  },
  "supplier": "UTOPIA FARMS UTF S.A.S",
  "invoice_date": "4/3/2026",
  "invoice_number": "165894",
  "processing_report": {
    "notes": "Invoice type: grouped by HAWB. 17.5 physical boxes detected. No specific issues during extraction, no multibox expansion applied. AWB from metadata is master AWB, HAWBs for sections are extracted from rows. Subtotal checks applied.",
    "status": "ok",
    "sum_boxes": 17.5,
    "sum_stems": 5350,
    "sum_amount": 1032.3,
    "items_count": 25,
    "discrepancies": [],
    "expected_boxes": 0,
    "expected_stems": 120,
    "expected_amount": 52.8
  }
}
Результат (Pass 2)

  
История (последние 20)
ID Файл Дата