Песочница: FLORNET@LAPLAZOLETA.COM

Intent ID: 31

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (FLOWER CASTLE LLC-160067.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "IFC 000320131-",
  "items": [
    {
      "boxes": 0.5,
      "length": "70CM",
      "variety": "LIMONIUM SINENSIS LAVENDER",
      "category": "LIMONIUM",
      "quantity": 175,
      "box_number": "C1",
      "plantation": "PLAZOLETA BAZZANI SAS",
      "unit_price": 0.3,
      "box_marking": "TDA",
      "total_price": 52.5
    },
    {
      "boxes": 0.5,
      "length": "70CM",
      "variety": "LIMONIUM SINENSIS YELLOW",
      "category": "LIMONIUM",
      "quantity": 25,
      "box_number": "C1",
      "plantation": "PLAZOLETA BAZZANI SAS",
      "unit_price": 0.3,
      "box_marking": "TDA",
      "total_price": 7.5
    },
    {
      "boxes": 0.5,
      "length": "70CM",
      "variety": "LIMONIUM SINENSIS PINK",
      "category": "LIMONIUM",
      "quantity": 175,
      "box_number": "C2",
      "plantation": "PLAZOLETA BAZZANI SAS",
      "unit_price": 0.3,
      "box_marking": "TDA",
      "total_price": 52.5
    },
    {
      "boxes": 0.5,
      "length": "70CM",
      "variety": "LIMONIUM SINENSIS LAVENDER",
      "category": "LIMONIUM",
      "quantity": 25,
      "box_number": "C2",
      "plantation": "PLAZOLETA BAZZANI SAS",
      "unit_price": 0.3,
      "box_marking": "TDA",
      "total_price": 7.5
    },
    {
      "boxes": 0.333333,
      "length": "70CM",
      "variety": "LIMONIUM SINENSIS WHITE",
      "category": "LIMONIUM",
      "quantity": 125,
      "box_number": "C3",
      "plantation": "PLAZOLETA BAZZANI SAS",
      "unit_price": 0.3,
      "box_marking": "TDA",
      "total_price": 37.5
    },
    {
      "boxes": 0.333333,
      "length": "70CM",
      "variety": "LIMONIUM SINENSIS LAVENDER",
      "category": "LIMONIUM",
      "quantity": 25,
      "box_number": "C3",
      "plantation": "PLAZOLETA BAZZANI SAS",
      "unit_price": 0.3,
      "box_marking": "TDA",
      "total_price": 7.5
    },
    {
      "boxes": 0.333333,
      "length": "70CM",
      "variety": "LIMONIUM SINENSIS PINK",
      "category": "LIMONIUM",
      "quantity": 50,
      "box_number": "C3",
      "plantation": "PLAZOLETA BAZZANI SAS",
      "unit_price": 0.3,
      "box_marking": "TDA",
      "total_price": 15.0
    },
    {
      "boxes": 0.25,
      "length": null,
      "variety": "STATICE PINK",
      "category": "STATICE",
      "quantity": 100,
      "box_number": "C4",
      "plantation": "PLAZOLETA BAZZANI SAS",
      "unit_price": 0.24875,
      "box_marking": "TDA",
      "total_price": 24.875
    },
    {
      "boxes": 0.25,
      "length": null,
      "variety": "LIMONIUM SINENSIS PINK",
      "category": "LIMONIUM",
      "quantity": 25,
      "box_number": "C4",
      "plantation": "PLAZOLETA BAZZANI SAS",
      "unit_price": 0.24875,
      "box_marking": "TDA",
      "total_price": 6.21875
    },
    {
      "boxes": 0.25,
      "length": null,
      "variety": "LIMONIUM SINENSIS WHITE",
      "category": "LIMONIUM",
      "quantity": 50,
      "box_number": "C4",
      "plantation": "PLAZOLETA BAZZANI SAS",
      "unit_price": 0.24875,
      "box_marking": "TDA",
      "total_price": 12.4375
    },
    {
      "boxes": 0.25,
      "length": null,
      "variety": "SOLIDAGO PINK",
      "category": "SOLIDAGO",
      "quantity": 25,
      "box_number": "C4",
      "plantation": "PLAZOLETA BAZZANI SAS",
      "unit_price": 0.24875,
      "box_marking": "TDA",
      "total_price": 6.21875
    },
    {
      "boxes": 0.333333,
      "length": null,
      "variety": "STATICE PURPLE",
      "category": "STATICE",
      "quantity": 150,
      "box_number": "C5",
      "plantation": "PLAZOLETA BAZZANI SAS",
      "unit_price": 0.21375,
      "box_marking": "TDA",
      "total_price": 32.0625
    },
    {
      "boxes": 0.333333,
      "length": null,
      "variety": "SOLIDAGO WHITE",
      "category": "SOLIDAGO",
      "quantity": 25,
      "box_number": "C5",
      "plantation": "PLAZOLETA BAZZANI SAS",
      "unit_price": 0.21375,
      "box_marking": "TDA",
      "total_price": 5.34375
    },
    {
      "boxes": 0.333333,
      "length": null,
      "variety": "SOLIDAGO YELLOW",
      "category": "SOLIDAGO",
      "quantity": 25,
      "box_number": "C5",
      "plantation": "PLAZOLETA BAZZANI SAS",
      "unit_price": 0.21375,
      "box_marking": "TDA",
      "total_price": 5.34375
    }
  ],
  "country": "CO",
  "summary": {
    "total_boxes": 5,
    "total_stems": 1000,
    "total_amount": 272.5
  },
  "supplier": "PLAZOLETA BAZZANI SAS",
  "invoice_date": "2026/04/02",
  "invoice_number": "160067",
  "processing_report": {
    "notes": "Invoice type: Составные коробки (Type A). 5 physical boxes detected. Multiboxes were expanded into 14 detail items with fractional box counts to represent components within each physical box. All sums match expected totals.",
    "status": "ok",
    "sum_boxes": 5.0,
    "sum_stems": 1000,
    "sum_amount": 272.5,
    "items_count": 14,
    "discrepancies": [],
    "expected_boxes": 5,
    "expected_stems": 1000,
    "expected_amount": 272.5
  }
}
Результат (Pass 2)
Report: ok
items=14, boxes=5.0/5, stems=1000/1000, amount=272.5/272.5
notes: Инвойс типа 'Составные коробки (Тип А)' с 5 физическими коробками, раскрытыми в 14 детальных позиций. Все суммарные значения сошлись с итоговыми.
{
  "awb": "543-18624491",
  "items": [
    {
      "boxes": 0.5,
      "length": "70 CM",
      "variety": "LIMONIUM SINENSIS LAVENDER",
      "category": "LIMONIUM",
      "quantity": 175,
      "box_number": "1",
      "plantation": "PLAZOLETA FLOWERS",
      "unit_price": 0.3,
      "box_marking": "TDA",
      "total_price": 52.5
    },
    {
      "boxes": 0.5,
      "length": "70 CM",
      "variety": "LIMONIUM SINENSIS YELLOW",
      "category": "LIMONIUM",
      "quantity": 25,
      "box_number": "1",
      "plantation": "PLAZOLETA FLOWERS",
      "unit_price": 0.3,
      "box_marking": "TDA",
      "total_price": 7.5
    },
    {
      "boxes": 0.5,
      "length": "70 CM",
      "variety": "LIMONIUM SINENSIS PINK",
      "category": "LIMONIUM",
      "quantity": 175,
      "box_number": "2",
      "plantation": "PLAZOLETA FLOWERS",
      "unit_price": 0.3,
      "box_marking": "TDA",
      "total_price": 52.5
    },
    {
      "boxes": 0.5,
      "length": "70 CM",
      "variety": "LIMONIUM SINENSIS LAVENDER",
      "category": "LIMONIUM",
      "quantity": 25,
      "box_number": "2",
      "plantation": "PLAZOLETA FLOWERS",
      "unit_price": 0.3,
      "box_marking": "TDA",
      "total_price": 7.5
    },
    {
      "boxes": 0.333333,
      "length": "70 CM",
      "variety": "LIMONIUM SINENSIS WHITE",
      "category": "LIMONIUM",
      "quantity": 125,
      "box_number": "3",
      "plantation": "PLAZOLETA FLOWERS",
      "unit_price": 0.3,
      "box_marking": "TDA",
      "total_price": 37.5
    },
    {
      "boxes": 0.333333,
      "length": "70 CM",
      "variety": "LIMONIUM SINENSIS LAVENDER",
      "category": "LIMONIUM",
      "quantity": 25,
      "box_number": "3",
      "plantation": "PLAZOLETA FLOWERS",
      "unit_price": 0.3,
      "box_marking": "TDA",
      "total_price": 7.5
    },
    {
      "boxes": 0.333333,
      "length": "70 CM",
      "variety": "LIMONIUM SINENSIS PINK",
      "category": "LIMONIUM",
      "quantity": 50,
      "box_number": "3",
      "plantation": "PLAZOLETA FLOWERS",
      "unit_price": 0.3,
      "box_marking": "TDA",
      "total_price": 15.0
    },
    {
      "boxes": 0.25,
      "length": null,
      "variety": "STATICE PINK",
      "category": "STATICE",
      "quantity": 100,
      "box_number": "4",
      "plantation": "PLAZOLETA FLOWERS",
      "unit_price": 0.24875,
      "box_marking": "TDA",
      "total_price": 24.875
    },
    {
      "boxes": 0.25,
      "length": null,
      "variety": "LIMONIUM SINENSIS PINK",
      "category": "LIMONIUM",
      "quantity": 25,
      "box_number": "4",
      "plantation": "PLAZOLETA FLOWERS",
      "unit_price": 0.24875,
      "box_marking": "TDA",
      "total_price": 6.21875
    },
    {
      "boxes": 0.25,
      "length": null,
      "variety": "LIMONIUM SINENSIS WHITE",
      "category": "LIMONIUM",
      "quantity": 50,
      "box_number": "4",
      "plantation": "PLAZOLETA FLOWERS",
      "unit_price": 0.24875,
      "box_marking": "TDA",
      "total_price": 12.4375
    },
    {
      "boxes": 0.25,
      "length": null,
      "variety": "SOLIDAGO PINK",
      "category": "SOLIDAGO",
      "quantity": 25,
      "box_number": "4",
      "plantation": "PLAZOLETA FLOWERS",
      "unit_price": 0.24875,
      "box_marking": "TDA",
      "total_price": 6.21875
    },
    {
      "boxes": 0.333333,
      "length": null,
      "variety": "STATICE PURPLE",
      "category": "STATICE",
      "quantity": 150,
      "box_number": "5",
      "plantation": "PLAZOLETA FLOWERS",
      "unit_price": 0.21375,
      "box_marking": "TDA",
      "total_price": 32.0625
    },
    {
      "boxes": 0.333333,
      "length": null,
      "variety": "SOLIDAGO WHITE",
      "category": "SOLIDAGO",
      "quantity": 25,
      "box_number": "5",
      "plantation": "PLAZOLETA FLOWERS",
      "unit_price": 0.21375,
      "box_marking": "TDA",
      "total_price": 5.34375
    },
    {
      "boxes": 0.333333,
      "length": null,
      "variety": "SOLIDAGO YELLOW",
      "category": "SOLIDAGO",
      "quantity": 25,
      "box_number": "5",
      "plantation": "PLAZOLETA FLOWERS",
      "unit_price": 0.21375,
      "box_marking": "TDA",
      "total_price": 5.34375
    }
  ],
  "country": "CO",
  "summary": {
    "total_boxes": 5,
    "total_stems": 1000,
    "total_amount": 272.5
  },
  "supplier": "PLAZOLETA FLOWERS",
  "invoice_date": "2026/02/27",
  "invoice_number": "156466",
  "processing_report": {
    "notes": "Инвойс типа 'Составные коробки (Тип А)' с 5 физическими коробками, раскрытыми в 14 детальных позиций. Все суммарные значения сошлись с итоговыми.",
    "status": "ok",
    "sum_boxes": 5.0,
    "sum_stems": 1000,
    "sum_amount": 272.5,
    "items_count": 14,
    "discrepancies": [],
    "expected_boxes": 5,
    "expected_stems": 1000,
    "expected_amount": 272.5
  }
}
История (последние 20)
ID Файл Дата
122 FLOWER CASTLE LLC-156466.pdf 2026-03-06 03:54:22.291384+00:00 Excel
121 FLOWER CASTLE LLC-156466.pdf 2026-03-06 03:18:20.242692+00:00 Excel
120 FLOWER CASTLE LLC-156466.pdf 2026-03-05 08:57:08.776354+00:00 Excel
119 FLOWER CASTLE LLC-156466.pdf 2026-03-05 08:37:55.051813+00:00 Excel
118 FLOWER CASTLE LLC-156466.pdf 2026-03-05 08:14:44.483886+00:00 Excel
14 FLOWER CASTLE LLC-155794 (1).pdf 2026-02-23 16:16:34.130651+00:00 Excel