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

Intent ID: 41

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (invoice_165905.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": "145-9981 7690",
  "items": [
    {
      "boxes": 0.25,
      "length": "80CM",
      "variety": "VINCENT S CHOICE",
      "category": "SUNFLOWER",
      "quantity": 120,
      "box_number": "UTF1",
      "plantation": "UTOPIA FARMS UTF S.A.S",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 45.6
    },
    {
      "boxes": 0.5,
      "length": "60CM",
      "variety": "ROSE ASSORTED",
      "category": "SPRAY ROSES",
      "quantity": 200,
      "box_number": "ElC1",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 140.0
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "ROSE G FIBONACCI AUREUS",
      "category": "SPRAY ROSE",
      "quantity": 50,
      "box_number": "ElC2",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 35.0
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "ROSE G FIBONACCI GIOCONDA",
      "category": "SPRAY ROSE",
      "quantity": 40,
      "box_number": "ElC3",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 28.0
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "ROSE G FIBONACCI NAUTILUS",
      "category": "SPRAY ROSE",
      "quantity": 50,
      "box_number": "ElC4",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 35.0
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "ROSE G FIBONACCI YANTRA",
      "category": "SPRAY ROSE",
      "quantity": 60,
      "box_number": "ElC5",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 42.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE ASSORTED",
      "category": "ROSES",
      "quantity": 700,
      "box_number": "Flo1",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 196.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE ABSOLUT IN PINK",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo2",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE EXPLORER",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo3",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE FREEDOM",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo4",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE FULL MONTY",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "Flo5",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 28.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE HIGH & MAGIC",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo6",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE JESS IKA",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "Flo7",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 28.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE MONDIAL",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo8",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE PINK MONDIAL",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo9",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE REDIANT",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo10",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE SWEET MEMORY",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo11",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE ASSORTED",
      "category": "ROSES",
      "quantity": 700,
      "box_number": "Flo12",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 196.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE ABSOLUT IN PINK",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo13",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE EXPLORER",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo14",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE FREEDOM",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo15",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE FULL MONTY",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "Flo16",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 28.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE HIGH & MAGIC",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo17",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE JESS IKA",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "Flo18",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 28.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE MONDIAL",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo19",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE PINK MONDIAL",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo20",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE REDIANT",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo21",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE SWEET MEMORY",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo22",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE V.I.PINK",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo23",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 1.0,
      "length": null,
      "variety": "COUNTRY SECRET",
      "category": "ROSE(G)",
      "quantity": 50,
      "box_number": "Flo24",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": "TDA",
      "total_price": 14.0
    },
    {
      "boxes": 0.5,
      "length": "60CM",
      "variety": "ROSE PINK FLOYD",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo25",
      "plantation": "Flor y Campo",
      "unit_price": 0.36,
      "box_marking": "TDA",
      "total_price": 144.0
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "ROSE PINK FLOYD",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo26",
      "plantation": "Flor y Campo",
      "unit_price": 0.36,
      "box_marking": "TDA",
      "total_price": 144.0
    },
    {
      "boxes": 0.5,
      "length": "40CM",
      "variety": "ROSE ASSORTED",
      "category": "ROSES",
      "quantity": 500,
      "box_number": "Flo27",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "TDA",
      "total_price": 110.0
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE FORTUNE",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "Flo28",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "TDA",
      "total_price": 5.5
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE FREEDOM",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "Flo29",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "TDA",
      "total_price": 5.5
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE FRUTETTO",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "Flo30",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "TDA",
      "total_price": 5.5
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE FULL MONTY",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "Flo31",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "TDA",
      "total_price": 5.5
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE HIGH & YELLOW MAGIC",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "Flo32",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "TDA",
      "total_price": 5.5
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE NEWS FLASH",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "Flo33",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "TDA",
      "total_price": 5.5
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE PLAYA BLANCA",
      "category": "ROSES",
      "quantity": 75,
      "box_number": "Flo34",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "TDA",
      "total_price": 16.5
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE RAGAZZA",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo35",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "TDA",
      "total_price": 11.0
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE REDIANT",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "Flo36",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "TDA",
      "total_price": 5.5
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE SILANTOI",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "Flo37",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "TDA",
      "total_price": 5.5
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE STILETTO",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo38",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "TDA",
      "total_price": 11.0
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE SUNSET GLORY",
      "category": "ROSES",
      "quantity": 25,
      "box_number": "Flo39",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "TDA",
      "total_price": 5.5
    },
    {
      "boxes": 1.0,
      "length": null,
      "variety": "COUNTRY BLUES",
      "category": "ROSE(G)",
      "quantity": 50,
      "box_number": "Flo40",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "TDA",
      "total_price": 11.0
    },
    {
      "boxes": 1.0,
      "length": null,
      "variety": "PINK X-PRESSION",
      "category": "ROSE(G)",
      "quantity": 50,
      "box_number": "Flo41",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "TDA",
      "total_price": 11.0
    },
    {
      "boxes": 0.5,
      "length": "50CM",
      "variety": "ROSE ASSORTED",
      "category": "ROSES",
      "quantity": 300,
      "box_number": "Flo42",
      "plantation": "Flor y Campo",
      "unit_price": 0.33,
      "box_marking": "TDA",
      "total_price": 99.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE HIGH & MAGIC",
      "category": "ROSES",
      "quantity": 150,
      "box_number": "Flo43",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "TDA",
      "total_price": 45.0
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "ROSE HIGH & MAGIC",
      "category": "ROSES",
      "quantity": 150,
      "box_number": "Flo44",
      "plantation": "Flor y Campo",
      "unit_price": 0.36,
      "box_marking": "TDA",
      "total_price": 54.0
    },
    {
      "boxes": 0.5,
      "length": "50CM",
      "variety": "ROSE ASSORTED",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo45",
      "plantation": "Flor y Campo",
      "unit_price": 0.358,
      "box_marking": "TDA",
      "total_price": 143.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE EXPLORER",
      "category": "ROSES",
      "quantity": 150,
      "box_number": "Flo46",
      "plantation": "Flor y Campo",
      "unit_price": 0.32,
      "box_marking": "TDA",
      "total_price": 48.0
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "ROSE EXPLORER",
      "category": "ROSES",
      "quantity": 250,
      "box_number": "Flo47",
      "plantation": "Flor y Campo",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 95.0
    },
    {
      "boxes": 0.125,
      "length": "70CM",
      "variety": "TRACHELIUM ANDANTE WHITE",
      "category": "TRACHELIUM",
      "quantity": 100,
      "box_number": "LaM1",
      "plantation": "La Mora",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 38.0
    },
    {
      "boxes": 1.0,
      "length": "70CM",
      "variety": "TRACHELIUM ANDANTE WHITE",
      "category": "TRACHELIUM",
      "quantity": 100,
      "box_number": "LaM2",
      "plantation": "La Mora",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 38.0
    },
    {
      "boxes": 0.125,
      "length": "60CM",
      "variety": "RICE FLOW.VICTORIA PINK",
      "category": "RICE",
      "quantity": 150,
      "box_number": "San1",
      "plantation": "San Pablo",
      "unit_price": 0.48,
      "box_marking": "TDA",
      "total_price": 72.0
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "RICE FLOWER(P) VICTORIA PINK",
      "category": "RICE",
      "quantity": 150,
      "box_number": "San2",
      "plantation": "San Pablo",
      "unit_price": 0.48,
      "box_marking": "TDA",
      "total_price": 72.0
    },
    {
      "boxes": 0.125,
      "length": "70CM",
      "variety": "JADE",
      "category": "TRACHELIUM(J)",
      "quantity": 100,
      "box_number": "San3",
      "plantation": "Santa Martha",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 38.0
    },
    {
      "boxes": 1.0,
      "length": "70CM",
      "variety": "JADE",
      "category": "TRACHELIUM(J)",
      "quantity": 100,
      "box_number": "San4",
      "plantation": "Santa Martha",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 38.0
    },
    {
      "boxes": 0.5,
      "length": "40GR",
      "variety": "GYP SO.OVER TIME RAINBOW LIGHT",
      "category": "GYP",
      "quantity": 500,
      "box_number": "San5",
      "plantation": "Santa Martha",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 190.0
    },
    {
      "boxes": 1.0,
      "length": "40GR",
      "variety": "GYP SOPHILA(O) DYED OVERTIME",
      "category": "GYP",
      "quantity": 500,
      "box_number": "San6",
      "plantation": "Santa Martha",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 190.0
    },
    {
      "boxes": 1.5,
      "length": "40GR",
      "variety": "GYP SO.XLENCE WHITE",
      "category": "GYP",
      "quantity": 1500,
      "box_number": "San7",
      "plantation": "Santa Martha",
      "unit_price": 0.31,
      "box_marking": "TDA",
      "total_price": 465.0
    },
    {
      "boxes": 1.0,
      "length": "40GR",
      "variety": "GYP SOPHILA(X) XLENCE",
      "category": "GYP",
      "quantity": 1500,
      "box_number": "San8",
      "plantation": "Santa Martha",
      "unit_price": 0.31,
      "box_marking": "TDA",
      "total_price": 465.0
    }
  ],
  "country": "EC",
  "summary": {
    "total_boxes": 31.0,
    "total_stems": 8295,
    "total_amount": 2862.6
  },
  "supplier": "UTOPIA FARMS UTF S.A.S",
  "invoice_date": "4/3/2026",
  "invoice_number": "165905",
  "processing_report": {
    "notes": "Grouping invoice type, 55 physical boxes found. Column alignment adjusted dynamically per item row. Multi-box unfolding not applied as item details are per line.",
    "status": "ok",
    "sum_boxes": 31.0,
    "sum_stems": 8295,
    "sum_amount": 2862.6,
    "items_count": 55,
    "discrepancies": [
      "Total stems from items (8295) differs from expected total stems (8390) by 95",
      "Total amount from items (2862.6) differs from expected total amount (2901.6) by 39.0",
      "Total boxes from items (31.0) differs from expected total boxes (10.75) by 20.25"
    ],
    "expected_boxes": 10.75,
    "expected_stems": 8390,
    "expected_amount": 2901.6
  }
}
Результат (Pass 2)

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