Intent: GUAISA / SUNRITE FARMS

v4 2026-05-08 18:27:45.957320+00:00 by: processing_log
Поставщик
Rules для трансформации (OCR → 1С)
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Доступные справочники для shortcode
varities {{ref:varities}}
test {{ref:test}}
Последний сырой OCR (из песочницы)
{
  "awb": "145-9981 7664/PC603013705",
  "items": [
    {
      "boxes": 1,
      "length": "50",
      "variety": "BICOLOR PINK ESPERANCE",
      "category": "ROSE",
      "quantity": 500,
      "box_number": "BOX1",
      "plantation": "MECHTA OOO.-RU",
      "unit_price": 0.32,
      "box_marking": "",
      "total_price": 160.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "HOT PINK GOTCHA",
      "category": "ROSE",
      "quantity": 400,
      "box_number": "BOX2",
      "plantation": "MECHTA OOO.-RU",
      "unit_price": 0.35,
      "box_marking": "BUKETOPT",
      "total_price": 140.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "CREAM VENDELA",
      "category": "ROSE",
      "quantity": 1000,
      "box_number": "BOX3",
      "plantation": "MECHTA OOO.-RU",
      "unit_price": 0.2,
      "box_marking": "",
      "total_price": 200.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "CREAM VENDELA",
      "category": "ROSE",
      "quantity": 1100,
      "box_number": "BOX4",
      "plantation": "MECHTA OOO.-RU",
      "unit_price": 0.2,
      "box_marking": "",
      "total_price": 220.0
    }
  ],
  "country": "Republic of Kazakhstan",
  "summary": {
    "total_boxes": 7,
    "total_stems": 3500,
    "total_amount": 830.0
  },
  "supplier": "MECHTA OOO.-RU",
  "invoice_date": "03/19/2026",
  "invoice_number": "0262517",
  "processing_report": {
    "notes": "Тип инвойса: плоский. Физические коробки: 4 обнаружено в item-ах (предполагая 1 коробка на строку), 7 указано в сводке. Имелись проблемы с извлечением, т.к. данные товаров находились в `header_text`, а не в `table`, и многие поля не соответствовали ожидаемым колонкам из правил. Раскрытие мультибокса не применялось, т.к. не было значений 'Boxes' для позиций.",
    "status": "warning",
    "sum_boxes": 4,
    "sum_stems": 3000,
    "sum_amount": 720.0,
    "items_count": 4,
    "discrepancies": [
      "invoice_number: Rule pattern 'PACKING' not found; used 'INVOICE' from col 0 of table row for extraction.",
      "invoice_date: Rule pattern 'Date Amount PO # Terms' not found in col 0; used 'Date' from col 1 of table row for extraction.",
      "supplier: Rule asked for col 1 of next row; col 1 was empty, used col 0 for extraction.",
      "country: Rule asked for col 1 of row following address; col 1 was empty, used value from col 0 for extraction.",
      "awb: Rule using 'Carrier' from table resulted in carrier name; actual AWB extracted from header_text.",
      "items: Item data not found in 'table' section as expected by rules; extracted from 'header_text'.",
      "summary.total_amount: Rule asked for col 2; col 2 was empty, used value from col 1 for extraction.",
      "Validation: sum(items.quantity) (3000) != summary.total_stems (3500).",
      "Validation: sum(items.total_price) (720.0) != summary.total_amount (830.0).",
      "Validation: sum(items.boxes) (4) != summary.total_boxes (7)."
    ],
    "expected_boxes": 7,
    "expected_stems": 3500,
    "expected_amount": 830.0
  }
}
Документы поставщика
Файл Источник Статус Дата Действия
0263248.PDF
email done 02.04 20:17
Файл XLSX
0263249.PDF
email done 02.04 20:15
Файл XLSX
0262942.PDF
email error
DashScope OCR metadata API error 400: {"code":"Arrearage","message":"Access deni
26.03 20:43
Файл
0262944.PDF
email error
DashScope OCR API error 400: {"code":"Arrearage","message":"Access denied, pleas
26.03 20:43
Файл
0262516.PDF
email ocr_only 19.03 20:16
Файл
0262517.PDF
email done 19.03 20:15
Файл XLSX
0262149.PDF
email done 12.03 20:06
Файл XLSX
0262150.PDF
email done 12.03 20:05
Файл XLSX
0261836.PDF
email done 05.03 20:08
Файл XLSX
0261837.PDF
email done 05.03 20:06
Файл XLSX
0261177.PDF
email classified 23.02 11:12
Файл
0261178.PDF
email classified 23.02 11:12
Файл
0261070.PDF
email done 23.02 10:52
Файл XLSX
0261072.PDF
email classified 23.02 10:52
Файл
0261177.PDF
email done 19.02 20:16
XLSX
0261178.PDF
email done 19.02 20:16
XLSX
0261070.PDF
email done 18.02 20:06
XLSX
0261072.PDF
email done 18.02 20:06
XLSX
0260361.PDF
upload done 18.02 09:17
Файл XLSX