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

Intent ID: 41

Назад
1) Загрузить файл и получить сырой OCR JSON
Сохраняем последний файл и сырой OCR, чтобы можно было повторно тестировать маппинг без перезагрузки.
Скачать последний файл (invoice_160691.pdf)
2) Правила трансформации
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Промпт LLM-подсказки
Используется кнопкой «Подсказать rules».
Сырой OCR JSON (Pass 1)
{
  "awb": null,
  "items": [
    {
      "boxes": 0.25,
      "length": "80",
      "variety": "SUNFL.VINCENT",
      "category": "SUNFLOWER",
      "quantity": 120,
      "box_number": "BQT1",
      "plantation": "BQT Mora 4",
      "unit_price": 0.38,
      "box_marking": null,
      "total_price": 45.6
    },
    {
      "boxes": 1,
      "length": "80",
      "variety": "SUNFLOWER VINCENT",
      "category": "SUNFLOWER",
      "quantity": 120,
      "box_number": "BQT2",
      "plantation": "BQT Mora 4",
      "unit_price": 0.38,
      "box_marking": null,
      "total_price": 45.6
    },
    {
      "boxes": 0.25,
      "length": "80",
      "variety": "SUNFL.VINCENT",
      "category": "SUNFLOWER",
      "quantity": 120,
      "box_number": "BQT3",
      "plantation": "BQT Mora 4",
      "unit_price": 0.38,
      "box_marking": null,
      "total_price": 45.6
    },
    {
      "boxes": 1,
      "length": "80",
      "variety": "SUNFLOWER VINCENT",
      "category": "SUNFLOWER",
      "quantity": 120,
      "box_number": "BQT4",
      "plantation": "BQT Mora 4",
      "unit_price": 0.38,
      "box_marking": null,
      "total_price": 45.6
    },
    {
      "boxes": 0.5,
      "length": "60",
      "variety": "SP.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,
      "length": "60",
      "variety": "SPRAY ROSE G FIBONACCI AUREUS",
      "category": "SPRAY ROSES",
      "quantity": 50,
      "box_number": "ElC2",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 35.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY ROSE G FIBONACCI GIO",
      "category": "SPRAY ROSES",
      "quantity": 40,
      "box_number": "ElC3",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 28.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY ROSE G FIBONACCI NAUTILUS",
      "category": "SPRAY ROSES",
      "quantity": 50,
      "box_number": "ElC4",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 35.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY ROSE G FIBONACCI YANTRA",
      "category": "SPRAY ROSES",
      "quantity": 60,
      "box_number": "ElC5",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 42.0
    },
    {
      "boxes": 0.5,
      "length": "60",
      "variety": "SP.ROSE ASSORTED",
      "category": "SPRAY ROSES",
      "quantity": 200,
      "box_number": "ElC6",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 140.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY ROSE G FIBONACCI AUREUS",
      "category": "SPRAY ROSES",
      "quantity": 50,
      "box_number": "ElC7",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 35.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY ROSE G FIBONACCI GIO",
      "category": "SPRAY ROSES",
      "quantity": 40,
      "box_number": "ElC8",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 28.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY ROSE G FIBONACCI NAUTILUS",
      "category": "SPRAY ROSES",
      "quantity": 50,
      "box_number": "ElC9",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 35.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "SPRAY ROSE G FIBONACCI YANTRA",
      "category": "SPRAY ROSES",
      "quantity": 60,
      "box_number": "ElC10",
      "plantation": "El Chivan",
      "unit_price": 0.7,
      "box_marking": "TDA",
      "total_price": 42.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE ASSORTED",
      "category": "ROSES",
      "quantity": 700,
      "box_number": "Flo1",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 196.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE ABSOLUT",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo2",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE EXPLORER",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo3",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE FREEDOM",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo4",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE FULL MONTY",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "Flo5",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 28.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE HIGH",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo6",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE JESS",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "Flo7",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 28.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE MONDIAL",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo8",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE PINK MONDIAL",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo9",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE REDIANT",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo10",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE SWEET MEMORY",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo11",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE V.I.PINK",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo12",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE(G) COUNTRY SECRET",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo13",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE ASSORTED",
      "category": "ROSES",
      "quantity": 700,
      "box_number": "Flo14",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 196.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE ABSOLUT",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo15",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE EXPLORER",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo16",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE FREEDOM",
      "category": "ROSES",
      "quantity": 50,
      "box_number": "Flo17",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 14.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "ROSE FULL MONTY",
      "category": "ROSES",
      "quantity": 100,
      "box_number": "Flo18",
      "plantation": "Flor y Campo",
      "unit_price": 0.28,
      "box_marking": null,
      "total_price": 28.0
    },
    {
      "boxes": 0.125,
      "length": "60",
      "variety": "RICE FLOW.VICTORIA",
      "category": "RICE",
      "quantity": 150,
      "box_number": "San1",
      "plantation": "San Pablo",
      "unit_price": 0.48,
      "box_marking": "TDA",
      "total_price": 72.0
    },
    {
      "boxes": 1,
      "length": "60",
      "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": "60",
      "variety": "RICE FLOW.VICTORIA",
      "category": "RICE",
      "quantity": 150,
      "box_number": "San3",
      "plantation": "San Pablo",
      "unit_price": 0.48,
      "box_marking": "TDA",
      "total_price": 72.0
    },
    {
      "boxes": 1,
      "length": "60",
      "variety": "RICE FLOWER(P)VICTORIA PINK",
      "category": "RICE",
      "quantity": 150,
      "box_number": "San4",
      "plantation": "San Pablo",
      "unit_price": 0.48,
      "box_marking": "TDA",
      "total_price": 72.0
    },
    {
      "boxes": 0.125,
      "length": "70",
      "variety": "TRACHELLIUM(J) JADE",
      "category": "TRACHELLIUM(J)",
      "quantity": 100,
      "box_number": "San5",
      "plantation": "Santa Martha",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 38.0
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "TRACHELIUM(J) JADE",
      "category": "TRACHELIUM(J)",
      "quantity": 100,
      "box_number": "San6",
      "plantation": "Santa Martha",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 38.0
    },
    {
      "boxes": 0.5,
      "length": null,
      "variety": "GYP SO.OVER TIME RAINBOW LIGHT",
      "category": "GYP",
      "quantity": 500,
      "box_number": "San7",
      "plantation": "Santa Martha",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 190.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": "GYP SOPHILA(O) DYED OVERTIME",
      "category": "GYP",
      "quantity": 500,
      "box_number": "San8",
      "plantation": "Santa Martha",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 190.0
    },
    {
      "boxes": 1.5,
      "length": null,
      "variety": "GYP SO.XLENCE WHITE",
      "category": "GYP",
      "quantity": 1500,
      "box_number": "San9",
      "plantation": "Santa Martha",
      "unit_price": 0.31,
      "box_marking": "TDA",
      "total_price": 465.0
    },
    {
      "boxes": 0.125,
      "length": null,
      "variety": "GYP SOPHILA(X) XLENCE",
      "category": "GYP",
      "quantity": 100,
      "box_number": "San10",
      "plantation": "Santa Martha",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 38.0
    },
    {
      "boxes": 1,
      "length": "70",
      "variety": "TRACHELLIUM(J) JADE",
      "category": "TRACHELLIUM(J)",
      "quantity": 500,
      "box_number": "San11",
      "plantation": "Santa Martha",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 190.0
    },
    {
      "boxes": 0.5,
      "length": null,
      "variety": "GYP SO.OVER TIME RAINBOW LIGHT",
      "category": "GYP",
      "quantity": 100,
      "box_number": "San12",
      "plantation": "Santa Martha",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 38.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": "GYP SOPHILA(O) DYED OVERTIME",
      "category": "GYP",
      "quantity": 500,
      "box_number": "San13",
      "plantation": "Santa Martha",
      "unit_price": 0.38,
      "box_marking": "TDA",
      "total_price": 190.0
    },
    {
      "boxes": 1.5,
      "length": null,
      "variety": "GYP SO.XLENCE WHITE",
      "category": "GYP",
      "quantity": 1500,
      "box_number": "San14",
      "plantation": "Santa Martha",
      "unit_price": 0.31,
      "box_marking": "TDA",
      "total_price": 465.0
    },
    {
      "boxes": 1,
      "length": null,
      "variety": "GYP SOPHILA(X) XLENCE",
      "category": "GYP",
      "quantity": 1500,
      "box_number": "San15",
      "plantation": "Santa Martha",
      "unit_price": 0.31,
      "box_marking": "TDA",
      "total_price": 465.0
    }
  ],
  "country": null,
  "summary": {
    "total_boxes": 32.5,
    "total_stems": 8140,
    "total_amount": 2842.8
  },
  "supplier": null,
  "invoice_date": null,
  "invoice_number": null
}
Результат (Pass 2)

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