- recognition-result.schema.json 2.0: line_code nullable + line_status, row_index, ref, parent_ref, line_code_text, needs_review у значения и строки, values[].text, <поле>_text/_confidence шапки, needs_review_fields, period_kind, label_confidence, document.status/warnings у всех документов (включая ОСВ), form_variant, checks обязателен у ББ/ОФР со строками, нарушения с codes, без duplicate_line_codes, service.statements_version; changelog — в $comment - recognition-result-message.schema.json 2.0: metrics.warnings — структуры - примеры переведены на 2.0 (Excel: detail-строка и нарушение пустой цели; OCR: догадка, покрытая §7, строка unreadable, разлепленная строка) - 03-architecture: общий код arm-statements, контракт v2.0 - спека: у разлепленных строк line_code_text и text — k-е части Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BJKMLHdxMwSUeYcdkwqX4W
95 lines
2.6 KiB
JSON
95 lines
2.6 KiB
JSON
{
|
||
"schema_version": "2.0",
|
||
"job_id": "3f2a9c1e-7b4d-4e0a-9d51-2c8e6a1b0f01",
|
||
"file_id": "a1c4e7d2-5b36-4f89-8e12-9d0c3b7a4e02",
|
||
"service": {
|
||
"name": "tabular-parser",
|
||
"version": "0.1.0"
|
||
},
|
||
"status": "done",
|
||
"documents": [
|
||
{
|
||
"document_type": "OSV",
|
||
"locator": "sheet:Лист_1",
|
||
"header": {
|
||
"organization_name": "ООО Ромашка",
|
||
"organization_inn": "7700000000",
|
||
"account_code_raw": "60",
|
||
"period_text": "1 квартал 2025 г.",
|
||
"period_year": 2025,
|
||
"period_quarter": "Q1",
|
||
"is_cumulative": false,
|
||
"period_start": "2025-01-01",
|
||
"period_end": "2025-03-31",
|
||
"is_from_year_start": true,
|
||
"data_type": "BU",
|
||
"currency": "RUB",
|
||
"header_variant": 1
|
||
},
|
||
"group_schema": [
|
||
{
|
||
"type": "COUNTERPARTY",
|
||
"name": "Контрагенты",
|
||
"has_inn": true
|
||
}
|
||
],
|
||
"columns": {
|
||
"opening_debit": "C",
|
||
"opening_credit": "D",
|
||
"turnover_debit": "E",
|
||
"turnover_credit": "F",
|
||
"closing_debit": "G",
|
||
"closing_credit": "H"
|
||
},
|
||
"rows": [
|
||
{
|
||
"row_number": 1,
|
||
"level": 0,
|
||
"parent_row_number": null,
|
||
"row_value": "60",
|
||
"group_type": "ACCOUNT",
|
||
"group_name": null,
|
||
"account_code_raw": "60",
|
||
"counterparty_name": null,
|
||
"counterparty_inn": null,
|
||
"data_type": "BU",
|
||
"opening_debit": "0.00",
|
||
"opening_credit": "1000.00",
|
||
"turnover_debit": "500.00",
|
||
"turnover_credit": "200.50",
|
||
"closing_debit": "0.00",
|
||
"closing_credit": "700.50"
|
||
},
|
||
{
|
||
"row_number": 2,
|
||
"level": 1,
|
||
"parent_row_number": 1,
|
||
"row_value": "ООО Лютик, ИНН 7711111111",
|
||
"group_type": "COUNTERPARTY",
|
||
"group_name": "Контрагенты",
|
||
"account_code_raw": "60",
|
||
"counterparty_name": "ООО Лютик",
|
||
"counterparty_inn": "7711111111",
|
||
"data_type": "BU",
|
||
"opening_debit": "0.00",
|
||
"opening_credit": "1000.00",
|
||
"turnover_debit": "500.00",
|
||
"turnover_credit": "200.50",
|
||
"closing_debit": "0.00",
|
||
"closing_credit": "700.50",
|
||
"extra": {
|
||
"КПП": "352801001"
|
||
}
|
||
}
|
||
],
|
||
"checks": {
|
||
"total_row_matches_root": true,
|
||
"balance_identity_violations": [],
|
||
"parent_sum_violations": []
|
||
},
|
||
"status": "done",
|
||
"warnings": []
|
||
}
|
||
]
|
||
}
|