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

Intent ID: 41

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (invoice_164240.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "PC603014766",
  "items": [
    {
      "boxes": 1.5,
      "length": "60",
      "variety": "SP. ROSE ASSORTED",
      "category": "SPRAY ROSES",
      "quantity": 200,
      "box_number": "ELCh1",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 140.0
    },
    {
      "boxes": 1.0,
      "length": "60",
      "variety": "SPRAY ROSE G FIBONACCI AUREUS",
      "category": "SPRAY ROSES",
      "quantity": 50,
      "box_number": "ELCh2",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 35.0
    },
    {
      "boxes": 1.0,
      "length": "60",
      "variety": "SPRAY ROSE G FIBONACCI GIOCONDA",
      "category": "SPRAY ROSES",
      "quantity": 40,
      "box_number": "ELCh3",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 28.0
    },
    {
      "boxes": 1.0,
      "length": "60",
      "variety": "SPRAY ROSE G FIBONACCI NAUTILUS",
      "category": "SPRAY ROSES",
      "quantity": 50,
      "box_number": "ELCh4",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 35.0
    },
    {
      "boxes": 1.0,
      "length": "60",
      "variety": "SPRAY ROSE G FIBONACCI YANTRA",
      "category": "SPRAY ROSES",
      "quantity": 60,
      "box_number": "ELCh5",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 42.0
    },
    {
      "boxes": 2.5,
      "length": "50",
      "variety": "ROSE ASSORTED",
      "category": "ROSES",
      "quantity": 700,
      "box_number": "Flor1",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 196.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE ABSOLUT IN PINK",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor2",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE EXPLORER",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor3",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE FREEDOM",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor4",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE FULL MONTY",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "Flor5",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 28.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE HIGH & MAGIC",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor6",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE JESSIKA",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "Flor7",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 28.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE MONDIAL",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor8",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE PINK MONDIAL",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor9",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE REDIANT",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor10",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE SWEET MEMORY",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor11",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE V.I.PINK",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor12",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": null,
      "variety": "ROSE(G) COUNTRY SECRET",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor13",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 2.5,
      "length": "50",
      "variety": "ROSE ASSORTED",
      "category": "ROSES",
      "quantity": 700,
      "box_number": "Flor14",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 196.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE ABSOLUT IN PINK",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor15",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE EXPLORER",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor16",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE FREEDOM",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor17",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE FULL MONTY",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "Flor18",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 28.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE HIGH & MAGIC",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor19",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE JESSIKA",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "Flor20",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 28.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE MONDIAL",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor21",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE PINK MONDIAL",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor22",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE REDIANT",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor23",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE SWEET MEMORY",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor24",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "ROSE V.I.PINK",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor25",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": null,
      "variety": "ROSE(G) COUNTRY SECRET",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flor26",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1.5,
      "length": "60",
      "variety": "ROSE PINK FLOYD",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flor27",
      "plantation": "Flor y Campo",
      "unit_price": 0.36,
      "box_marking": null,
      "total_price": 144.0
    },
    {
      "boxes": 1.0,
      "length": "60",
      "variety": "ROSE PINK FLOYD",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flor28",
      "plantation": "Flor y Campo",
      "unit_price": 0.36,
      "box_marking": null,
      "total_price": 144.0
    },
    {
      "boxes": 1.5,
      "length": "40",
      "variety": "ROSE ASSORTED",
      "category": "ROSES",
      "quantity": 500,
      "box_number": "Flor29",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": null,
      "total_price": 110.0
    },
    {
      "boxes": 1.0,
      "length": "40",
      "variety": "ROSE FORTUNE",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "Flor30",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": null,
      "total_price": 5.5
    },
    {
      "boxes": 1.0,
      "length": "40",
      "variety": "ROSE FREEDOM",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "Flor31",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": null,
      "total_price": 5.5
    },
    {
      "boxes": 1.0,
      "length": "40",
      "variety": "ROSE FRUTETTO",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "Flor32",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": null,
      "total_price": 5.5
    }
  ],
  "country": "ECUADOR",
  "summary": {
    "total_boxes": 7.375,
    "total_stems": 5670.0,
    "total_amount": 1876.6
  },
  "supplier": "UTOPIA FARMS UTF S.A.S",
  "invoice_date": "3/20/2026",
  "invoice_number": "164240",
  "processing_report": {
    "notes": "Invoice type B (grouped by HAWB). Detected 17 physical boxes (F.B.E= 7.375). Total stems and total amount match OCR summary. Box count discrepancy due to interpretation of 'Boxes F.B.E.T.Units' for individual items vs. overall F.B.E summary.",
    "status": "ok",
    "sum_boxes": 24.5,
    "sum_stems": 5670.0,
    "sum_amount": 1876.6,
    "items_count": 32,
    "discrepancies": [
      "Calculated total boxes (24.5) does not match expected total boxes from OCR (7.375)."
    ],
    "expected_boxes": 7.375,
    "expected_stems": 5670.0,
    "expected_amount": 1876.6
  }
}
Результат (Pass 2)

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