Песочница: TESSACORPORATION

Intent ID: 17

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (90711801.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "501-19717854",
  "items": [
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 20,
      "box_number": "FLO001",
      "plantation": "FLOR EANA",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 10
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 20,
      "box_number": "SPR002",
      "plantation": "SPRAY PINKIRISHKA",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 10
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "SPR003",
      "plantation": "SPRAYPURPLEIRISHKA",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 5
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "SPR004",
      "plantation": "SPRAYROYALPORCELINA",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 5
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 30,
      "box_number": "SPR005",
      "plantation": "SPRAYSNOWFLAKE",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 15
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "SPR006",
      "plantation": "SPRAY STARBLUSH",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 5
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "SPR007",
      "plantation": "SPRAY SUSPIRO",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 5
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "SPR008",
      "plantation": "SPRAYWEDDINGSENSATION",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 5
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 40,
      "box_number": "SPR009",
      "plantation": "SPRAY WHITEMAJOLIKA",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 20
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "TESSAP",
      "category": "",
      "quantity": 40,
      "box_number": "910849326",
      "plantation": "SPRAY BS CAPRICORN",
      "unit_price": 0.5,
      "box_marking": "HB XL 1",
      "total_price": 20
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 50,
      "box_number": "910849326",
      "plantation": "SPRAY BS LEO",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 25
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 20,
      "box_number": "910849326",
      "plantation": "SPRAY BSVELA",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 10
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 20,
      "box_number": "910849326",
      "plantation": "SPRAY CRETA",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 10
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "910849326",
      "plantation": "SPRAY FLOREANA",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 5
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 20,
      "box_number": "910849326",
      "plantation": "SPRAY LAVENDERIRISHKA",
      "unit_price": 0.6,
      "box_marking": null,
      "total_price": 12
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "910849326",
      "plantation": "SPRAYROYALPORCELINA",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 5
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "910849326",
      "plantation": "SPRAY SAONA",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 5
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "910849326",
      "plantation": "SPRAY SHINING STAR",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 5
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 20,
      "box_number": "910849326",
      "plantation": "SPRAY SNOWFLAKE",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 10
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "910849326",
      "plantation": "SPRAY SUSPIRO",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 5
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 30,
      "box_number": "910849326",
      "plantation": "SPRAY WEDDINGSENSATION",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 15
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "TESSAP",
      "category": "",
      "quantity": 20,
      "box_number": "910849329",
      "plantation": "SPRAY BS LEO",
      "unit_price": 0.5,
      "box_marking": "HB XL 1",
      "total_price": 10
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 30,
      "box_number": "910849329",
      "plantation": "SPRAY BSVELA",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 15
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 20,
      "box_number": "910849329",
      "plantation": "SPRAY CRETA",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 10
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 30,
      "box_number": "910849329",
      "plantation": "SPRAY FLOREANA",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 15
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 40,
      "box_number": "910849329",
      "plantation": "SPRAY LAVENDERIRISHKA",
      "unit_price": 0.6,
      "box_marking": null,
      "total_price": 24
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 30,
      "box_number": "910849329",
      "plantation": "SPRAY ROYALPORCELINA",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 15
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "910849329",
      "plantation": "SPRAY SHINING STAR",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 5
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 50,
      "box_number": "910849329",
      "plantation": "SPRAY SNOWFLAKE",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 25
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 20,
      "box_number": "910849329",
      "plantation": "SPRAY SUSPIRO",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 10
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "TESSAP",
      "category": "",
      "quantity": 10,
      "box_number": "910849331",
      "plantation": "SPRAY ARCTIC FLOW",
      "unit_price": 0.7,
      "box_marking": "QB 4",
      "total_price": 7
    },
    {
      "boxes": null,
      "length": null,
      "variety": null,
      "category": "",
      "quantity": null,
      "box_number": "DRE001",
      "plantation": "DREAMS",
      "unit_price": null,
      "box_marking": null,
      "total_price": null
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "SPR010",
      "plantation": "SPRAYTHAT SREDJEWEL",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 5
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "SPR011",
      "plantation": "SPRAYVINTAGEROSEVER",
      "unit_price": 0.5,
      "box_marking": null,
      "total_price": 5
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "TESSA-R3",
      "category": "",
      "quantity": 10,
      "box_number": "910849207",
      "plantation": "SPRAYBABYROSEVER",
      "unit_price": 0.7,
      "box_marking": "QB3",
      "total_price": 7
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "SPR012",
      "plantation": "SPRAYBSBONBON",
      "unit_price": 0.6,
      "box_marking": null,
      "total_price": 6
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "SPR013",
      "plantation": "SPRAYBCYGNUS",
      "unit_price": 0.6,
      "box_marking": null,
      "total_price": 6
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "SPR014",
      "plantation": "SPRAYCREAM OFTHE CROPJEWEL",
      "unit_price": 0.6,
      "box_marking": null,
      "total_price": 6
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "SPR015",
      "plantation": "SPRAYFLOREANA",
      "unit_price": 0.6,
      "box_marking": null,
      "total_price": 6
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 10,
      "box_number": "SPR016",
      "plantation": "SPRAYGREENROSEVER",
      "unit_price": 0.6,
      "box_marking": null,
      "total_price": 6
    },
    {
      "boxes": null,
      "length": "60CM",
      "variety": null,
      "category": "",
      "quantity": 40,
      "box_number": "SPR017",
      "plantation": "SPRAYS MORNINGSTAR",
      "unit_price": 0.6,
      "box_marking": null,
      "total_price": 24
    }
  ],
  "country": "Kyrgyz Republic(Kyrgyzstan)",
  "summary": {
    "total_boxes": 4,
    "total_stems": 890,
    "total_amount": 472
  },
  "supplier": null,
  "invoice_date": "",
  "invoice_number": ""
}
Результат (Pass 2)

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