Andrey Epifancev 8ee574e2cb golden/expected_osv_parse: снимки парсера для 66 ОСВ и синтетики
82 снимка (66 реальных ОСВ и 16 синтетических s01–s16) результата разбора tabular-parser (контракт 1.1) без
job_id, file_id, service.version, metrics.duration_ms. Снимки — регрессия, не оракул; ручная сверка «Итого» трёх
файлов — в отчёте задачи 12. Обновление: make golden-update в tabular-parser.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vJkmBGKKqMoEMzvsXG3y2
2026-10-05 15:28:34 +04:00

401 lines
12 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"schema_version": "1.1",
"service": {
"name": "tabular-parser"
},
"status": "done",
"metrics": {
"rows": 13,
"warnings": [
"sheet=ОСВ 60 hierarchy=outline",
"наименование организации в шапке не найдено",
"sheet=ОСВ 62 hierarchy=outline",
"наименование организации в шапке не найдено",
"валюта «» не распознана"
]
},
"documents": [
{
"document_type": "OSV",
"locator": "sheet:ОСВ 60",
"header": {
"organization_name": "",
"organization_inn": null,
"account_code_raw": "60",
"period_text": "2024",
"period_year": 2024,
"period_quarter": "Q4",
"is_cumulative": true,
"data_type": "BU",
"currency": "RUB",
"header_variant": 1
},
"group_schema": [
{
"type": "ACCOUNT",
"name": "Счет"
},
{
"type": "COUNTERPARTY",
"name": "Контрагенты",
"has_inn": true
}
],
"columns": {
"opening_debit": "G",
"opening_credit": "H",
"turnover_debit": "I",
"turnover_credit": "J",
"closing_debit": "K",
"closing_credit": "L",
"inn": "E"
},
"rows": [
{
"row_number": 13,
"level": 0,
"parent_row_number": null,
"row_value": "60",
"group_type": "ACCOUNT",
"group_name": "Счет",
"account_code_raw": "60",
"counterparty_name": null,
"counterparty_inn": null,
"data_type": "BU",
"opening_debit": "135000.00",
"opening_credit": "262500.60",
"turnover_debit": "311000.35",
"turnover_credit": "572000.35",
"closing_debit": "115000.00",
"closing_credit": "503500.60",
"extra": null
},
{
"row_number": 14,
"level": 1,
"parent_row_number": 13,
"row_value": "60.01",
"group_type": "ACCOUNT",
"group_name": "Счет",
"account_code_raw": "60.01",
"counterparty_name": null,
"counterparty_inn": null,
"data_type": "BU",
"opening_debit": "15000.00",
"opening_credit": "253000.50",
"turnover_debit": "273000.25",
"turnover_credit": "460000.00",
"closing_debit": "65000.00",
"closing_credit": "490000.25",
"extra": null
},
{
"row_number": 15,
"level": 2,
"parent_row_number": 14,
"row_value": "ООО Альфа",
"group_type": "COUNTERPARTY",
"group_name": "Контрагенты",
"account_code_raw": "60.01",
"counterparty_name": "ООО Альфа",
"counterparty_inn": "7701234567",
"data_type": "BU",
"opening_debit": null,
"opening_credit": "250000.50",
"turnover_debit": "180000.25",
"turnover_credit": "420000.00",
"closing_debit": null,
"closing_credit": "490000.25",
"extra": null
},
{
"row_number": 16,
"level": 2,
"parent_row_number": 14,
"row_value": "ООО Бета",
"group_type": "COUNTERPARTY",
"group_name": "Контрагенты",
"account_code_raw": "60.01",
"counterparty_name": "ООО Бета",
"counterparty_inn": "7707654321",
"data_type": "BU",
"opening_debit": "15000.00",
"opening_credit": null,
"turnover_debit": "90000.00",
"turnover_credit": "40000.00",
"closing_debit": "65000.00",
"closing_credit": null,
"extra": null
},
{
"row_number": 17,
"level": 2,
"parent_row_number": 14,
"row_value": "Иванов Иван",
"group_type": "COUNTERPARTY",
"group_name": "Контрагенты",
"account_code_raw": "60.01",
"counterparty_name": "Иванов Иван",
"counterparty_inn": null,
"data_type": "BU",
"opening_debit": null,
"opening_credit": "3000.00",
"turnover_debit": "3000.00",
"turnover_credit": null,
"closing_debit": null,
"closing_credit": null,
"extra": null
},
{
"row_number": 18,
"level": 1,
"parent_row_number": 13,
"row_value": "60.02",
"group_type": "ACCOUNT",
"group_name": "Счет",
"account_code_raw": "60.02",
"counterparty_name": null,
"counterparty_inn": null,
"data_type": "BU",
"opening_debit": "120000.00",
"opening_credit": "9500.10",
"turnover_debit": "38000.10",
"turnover_credit": "112000.35",
"closing_debit": "50000.00",
"closing_credit": "13500.35",
"extra": null
},
{
"row_number": 19,
"level": 2,
"parent_row_number": 18,
"row_value": "ООО Гамма",
"group_type": "COUNTERPARTY",
"group_name": "Контрагенты",
"account_code_raw": "60.02",
"counterparty_name": "ООО Гамма",
"counterparty_inn": "5001234567",
"data_type": "BU",
"opening_debit": "120000.00",
"opening_credit": null,
"turnover_debit": "30000.00",
"turnover_credit": "100000.00",
"closing_debit": "50000.00",
"closing_credit": null,
"extra": null
},
{
"row_number": 20,
"level": 2,
"parent_row_number": 18,
"row_value": "ООО Дельта",
"group_type": "COUNTERPARTY",
"group_name": "Контрагенты",
"account_code_raw": "60.02",
"counterparty_name": "ООО Дельта",
"counterparty_inn": "7812345678",
"data_type": "BU",
"opening_debit": null,
"opening_credit": "8000.10",
"turnover_debit": "8000.10",
"turnover_credit": "12000.35",
"closing_debit": null,
"closing_credit": "12000.35",
"extra": null
},
{
"row_number": 21,
"level": 2,
"parent_row_number": 18,
"row_value": "ИП Сидоров",
"group_type": "COUNTERPARTY",
"group_name": "Контрагенты",
"account_code_raw": "60.02",
"counterparty_name": "ИП Сидоров",
"counterparty_inn": "500100732259",
"data_type": "BU",
"opening_debit": null,
"opening_credit": "1500.00",
"turnover_debit": null,
"turnover_credit": null,
"closing_debit": null,
"closing_credit": "1500.00",
"extra": null
},
{
"row_number": 22,
"level": 0,
"parent_row_number": null,
"row_value": "Итого",
"group_type": "TOTAL",
"group_name": null,
"account_code_raw": null,
"counterparty_name": null,
"counterparty_inn": null,
"data_type": "BU",
"opening_debit": "135000.00",
"opening_credit": "262500.60",
"turnover_debit": "311000.35",
"turnover_credit": "572000.35",
"closing_debit": "115000.00",
"closing_credit": "503500.60",
"extra": null
}
],
"checks": {
"total_row_matches_root": true,
"balance_identity_violations": [],
"parent_sum_violations": []
}
},
{
"document_type": "OSV",
"locator": "sheet:ОСВ 62",
"header": {
"organization_name": "",
"organization_inn": null,
"account_code_raw": "62",
"period_text": "2024",
"period_year": 2024,
"period_quarter": "Q4",
"is_cumulative": true,
"data_type": "BU",
"currency": null,
"header_variant": 2
},
"group_schema": [
{
"type": "ACCOUNT",
"name": "Субконто"
},
{
"type": "OTHER",
"name": "Номенклатура"
},
{
"type": "OTHER",
"name": "Статьи затрат"
},
{
"type": "OTHER",
"name": "Нематериальные активы"
},
{
"type": "OTHER",
"name": "Валюта"
}
],
"columns": {
"opening_debit": "C",
"opening_credit": "D",
"turnover_debit": "E",
"turnover_credit": "F",
"closing_debit": "G",
"closing_credit": "H"
},
"rows": [
{
"row_number": 9,
"level": 0,
"parent_row_number": null,
"row_value": "62",
"group_type": "ACCOUNT",
"group_name": "Субконто",
"account_code_raw": "62",
"counterparty_name": null,
"counterparty_inn": null,
"data_type": "BU",
"opening_debit": "500000.00",
"opening_credit": "20000.00",
"turnover_debit": "395000.00",
"turnover_credit": "465000.00",
"closing_debit": "410000.00",
"closing_credit": null,
"extra": null
},
{
"row_number": 10,
"level": 1,
"parent_row_number": 9,
"row_value": "62.01",
"group_type": "ACCOUNT",
"group_name": "Субконто",
"account_code_raw": "62.01",
"counterparty_name": null,
"counterparty_inn": null,
"data_type": "BU",
"opening_debit": "500000.00",
"opening_credit": "20000.00",
"turnover_debit": "395000.00",
"turnover_credit": "465000.00",
"closing_debit": "410000.00",
"closing_credit": null,
"extra": null
},
{
"row_number": 11,
"level": 2,
"parent_row_number": 10,
"row_value": "ООО Покупатель-1",
"group_type": "OTHER",
"group_name": "Номенклатура",
"account_code_raw": "62.01",
"counterparty_name": null,
"counterparty_inn": null,
"data_type": "BU",
"opening_debit": "500000.00",
"opening_credit": null,
"turnover_debit": "320000.00",
"turnover_credit": "410000.00",
"closing_debit": "410000.00",
"closing_credit": null,
"extra": null
},
{
"row_number": 12,
"level": 2,
"parent_row_number": 10,
"row_value": "ООО Покупатель-2",
"group_type": "OTHER",
"group_name": "Номенклатура",
"account_code_raw": "62.01",
"counterparty_name": null,
"counterparty_inn": null,
"data_type": "BU",
"opening_debit": null,
"opening_credit": "20000.00",
"turnover_debit": "75000.00",
"turnover_credit": "55000.00",
"closing_debit": null,
"closing_credit": null,
"extra": null
},
{
"row_number": 13,
"level": 0,
"parent_row_number": null,
"row_value": "Итого",
"group_type": "TOTAL",
"group_name": null,
"account_code_raw": null,
"counterparty_name": null,
"counterparty_inn": null,
"data_type": "BU",
"opening_debit": "500000.00",
"opening_credit": "20000.00",
"turnover_debit": "395000.00",
"turnover_credit": "465000.00",
"closing_debit": "410000.00",
"closing_credit": null,
"extra": null
}
],
"checks": {
"total_row_matches_root": true,
"balance_identity_violations": [],
"parent_sum_violations": []
}
}
]
}