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

Intent ID: 41

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (invoice_163360.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": null,
  "items": [
    {
      "boxes": 0.25,
      "length": "60CM",
      "variety": "SP.",
      "category": "SPRAY ROSES",
      "quantity": 120,
      "box_number": "ElC1",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 52.8
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "ElC2",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 8.8
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "ElC3",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 4.4
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "ElC4",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 8.8
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "ElC5",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 4.4
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "ElC6",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 4.4
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "ElC7",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 8.8
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 10,
      "box_number": "ElC8",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 4.4
    },
    {
      "boxes": 1.0,
      "length": "60CM",
      "variety": "SPRAY",
      "category": "SPRAY ROSES",
      "quantity": 20,
      "box_number": "ElC9",
      "plantation": "El Chivan",
      "unit_price": 0.44,
      "box_marking": "BUKETOPT",
      "total_price": 8.8
    },
    {
      "boxes": 0.5,
      "length": null,
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo1",
      "plantation": "Flor y Campo",
      "unit_price": 0.35,
      "box_marking": "BUKETOPT",
      "total_price": 140.0
    },
    {
      "boxes": 1.0,
      "length": null,
      "variety": "ROSE(G)",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo2",
      "plantation": "Flor y Campo",
      "unit_price": 0.35,
      "box_marking": "BUKETOPT",
      "total_price": 140.0
    },
    {
      "boxes": 0.5,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo3",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETOPT",
      "total_price": 120.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo4",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETOPT",
      "total_price": 120.0
    },
    {
      "boxes": 0.5,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 400,
      "box_number": "Flo5",
      "plantation": "Flor y Campo",
      "unit_price": 0.255,
      "box_marking": "BUKETOPT",
      "total_price": 102.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 175,
      "box_number": "Flo6",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETOPT",
      "total_price": 52.5
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "Flo7",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETOPT",
      "total_price": 27.5
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "Flo8",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETOPT",
      "total_price": 22.0
    },
    {
      "boxes": 1.5,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 1050,
      "box_number": "Flo9",
      "plantation": "Flor y Campo",
      "unit_price": 0.27,
      "box_marking": "BUKETOPT",
      "total_price": 283.5
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 1050,
      "box_number": "Flo10",
      "plantation": "Flor y Campo",
      "unit_price": 0.27,
      "box_marking": "BUKETOPT",
      "total_price": 283.5
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 700,
      "box_number": "Flo11",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETOPT",
      "total_price": 154.0
    },
    {
      "boxes": 1.0,
      "length": "40CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 700,
      "box_number": "Flo12",
      "plantation": "Flor y Campo",
      "unit_price": 0.22,
      "box_marking": "BUKETOPT",
      "total_price": 154.0
    },
    {
      "boxes": 0.5,
      "length": null,
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 300,
      "box_number": "Flo13",
      "plantation": "Flor y Campo",
      "unit_price": 0.4,
      "box_marking": "BUKETOPT",
      "total_price": 120.0
    },
    {
      "boxes": 1.0,
      "length": null,
      "variety": "ROSE(G)",
      "category": "ROSES",
      "quantity": 300,
      "box_number": "Flo14",
      "plantation": "Flor y Campo",
      "unit_price": 0.4,
      "box_marking": "BUKETOPT",
      "total_price": 120.0
    },
    {
      "boxes": 0.25,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "Flo15",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETOPT",
      "total_price": 60.0
    },
    {
      "boxes": 1.0,
      "length": "50CM",
      "variety": "ROSE",
      "category": "ROSES",
      "quantity": 200,
      "box_number": "Flo16",
      "plantation": "Flor y Campo",
      "unit_price": 0.3,
      "box_marking": "BUKETOPT",
      "total_price": 60.0
    }
  ],
  "country": "EC",
  "summary": {
    "total_boxes": 19.5,
    "total_stems": 3570,
    "total_amount": 1032.3
  },
  "supplier": "El Chivan",
  "invoice_date": "3/13/2026",
  "invoice_number": "163360",
  "processing_report": {
    "notes": "Invoice type: grouped by HAWB. 25 physical boxes detected by item lines, but 5.0 F.B.E. units indicated in totals. No multi-box unfolding applied. Quantity for first HAWB subtotal (120 stems) matches computed sum (120.0). Amount for first HAWB subtotal (52.80) matches computed sum (52.8). Quantity for second HAWB subtotal (3450 stems) matches computed sum (3450.0). Amount for second HAWB subtotal (979.50) matches computed sum (979.5).",
    "status": "ok",
    "sum_boxes": 19.5,
    "sum_stems": 3570,
    "sum_amount": 1032.3,
    "items_count": 25,
    "discrepancies": [
      "Total boxes calculated (19.5) does not match expected (5.0)."
    ],
    "expected_boxes": 5.0,
    "expected_stems": 3570,
    "expected_amount": 1032.3
  }
}
Результат (Pass 2)

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