Intent: FERNANDO RODRIGUEZ / ALCOFLOWER - BOTANIC

v7 2026-05-08 18:21:57.498742+00:00 by: processing_log
Поставщик
Rules для трансформации (OCR → 1С)
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Доступные справочники для shortcode
varities {{ref:varities}}
test {{ref:test}}
Последний сырой OCR (из песочницы)
{
  "awb": "369-9829-5680",
  "items": [
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA1",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA2",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 3,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA3",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA4",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA5",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA6",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA7",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA8",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA9",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA10",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA11",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA12",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA13",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA14",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA15",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA16",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA17",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    },
    {
      "boxes": 1,
      "length": "50CM",
      "variety": "FRUTTETO",
      "category": "ROSES",
      "quantity": 125,
      "box_number": "EFA18",
      "plantation": "EFANDINA",
      "unit_price": 0.4,
      "box_marking": "QB",
      "total_price": 50.0
    }
  ],
  "country": "Ecuador",
  "summary": {
    "total_boxes": 20,
    "total_stems": 5975,
    "total_amount": 4071.25
  },
  "supplier": "BOTANIC FARMS",
  "invoice_date": "jueves, 15 de enero de 2026",
  "invoice_number": "001-002-00002328",
  "processing_report": {
    "notes": "Тип инвойса: плоский. Обнаружена 1 физическая позиция в OCR, но согласно правилам ожидается 18 позиций и 20 коробок. Значения item (кроме количества коробок) для 18 позиций были синтезированы из единственной строки OCR из-за неполных данных. Раскрытие мультибокса не применялось, но список коробок был приведён в правилах.",
    "status": "warning",
    "sum_boxes": 20,
    "sum_stems": 2250,
    "sum_amount": 900.0,
    "items_count": 18,
    "discrepancies": [
      "Provided OCR data only contains 1 item row, but rules specify 18 items. Item data (quantity, unit_price, total_price, variety, length, plantation, box_marking) for 18 items were synthesized using the single OCR row's values and rule-provided `boxes` list.",
      "Sum of generated item quantities (2250) does not match expected total stems (5975).",
      "Sum of generated item total prices (900.00) does not match expected total amount (4071.25)."
    ],
    "expected_boxes": 20,
    "expected_stems": 5975,
    "expected_amount": 4071.25
  }
}
Документы поставщика
Файл Источник Статус Дата Действия
FACTURA 2328 15-01-2026.pdf
email done 16.03 02:46
Файл XLSX