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

Intent ID: 41

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (invoice_160731.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "PC602020608",
  "items": [
    {
      "boxes": 0.25,
      "length": "60CM",
      "variety": "SP.ROSE",
      "category": "SPRAY ROSES",
      "quantity": 120,
      "box_number": "ELC1",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 52.8
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "ELC2",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 8.8
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "ELC3",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 8.8
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "ELC4",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 4.4
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "ELC5",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 4.4
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "ELC6",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 4.4
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "ELC7",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 8.8
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "ELC8",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 4.4
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "ELC9",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 8.8
    },
    {
      "boxes": 0.25,
      "length": "60CM",
      "variety": "SP.ROSE",
      "category": "SPRAY ROSES",
      "quantity": 120,
      "box_number": "ELC10",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 52.8
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "ELC11",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 8.8
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "ELC12",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 8.8
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "ELC13",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 4.4
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "ELC14",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 4.4
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "ELC15",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 4.4
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "ELC16",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 8.8
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "ELC17",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 4.4
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "ELC18",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": null,
      "total_price": 4.4
    },
    {
      "boxes": 1,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "ELC19",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETO PT",
      "total_price": 4.4
    },
    {
      "boxes": 0.5,
      "length": null,
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo1",
      "plantation": "Flor y Campo",
      "unit_price": 0.35,
      "box_marking": "BUKETO PT",
      "total_price": 140
    },
    {
      "boxes": 1,
      "length": null,
      "variety": "ROSE(G)",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo2",
      "plantation": "Flor y Campo",
      "unit_price": 0.35,
      "box_marking": "BUKETO PT",
      "total_price": 140
    },
    {
      "boxes": 0.5,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo3",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETO PT",
      "total_price": 120
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo4",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETO PT",
      "total_price": 120
    },
    {
      "boxes": 0.5,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo5",
      "plantation": "Flor y Campo",
      "unit_price": 0.255,
      "box_marking": "BUKETO PT",
      "total_price": 102
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 175,
      "box_number": "Flo6",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETO PT",
      "total_price": 52.5
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "Flo7",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETO PT",
      "total_price": 27.5
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "Flo8",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETO PT",
      "total_price": 22
    },
    {
      "boxes": 1.5,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 1050,
      "box_number": "Flo9",
      "plantation": "Flor y Campo",
      "unit_price": 0.27,
      "box_marking": "BUKETO PT",
      "total_price": 283.5
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 1050,
      "box_number": "Flo10",
      "plantation": "Flor y Campo",
      "unit_price": 0.27,
      "box_marking": "BUKETO PT",
      "total_price": 283.5
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 700,
      "box_number": "Flo11",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETO PT",
      "total_price": 154
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 700,
      "box_number": "Flo12",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETO PT",
      "total_price": 154
    },
    {
      "boxes": 0.5,
      "length": null,
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 300,
      "box_number": "Flo13",
      "plantation": "Flor y Campo",
      "unit_price": 0.4,
      "box_marking": "BUKETO PT",
      "total_price": 120
    },
    {
      "boxes": 1,
      "length": null,
      "variety": "ROSE(G)",
      "category": "ROSES",
      "quantity": 300,
      "box_number": "Flo14",
      "plantation": "Flor y Campo",
      "unit_price": 0.4,
      "box_marking": "BUKETO PT",
      "total_price": 120
    },
    {
      "boxes": 0.25,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "Flo15",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETO PT",
      "total_price": 60
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "Flo16",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETO PT",
      "total_price": 60
    },
    {
      "boxes": 0.5,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo17",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETO PT",
      "total_price": 120
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo18",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETO PT",
      "total_price": 120
    },
    {
      "boxes": 0.5,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo19",
      "plantation": "Flor y Campo",
      "unit_price": 0.255,
      "box_marking": "BUKETO PT",
      "total_price": 102
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 175,
      "box_number": "Flo20",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETO PT",
      "total_price": 52.5
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "Flo21",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETO PT",
      "total_price": 27.5
    },
    {
      "boxes": 1,
      "length": "40CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "Flo22",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETO PT",
      "total_price": 22
    },
    {
      "boxes": 1.5,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 1050,
      "box_number": "Flo23",
      "plantation": "Flor y Campo",
      "unit_price": 0.27,
      "box_marking": "BUKETO PT",
      "total_price": 283.5
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 1050,
      "box_number": "Flo24",
      "plantation": "Flor y Campo",
      "unit_price": 0.27,
      "box_marking": "BUKETO PT",
      "total_price": 283.5
    },
    {
      "boxes": 0.5,
      "length": null,
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 300,
      "box_number": "Flo25",
      "plantation": "Flor y Campo",
      "unit_price": 0.4,
      "box_marking": "BUKETO PT",
      "total_price": 120
    },
    {
      "boxes": 1,
      "length": null,
      "variety": "ROSE(G)",
      "category": "ROSES",
      "quantity": 300,
      "box_number": "Flo26",
      "plantation": "Flor y Campo",
      "unit_price": 0.4,
      "box_marking": "BUKETO PT",
      "total_price": 120
    },
    {
      "boxes": 0.25,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "Flo27",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETO PT",
      "total_price": 60
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "Flo28",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETO PT",
      "total_price": 60
    }
  ],
  "country": null,
  "summary": {
    "total_boxes": 28.5,
    "total_stems": 9890,
    "total_amount": 2023.4
  },
  "supplier": "El Chivan",
  "invoice_date": null,
  "invoice_number": null
}
Результат (Pass 2)

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