Intent: AGROCOEX

v13 2026-04-02 12:32:33.400920+00:00 by: processing_log
Поставщик
Rules для трансформации (OCR → 1С)
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Доступные справочники для shortcode
varities {{ref:varities}}
test {{ref:test}}
Последний сырой OCR (из песочницы)
{
  "awb": "145-99817701",
  "items": [
    {
      "boxes": 1,
      "length": "40",
      "variety": "ESPERANCE",
      "category": "ROSES",
      "quantity": 500,
      "box_number": "AGR-001",
      "plantation": null,
      "unit_price": 0.22,
      "box_marking": "LV HB 120(123*36*33.5)",
      "total_price": 110.0
    },
    {
      "boxes": 1,
      "length": "40",
      "variety": "FULL MONTY",
      "category": "ROSES",
      "quantity": 500,
      "box_number": "AGR-002",
      "plantation": null,
      "unit_price": 0.25,
      "box_marking": "LV HB 120(123*36*33.5)",
      "total_price": 125.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "NINA",
      "category": "ROSES",
      "quantity": 450,
      "box_number": "AGR-003",
      "plantation": null,
      "unit_price": 0.3,
      "box_marking": "LV HB 120(123*36*33.5)",
      "total_price": 135.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "PANDORA",
      "category": "ROSES",
      "quantity": 450,
      "box_number": "AGR-004",
      "plantation": null,
      "unit_price": 0.38,
      "box_marking": "LV HB 120(123*36*33.5)",
      "total_price": 171.0
    }
  ],
  "country": "Kyrgyz Republic",
  "summary": {
    "total_boxes": 4,
    "total_stems": 1900,
    "total_amount": 541.0
  },
  "supplier": "AGROCOEX S.A.",
  "invoice_date": "04/01/2026",
  "invoice_number": "5133852",
  "processing_report": {
    "notes": "Тип инвойса: Гибридный (Д). Итоговое количество физических коробок обнаружено: 4. Количество строк, раскрытых из мультибокса: 0. Количество обработанных MIXED BOX: 0.",
    "status": "ok",
    "sum_boxes": 4,
    "sum_stems": 1900,
    "sum_amount": 541.0,
    "items_count": 4,
    "discrepancies": [],
    "expected_boxes": 4,
    "expected_stems": 1900,
    "expected_amount": 541.0
  }
}
Документы поставщика
Файл Источник Статус Дата Действия
5133852.pdf
email done 01.04 19:34
Файл XLSX
5133161.pdf
email error
DashScope OCR API error 400: {"code":"Arrearage","message":"Access denied, pleas
25.03 20:20
Файл
5132283.pdf
email done 18.03 20:02
Файл XLSX
5129111.pdf
email done 23.02 10:39
Файл XLSX
5129192.pdf
email done 23.02 10:39
Файл XLSX
5129110.pdf
email done 23.02 10:39
Файл XLSX
5129105.pdf
email done 23.02 10:36
Файл XLSX