Песочница: PACIFICAIRCARGO/ RUSSIA

Intent ID: 24

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (20260301014956907.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-99817605",
  "items": [
    {
      "boxes": 3,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 1300,
      "box_number": "HB",
      "plantation": "GARDAEXPORT S.A.",
      "unit_price": 0.31442308,
      "box_marking": "HB",
      "total_price": 408.75
    },
    {
      "boxes": 3,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 792,
      "box_number": "HB2",
      "plantation": "ROYAL FLOWERS S.A.",
      "unit_price": 0.65,
      "box_marking": "HB2",
      "total_price": 514.8
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 499,
      "box_number": "HB3",
      "plantation": "ROYAL FLOWERS S.A.",
      "unit_price": 0.24,
      "box_marking": "HB3",
      "total_price": 119.76
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 300,
      "box_number": "HB1",
      "plantation": "ROYAL FLOWERS S.A.",
      "unit_price": 0.4,
      "box_marking": "HB1",
      "total_price": 120.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 500,
      "box_number": "HB2",
      "plantation": "ROYAL FLOWERS S.A.",
      "unit_price": 0.23,
      "box_marking": "HB2",
      "total_price": 115.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 150,
      "box_number": "HB ROYAL",
      "plantation": "ROYAL FLOWERS S.A.",
      "unit_price": 0.35,
      "box_marking": "HB ROYAL",
      "total_price": 52.5
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 250,
      "box_number": "HB1",
      "plantation": "ROYAL FLOWERS S.A.",
      "unit_price": 0.362,
      "box_marking": "HB1",
      "total_price": 90.5
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 500,
      "box_number": "HB3",
      "plantation": "ROYAL FLOWERS S.A.",
      "unit_price": 0.24,
      "box_marking": "HB3",
      "total_price": 120.0
    },
    {
      "boxes": 3,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 1350,
      "box_number": "HB",
      "plantation": "PONTE TRESA",
      "unit_price": 0.24333333,
      "box_marking": "HB",
      "total_price": 328.5
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 100,
      "box_number": "QB",
      "plantation": "PONTE TRESA",
      "unit_price": 0.35,
      "box_marking": "QB",
      "total_price": 35.0
    },
    {
      "boxes": 2,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 200,
      "box_number": "QB",
      "plantation": "PONTE TRESA",
      "unit_price": 0.35,
      "box_marking": "QB",
      "total_price": 70.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSI ES",
      "quantity": 400,
      "box_number": "HB",
      "plantation": "PONTE TRESA",
      "unit_price": 0.24,
      "box_marking": "HB",
      "total_price": null
    },
    {
      "boxes": 2,
      "length": null,
      "variety": null,
      "category": "SPRAY ROSES",
      "quantity": 200,
      "box_number": "QB",
      "plantation": "PONTE TRESA",
      "unit_price": 0.357,
      "box_marking": "QB",
      "total_price": 71.4
    },
    {
      "boxes": 2,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 200,
      "box_number": "QB",
      "plantation": "PONTE TRESA",
      "unit_price": 0.3675,
      "box_marking": "QB",
      "total_price": 73.5
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 450,
      "box_number": "HB",
      "plantation": "PONTE TRESA",
      "unit_price": 0.33,
      "box_marking": "HB",
      "total_price": 148.5
    },
    {
      "boxes": 2,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 200,
      "box_number": "QB",
      "plantation": "PONTE TRESA",
      "unit_price": 0.35,
      "box_marking": "QB",
      "total_price": 70.0
    },
    {
      "boxes": 2,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 500,
      "box_number": "QB",
      "plantation": "TESSAROSES S.A.",
      "unit_price": 0.588,
      "box_marking": "QB",
      "total_price": 294.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 500,
      "box_number": "HB",
      "plantation": "TESSAROSES S.A.",
      "unit_price": 0.588,
      "box_marking": "HB",
      "total_price": 294.0
    },
    {
      "boxes": 3,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 300,
      "box_number": "QB",
      "plantation": "TESSAROSES S.A.",
      "unit_price": 0.33833333,
      "box_marking": "QB",
      "total_price": 101.5
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 185,
      "box_number": "BOXES",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.6162,
      "box_marking": "BOXES",
      "total_price": 114.0
    },
    {
      "boxes": 2,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 200,
      "box_number": "QB",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.35875,
      "box_marking": "QB",
      "total_price": 71.75
    },
    {
      "boxes": 2,
      "length": null,
      "variety": null,
      "category": "SPRAY ROSES",
      "quantity": 500,
      "box_number": "HB",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.4984,
      "box_marking": "HB",
      "total_price": 249.2
    },
    {
      "boxes": 3,
      "length": null,
      "variety": null,
      "category": "SPRAY ROSES",
      "quantity": 500,
      "box_number": "QB",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.4984,
      "box_marking": "QB",
      "total_price": 249.2
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 350,
      "box_number": "HB2",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.35,
      "box_marking": "HB2",
      "total_price": 122.5
    },
    {
      "boxes": 2,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 200,
      "box_number": "QB",
      "plantation": "PONTE TRESA",
      "unit_price": 0.35875,
      "box_marking": "QB",
      "total_price": 71.75
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 100,
      "box_number": "QB",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.3675,
      "box_marking": "QB",
      "total_price": 36.75
    },
    {
      "boxes": 2,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 200,
      "box_number": "QB",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.35,
      "box_marking": "QB",
      "total_price": 70.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 250,
      "box_number": "HB",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.45,
      "box_marking": "HB",
      "total_price": null
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 200,
      "box_number": "HB1",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.5,
      "box_marking": "HB1",
      "total_price": 100.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 300,
      "box_number": "HB2",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.4,
      "box_marking": "HB2",
      "total_price": 120.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 400,
      "box_number": "HB3",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.3,
      "box_marking": "HB3",
      "total_price": 120.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": null,
      "quantity": 350,
      "box_number": "HB2AGR",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.3179,
      "box_marking": "HB2AGR",
      "total_price": 111.25
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 300,
      "box_number": "QB",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.3733,
      "box_marking": "QB",
      "total_price": 112.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 300,
      "box_number": "HB",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.3733,
      "box_marking": "HB",
      "total_price": 112.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 100,
      "box_number": "QB",
      "plantation": "ROYAL FLOWERS S.A.",
      "unit_price": 0.315,
      "box_marking": "QB",
      "total_price": 31.5
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 425,
      "box_number": "BOXES",
      "plantation": "ROYAL FLOWERS S.A.",
      "unit_price": 0.23,
      "box_marking": "BOXES",
      "total_price": 97.75
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 400,
      "box_number": "HB2",
      "plantation": "ROYAL FLOWERS S.A.",
      "unit_price": 0.35,
      "box_marking": "HB2",
      "total_price": 140.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": null,
      "quantity": 825,
      "box_number": "HB3",
      "plantation": "ROYAL FLOWERS S.A.",
      "unit_price": 0.2882,
      "box_marking": "HB3",
      "total_price": 237.75
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 100,
      "box_number": "QB",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.35,
      "box_marking": "QB",
      "total_price": 35.0
    },
    {
      "boxes": 3,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 700,
      "box_number": "HB",
      "plantation": "SOLERA FARMS S.A.S.",
      "unit_price": 0.42,
      "box_marking": "HB",
      "total_price": 294.0
    },
    {
      "boxes": 2,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 600,
      "box_number": "HB",
      "plantation": "PONTE TRESA",
      "unit_price": 0.4229,
      "box_marking": "HB",
      "total_price": 253.75
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 600,
      "box_number": "QB",
      "plantation": "PONTE TRESA",
      "unit_price": 0.4229,
      "box_marking": "QB",
      "total_price": 253.75
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 300,
      "box_number": "HB",
      "plantation": "PONTE TRESA",
      "unit_price": 0.315,
      "box_marking": "HB",
      "total_price": 94.5
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "Roses",
      "quantity": 500,
      "box_number": "HB",
      "plantation": "SOLPACIFICSAVia Ancholag",
      "unit_price": 0.25,
      "box_marking": "HB",
      "total_price": 125.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 300,
      "box_number": "HB",
      "plantation": "SOLPACIFICSAVia Ancholag",
      "unit_price": 0.315,
      "box_marking": "HB",
      "total_price": 94.5
    },
    {
      "boxes": 1,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 100,
      "box_number": "QB",
      "plantation": "SOLPACIFICSAVia Ancholag",
      "unit_price": 0.3675,
      "box_marking": "QB",
      "total_price": 36.75
    },
    {
      "boxes": 2,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 600,
      "box_number": "HB",
      "plantation": "SOLPACIFICSAVia Ancholag",
      "unit_price": 0.315,
      "box_marking": "HB",
      "total_price": 189.0
    },
    {
      "boxes": 5,
      "length": null,
      "variety": null,
      "category": "ROSAS(ROSOIDEA)",
      "quantity": 2000,
      "box_number": "H",
      "plantation": "BELLAROS.A.S.",
      "unit_price": 0.317,
      "box_marking": "H",
      "total_price": 634.0
    },
    {
      "boxes": 5,
      "length": null,
      "variety": null,
      "category": "ROSES",
      "quantity": 1850,
      "box_number": "HB",
      "plantation": "BELLAROS.A.S.",
      "unit_price": 0.30594595,
      "box_marking": "HB",
      "total_price": 566.0
    }
  ],
  "country": "KAZAKHSTAN",
  "summary": {
    "total_boxes": 8,
    "total_stems": null,
    "total_amount": null
  },
  "supplier": "GARDAEXPORT S.A.",
  "invoice_date": "2026-02-26",
  "invoice_number": "0000337006",
  "processing_report": {
    "notes": "Тип инвойса: Гибридный (множество разделов, сгруппированных по поставщику). Обнаружено 42 физических коробки. Обнаружены множественные блоки поставщиков, использованы для определения плантации. Проблемы при извлечении: Несогласованные заголовки столбцов и форматирование затрудняли точное извлечение. Не удалось определить общие итоги по всему инвойсу, только по подразделам.",
    "status": "warning",
    "sum_boxes": 42,
    "sum_stems": 16902,
    "sum_amount": 5472.96,
    "items_count": 42,
    "discrepancies": [
      "Несовпадение количества коробок",
      "Несовпадение количества стеблей",
      "Несовпадение суммы",
      "Не удалось извлечь total_price для 2 item(s).",
      "Не удалось извлечь quantity для 0 item(s).",
      "Не удалось извлечь unit_price для 0 item(s)."
    ],
    "expected_boxes": 8,
    "expected_stems": null,
    "expected_amount": null
  }
}
Результат (Pass 2)

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