Intent: Puliza

v2 2026-05-08 18:26:56.729298+00:00 by: processing_log
Поставщик
Rules для трансформации (OCR → 1С)
Правила трансформации OCR-данных в целевую схему (включая валидацию).
Доступные справочники для shortcode
varities {{ref:varities}}
test {{ref:test}}
Последний сырой OCR (из песочницы)
{
  "awb": null,
  "items": [
    {
      "boxes": 1,
      "length": "50",
      "variety": "MIXTO",
      "category": "Mixed",
      "quantity": 350,
      "box_number": "PUL1",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.25,
      "box_marking": "HB",
      "total_price": 87.5
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "EXPLORER",
      "category": null,
      "quantity": 200,
      "box_number": "PUL2",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.18,
      "box_marking": "HB",
      "total_price": 36.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "EXPLORER",
      "category": null,
      "quantity": 200,
      "box_number": "PUL3",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.18,
      "box_marking": "HB",
      "total_price": 36.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "EXPLORER",
      "category": null,
      "quantity": 133.33,
      "box_number": "PUL4",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.18,
      "box_marking": "HB",
      "total_price": 24.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "EXPLORER",
      "category": null,
      "quantity": 133.33,
      "box_number": "PUL5",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.18,
      "box_marking": "HB",
      "total_price": 24.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "EXPLORER",
      "category": null,
      "quantity": 133.34,
      "box_number": "PUL6",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.18,
      "box_marking": "HB",
      "total_price": 24.0
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MAGIC TIMES",
      "category": null,
      "quantity": 56.25,
      "box_number": "PUL7",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.21,
      "box_marking": "HB",
      "total_price": 11.81
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MAGIC TIMES",
      "category": null,
      "quantity": 56.25,
      "box_number": "PUL8",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.21,
      "box_marking": "HB",
      "total_price": 11.81
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MAGIC TIMES",
      "category": null,
      "quantity": 56.25,
      "box_number": "PUL9",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.21,
      "box_marking": "HB",
      "total_price": 11.81
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MAGIC TIMES",
      "category": null,
      "quantity": 56.25,
      "box_number": "PUL10",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.21,
      "box_marking": "HB",
      "total_price": 11.82
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "PALOMA",
      "category": null,
      "quantity": 43.75,
      "box_number": "PUL11",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.22,
      "box_marking": "HB",
      "total_price": 9.62
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "PALOMA",
      "category": null,
      "quantity": 43.75,
      "box_number": "PUL12",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.22,
      "box_marking": "HB",
      "total_price": 9.62
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "PALOMA",
      "category": null,
      "quantity": 43.75,
      "box_number": "PUL13",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.22,
      "box_marking": "HB",
      "total_price": 9.62
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "PALOMA",
      "category": null,
      "quantity": 43.75,
      "box_number": "PUL14",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.22,
      "box_marking": "HB",
      "total_price": 9.64
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MIXTO",
      "category": "Mixed",
      "quantity": 80,
      "box_number": "PUL15",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.18,
      "box_marking": "HB",
      "total_price": 14.4
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MIXTO",
      "category": "Mixed",
      "quantity": 80,
      "box_number": "PUL16",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.18,
      "box_marking": "HB",
      "total_price": 14.4
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MIXTO",
      "category": "Mixed",
      "quantity": 80,
      "box_number": "PUL17",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.18,
      "box_marking": "HB",
      "total_price": 14.4
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MIXTO",
      "category": "Mixed",
      "quantity": 80,
      "box_number": "PUL18",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.18,
      "box_marking": "HB",
      "total_price": 14.4
    },
    {
      "boxes": 1,
      "length": "50",
      "variety": "MIXTO",
      "category": "Mixed",
      "quantity": 80,
      "box_number": "PUL19",
      "plantation": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
      "unit_price": 0.18,
      "box_marking": "HB",
      "total_price": 14.4
    }
  ],
  "country": null,
  "summary": {
    "total_boxes": 2.5,
    "total_stems": 1950,
    "total_amount": 389.25
  },
  "supplier": "PULIZA FLOWERS CACOANGO CACOANGO JUAN MANUEL",
  "invoice_date": null,
  "invoice_number": "00036537",
  "processing_report": {
    "notes": "Invoice type: flat (B). 19 physical boxes detected after multi-box splitting. Multi-box splitting was applied for rows where '# BOX' > 1. The 'TOT.BOX' value in the OCR seems to represent something other than the count of physical boxes, possibly total number of bundles or a different unit. Minor discrepancies found in total stems and total amount due to rounding during split item calculations.",
    "status": "warning",
    "sum_boxes": 19,
    "sum_stems": 1950.05,
    "sum_amount": 389.26,
    "items_count": 19,
    "discrepancies": [
      "summary.total_boxes (2.5) does not match the sum of items' boxes (19). This may indicate that 'TOT.BOX' in the OCR does not refer to the count of physical boxes.",
      "summary.total_stems (1950) has a minor discrepancy with sum(items[].quantity) (1950.05).",
      "summary.total_amount (389.25) has a minor discrepancy with sum(items[].total_price) (389.26)."
    ],
    "expected_boxes": 2.5,
    "expected_stems": 1950,
    "expected_amount": 389.25
  }
}
Документы поставщика
Файл Источник Статус Дата Действия
FACT EXPORTACION TDA00036707 H 11_13_04.pdf
email ocr_only 04.04 16:14
Файл
FACT EXPORTACION TDA00036694 H 15_44_19.pdf
email error
Detected data table has no rows
02.04 20:53
Файл
FACT EXPORTACION TDA00036616 H 15_25_39.pdf
email error
DashScope OCR API error 400: {"code":"Arrearage","message":"Access denied, pleas
26.03 20:27
Файл
FACT EXPORTACION TDA00036537 H 15_21_16.pdf
email done 19.03 20:22
Файл XLSX
FACT EXPORTACION TDA00036462 H 14_57_56.pdf
email done 12.03 19:58
Файл XLSX
FACT EXPORTACION TDA00036391 H 15_49_57.pdf
email done 05.03 20:51
Файл XLSX
FACT EXPORTACION TDA00036307 H 18_01_35.pdf
email done 27.02 23:03
Файл XLSX
FACT EXPORTACION TDA00036307 H 16_45_28.pdf
email done 26.02 21:46
Файл XLSX
FACT EXPORTACION TDA00036192 H 16_50_18.pdf
email classify_error 23.02 11:15
Файл
FACT EXPORTACION TDA00036192 H 16_50_18.pdf
email done 19.02 21:51
XLSX