Песочница: FRAMA

Intent ID: 35

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (5045366.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "PC603014533",
  "items": [
    {
      "boxes": 1,
      "length": "50",
      "variety": "BABBALOO",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "F1",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.4,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 40
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "BARISTA",
      "category": "ROSES",
      "quantity": 75,
      "box_number": "F1",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.4,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 30
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "BE",
      "category": "ROSES",
      "quantity": 75,
      "box_number": "F1",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.35,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 26.25
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "CANDY",
      "category": "GARDEN ROSES",
      "quantity": 50,
      "box_number": "F1",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.65,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 32.5
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "HOT",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "F1",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.4,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 10
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ORANGE",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "F1",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.35,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 8.75
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "CANDLELIGHT",
      "category": "GARDEN ROSES",
      "quantity": 100,
      "box_number": "F2",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.4,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 40
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "CANDY",
      "category": "GARDEN ROSES",
      "quantity": 25,
      "box_number": "F2",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.55,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 13.75
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "CANDY",
      "category": "GARDEN ROSES",
      "quantity": 50,
      "box_number": "F2",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.65,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 32.5
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "MANDALA",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "F2",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.3,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 7.5
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "MELON",
      "category": "GARDEN ROSES",
      "quantity": 75,
      "box_number": "F2",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.55,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 41.25
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MELON",
      "category": "GARDEN ROSES",
      "quantity": 25,
      "box_number": "F2",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.65,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 16.25
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "PINK",
      "category": "GARDEN ROSES",
      "quantity": 100,
      "box_number": "F2",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.65,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 65
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "CANDLELIGHT",
      "category": "GARDEN ROSES",
      "quantity": 300,
      "box_number": "F3",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.45,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 135
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "CANDLELIGHT",
      "category": "GARDEN ROSES",
      "quantity": 125,
      "box_number": "F4",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.45,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 56.25
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "CANDLELIGHT",
      "category": "GARDEN ROSES",
      "quantity": 175,
      "box_number": "F4",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.55,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 96.25
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "CARNELIAN",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "F5",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.45,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 45
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "COTTON",
      "category": "GARDEN ROSES",
      "quantity": 100,
      "box_number": "F5",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.85,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 85
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "COUNTRY",
      "category": "GARDEN ROSES",
      "quantity": 75,
      "box_number": "F5",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.35,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 26.25
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ESPERANCE",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "F5",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.35,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 8.75
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MELON",
      "category": "GARDEN ROSES",
      "quantity": 50,
      "box_number": "F5",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.65,
      "box_marking": "CV GOROD Novosibirsk",
      "total_price": 32.5
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "COUNTRY",
      "category": "GARDEN ROSES",
      "quantity": 50,
      "box_number": "F6",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.55,
      "box_marking": "TDA Novosibirsk",
      "total_price": 27.5
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ESPERANCE",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "F6",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.35,
      "box_marking": "TDA Novosibirsk",
      "total_price": 35
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "FULL",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "F6",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.35,
      "box_marking": "TDA Novosibirsk",
      "total_price": 8.75
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MANDALA",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "F6",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.4,
      "box_marking": "TDA Novosibirsk",
      "total_price": 10
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "MANDALA",
      "category": "ROSES",
      "quantity": 75,
      "box_number": "F6",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.5,
      "box_marking": "TDA Novosibirsk",
      "total_price": 37.5
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "V.I.",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "F6",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.5,
      "box_marking": "TDA Novosibirsk",
      "total_price": 25
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "EXPLORER",
      "category": "ROSES",
      "quantity": 75,
      "box_number": "F7",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.35,
      "box_marking": "TDA Novosibirsk",
      "total_price": 26.25
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "EXPLORER",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "F7",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.45,
      "box_marking": "TDA Novosibirsk",
      "total_price": 90
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "HOT",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "F7",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.4,
      "box_marking": "TDA Novosibirsk",
      "total_price": 20
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "V.I.",
      "category": "ROSES",
      "quantity": 75,
      "box_number": "F7",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.4,
      "box_marking": "TDA Novosibirsk",
      "total_price": 30
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "HIGH",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "F8",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.45,
      "box_marking": "TDA Novosibirsk",
      "total_price": 45
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MANDARIN",
      "category": "GARDEN ROSES",
      "quantity": 100,
      "box_number": "F8",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.65,
      "box_marking": "TDA Novosibirsk",
      "total_price": 65
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MOMENTUM",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "F8",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.35,
      "box_marking": "TDA Novosibirsk",
      "total_price": 8.75
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "MOMENTUM",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "F8",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.45,
      "box_marking": "TDA Novosibirsk",
      "total_price": 11.25
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MONDIAL",
      "category": "ROSES",
      "quantity": 75,
      "box_number": "F8",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.35,
      "box_marking": "TDA Novosibirsk",
      "total_price": 26.25
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "MONDIAL",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "F8",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.45,
      "box_marking": "TDA Novosibirsk",
      "total_price": 11.25
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "PLAYA",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "F8",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.45,
      "box_marking": "TDA Novosibirsk",
      "total_price": 22.5
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "MONDIAL",
      "category": "ROSES",
      "quantity": 150,
      "box_number": "F9",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.45,
      "box_marking": "TDA Novosibirsk",
      "total_price": 67.5
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "PLAYA",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "F9",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.35,
      "box_marking": "TDA Novosibirsk",
      "total_price": 35
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "V.I.",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "F9",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.4,
      "box_marking": "TDA Novosibirsk",
      "total_price": 40
    }
  ],
  "country": "Kazakhstan",
  "summary": {
    "total_boxes": 9,
    "total_stems": 3200,
    "total_amount": 1502.5
  },
  "supplier": "FRAMA FLOWERS",
  "invoice_date": "03/19/2026",
  "invoice_number": "5045366",
  "processing_report": {
    "notes": "Тип инвойса: Гибридный (составные + individual). Обнаружено 9 физических коробок. Box marking извлечен из данных. Все мультибоксы раскрыты.",
    "status": "ok",
    "sum_boxes": 9,
    "sum_stems": 3200,
    "sum_amount": 1502.5,
    "items_count": 41,
    "discrepancies": [],
    "expected_boxes": 9,
    "expected_stems": 3200,
    "expected_amount": 1502.5
  }
}
Результат (Pass 2)
Report: ok
items=18, boxes=4/4, stems=1400.0/1400, amount=1245.0/1245.0
notes: Тип инвойса: Гибридный (составные + individual). Количество физических коробок: 4. Раскрытие мультибокса применено.
{
  "awb": "PC602014777",
  "items": [
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "ESPERANCE",
      "category": "ROSES",
      "quantity": 75,
      "box_number": "F1",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.5,
      "box_marking": "TDA",
      "total_price": 37.5
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "ESPERANCE",
      "category": "ROSES",
      "quantity": 75,
      "box_number": "F1",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.6,
      "box_marking": "TDA",
      "total_price": 45.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "HEARTS",
      "category": "GARDEN ROSES",
      "quantity": 100,
      "box_number": "F1",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.8,
      "box_marking": "TDA",
      "total_price": 80.0
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "MANDALA",
      "category": "ROSES",
      "quantity": 75,
      "box_number": "F1",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.5,
      "box_marking": "TDA",
      "total_price": 37.5
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "MANDALA",
      "category": "ROSES",
      "quantity": 75,
      "box_number": "F1",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.6,
      "box_marking": "TDA",
      "total_price": 45.0
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "EXPLORER",
      "category": "ROSES",
      "quantity": 150,
      "box_number": "F2",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 1.0,
      "box_marking": "TDA",
      "total_price": 150.0
    },
    {
      "boxes": 1,
      "length": "70CM",
      "variety": "EXPLORER",
      "category": "ROSES",
      "quantity": 150,
      "box_number": "F2",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 1.1,
      "box_marking": "TDA",
      "total_price": 165.0
    },
    {
      "boxes": 1,
      "length": "70CM",
      "variety": "EXPLORER",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "F3",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 1.1,
      "box_marking": "TDA",
      "total_price": 137.5
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FREEDOM",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "F3",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.8,
      "box_marking": "TDA",
      "total_price": 20.0
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "FREEDOM",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "F3",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.9,
      "box_marking": "TDA",
      "total_price": 112.5
    },
    {
      "boxes": 1,
      "length": "70CM",
      "variety": "FREEDOM",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "F3",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 1.0,
      "box_marking": "TDA",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "HEARTS",
      "category": "GARDEN ROSES",
      "quantity": 25,
      "box_number": "F3",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.8,
      "box_marking": "TDA",
      "total_price": 20.0
    },
    {
      "boxes": 1,
      "length": "70CM",
      "variety": "EXPLORER",
      "category": "ROSES",
      "quantity": 75,
      "box_number": "F4",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 1.1,
      "box_marking": "TDA",
      "total_price": 82.5
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "FREEDOM",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "F4",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.9,
      "box_marking": "TDA",
      "total_price": 90.0
    },
    {
      "boxes": 1,
      "length": "70CM",
      "variety": "FREEDOM",
      "category": "ROSES",
      "quantity": 75,
      "box_number": "F4",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 1.0,
      "box_marking": "TDA",
      "total_price": 75.0
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "HEARTS",
      "category": "GARDEN ROSES",
      "quantity": 50,
      "box_number": "F4",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 0.9,
      "box_marking": "TDA",
      "total_price": 45.0
    },
    {
      "boxes": 1,
      "length": "70CM",
      "variety": "HEARTS",
      "category": "GARDEN ROSES",
      "quantity": 25,
      "box_number": "F4",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 1.0,
      "box_marking": "TDA",
      "total_price": 25.0
    },
    {
      "boxes": 1,
      "length": "80CM",
      "variety": "HEARTS",
      "category": "GARDEN ROSES",
      "quantity": 25,
      "box_number": "F4",
      "plantation": "FRAMA FLOWERS",
      "unit_price": 1.1,
      "box_marking": "TDA",
      "total_price": 27.5
    }
  ],
  "country": "Kazakhstan",
  "summary": {
    "total_boxes": 4,
    "total_stems": 1400,
    "total_amount": 1245.0
  },
  "supplier": "FRAMA FLOWERS",
  "invoice_date": "02/13/2026",
  "invoice_number": "5045208",
  "processing_report": {
    "notes": "Тип инвойса: Гибридный (составные + individual). Количество физических коробок: 4. Раскрытие мультибокса применено.",
    "status": "ok",
    "sum_boxes": 4,
    "sum_stems": 1400.0,
    "sum_amount": 1245.0,
    "items_count": 18,
    "discrepancies": [],
    "expected_boxes": 4,
    "expected_stems": 1400,
    "expected_amount": 1245.0
  }
}
История (последние 20)
ID Файл Дата
128 5045208.pdf 2026-03-06 08:51:43.304301+00:00 Excel
127 5045208.pdf 2026-03-06 08:40:55.673074+00:00 Excel
126 5045208.pdf 2026-03-06 07:49:29.557206+00:00 Excel
125 5045208.pdf 2026-03-06 04:18:38.586661+00:00 Excel
124 5045208.pdf 2026-03-06 04:03:17.323537+00:00 Excel
123 5045208.pdf 2026-03-06 04:01:50.434760+00:00 Excel