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

Intent ID: 41

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (invoice_162626.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "PC603004271",
  "items": [
    {
      "boxes": 0.25,
      "length": "60",
      "variety": "ASSORTED",
      "category": "SPRAY ROSES",
      "quantity": 120,
      "box_number": "UTC1",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 52.8
    },
    {
      "boxes": 1.0,
      "length": "60",
      "variety": "ARIES",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "UTC2",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 8.8
    },
    {
      "boxes": 1.0,
      "length": "60",
      "variety": "BON BON",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "UTC3",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 4.4
    },
    {
      "boxes": 1.0,
      "length": "60",
      "variety": "CAPRICORN",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "UTC4",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 8.8
    },
    {
      "boxes": 1.0,
      "length": "60",
      "variety": "VOLANS",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "UTC5",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 4.4
    },
    {
      "boxes": 1.0,
      "length": "60",
      "variety": "WINK ALLURE",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "UTC6",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 4.4
    },
    {
      "boxes": 1.0,
      "length": "60",
      "variety": "PURPLE IRISCHKA",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "UTC7",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 8.8
    },
    {
      "boxes": 1.0,
      "length": "60",
      "variety": "SCARLETTE MIMMI",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "UTC8",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 4.4
    },
    {
      "boxes": 1.0,
      "length": "60",
      "variety": "SWEET DREAMS",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "UTC9",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 8.8
    },
    {
      "boxes": 0.5,
      "length": "50",
      "variety": "KAHALA",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "UTC10",
      "plantation": "Flor y Campo",
      "unit_price": 0.35,
      "box_marking": "BUKETOPT",
      "total_price": 140.0
    },
    {
      "boxes": 1.0,
      "length": null,
      "variety": "KAHALA",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "UTC11",
      "plantation": "Flor y Campo",
      "unit_price": 0.35,
      "box_marking": "BUKETOPT",
      "total_price": 140.0
    },
    {
      "boxes": 0.5,
      "length": "50",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "UTC12",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETOPT",
      "total_price": 120.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "FRUTETTO",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "UTC13",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETOPT",
      "total_price": 120.0
    },
    {
      "boxes": 0.5,
      "length": "50",
      "variety": "ASSORTED",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "UTC14",
      "plantation": "Flor y Campo",
      "unit_price": 0.255,
      "box_marking": "BUKETOPT",
      "total_price": 102.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "FRUTETTO",
      "category": "ROSES",
      "quantity": 175,
      "box_number": "UTC15",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETOPT",
      "total_price": 52.5
    },
    {
      "boxes": 1.0,
      "length": "40",
      "variety": "HIGH",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "UTC16",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETOPT",
      "total_price": 27.5
    },
    {
      "boxes": 1.0,
      "length": "40",
      "variety": "PALOMA",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "UTC17",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETOPT",
      "total_price": 22.0
    },
    {
      "boxes": 1.5,
      "length": "50",
      "variety": "FORTUNE",
      "category": "ROSES",
      "quantity": 1050,
      "box_number": "UTC18",
      "plantation": "Flor y Campo",
      "unit_price": 0.27,
      "box_marking": "BUKETOPT",
      "total_price": 283.5
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "FORTUNE",
      "category": "ROSES",
      "quantity": 1050,
      "box_number": "UTC19",
      "plantation": "Flor y Campo",
      "unit_price": 0.27,
      "box_marking": "BUKETOPT",
      "total_price": 283.5
    },
    {
      "boxes": 1.0,
      "length": "40",
      "variety": "PALOMA",
      "category": "ROSES",
      "quantity": 700,
      "box_number": "UTC20",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETOPT",
      "total_price": 154.0
    },
    {
      "boxes": 1.0,
      "length": "40",
      "variety": "PALOMA",
      "category": "ROSES",
      "quantity": 700,
      "box_number": "UTC21",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETOPT",
      "total_price": 154.0
    },
    {
      "boxes": 0.5,
      "length": "50",
      "variety": "PINK X-PRESSION",
      "category": "ROSES",
      "quantity": 300,
      "box_number": "UTC22",
      "plantation": "Flor y Campo",
      "unit_price": 0.4,
      "box_marking": "BUKETOPT",
      "total_price": 120.0
    },
    {
      "boxes": 1.0,
      "length": null,
      "variety": "PINK X-PRESSION",
      "category": "ROSES",
      "quantity": 300,
      "box_number": "UTC23",
      "plantation": "Flor y Campo",
      "unit_price": 0.4,
      "box_marking": "BUKETOPT",
      "total_price": 120.0
    },
    {
      "boxes": 0.25,
      "length": "50",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "UTC24",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETOPT",
      "total_price": 60.0
    },
    {
      "boxes": 1.0,
      "length": "50",
      "variety": "FRUTETTO",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "UTC25",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETOPT",
      "total_price": 60.0
    }
  ],
  "country": "Ecuador",
  "summary": {
    "total_boxes": 16.5,
    "total_stems": 3570,
    "total_amount": 1032.3
  },
  "supplier": "UTOPIA FARMS UTF S.A.S",
  "invoice_date": "3/6/2026",
  "invoice_number": "162626",
  "processing_report": {
    "notes": "Инвойс группируется по HAWB (фермам). Обнаружено 16.5 физических коробок. Проблем при извлечении не обнаружено. Раскрытие мультибокса не применялось.",
    "status": "ok",
    "sum_boxes": 16.5,
    "sum_stems": 3570.0,
    "sum_amount": 1032.3,
    "items_count": 25,
    "discrepancies": [],
    "expected_boxes": 16.5,
    "expected_stems": 3570,
    "expected_amount": 1032.3
  }
}
Результат (Pass 2)

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