Снимок s42: «Итого развернутое» перед «Итого» (tabular-parser#59)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Andrey Epifancev 2026-10-19 12:08:59 +04:00
parent a3ebbaa9d7
commit 63ad3795db
2 changed files with 11 additions and 25 deletions

View File

@ -3,16 +3,16 @@
"service": { "service": {
"name": "tabular-parser" "name": "tabular-parser"
}, },
"status": "needs_check", "status": "done",
"metrics": { "metrics": {
"rows": 5, "rows": 4,
"warnings": [] "warnings": []
}, },
"documents": [ "documents": [
{ {
"document_type": "OSV", "document_type": "OSV",
"locator": "sheet:Лист_1", "locator": "sheet:Лист_1",
"status": "needs_check", "status": "done",
"warnings": [ "warnings": [
{ {
"code": "OSV_HIERARCHY_BY_ACCOUNT_PATTERN", "code": "OSV_HIERARCHY_BY_ACCOUNT_PATTERN",
@ -28,16 +28,6 @@
"code": "OSV_HEADER", "code": "OSV_HEADER",
"severity": "info", "severity": "info",
"message": "валюта в шапке не найдена" "message": "валюта в шапке не найдена"
},
{
"code": "OSV_BALANCE_IDENTITY",
"severity": "info",
"message": "§1.4: сальдо на начало + обороты ≠ сальдо на конец (±0.01): строки 14"
},
{
"code": "OSV_PARENT_SUM",
"severity": "info",
"message": "§1.4: суммы родителя ≠ сумме детей (±0.01): строки 13"
} }
], ],
"header": { "header": {
@ -148,19 +138,19 @@
}, },
{ {
"row_number": 14, "row_number": 14,
"level": 2, "level": 0,
"parent_row_number": 13, "parent_row_number": null,
"row_value": "Итого развернутое", "row_value": "Итого развернутое",
"group_type": "OTHER", "group_type": "TOTAL",
"group_name": null, "group_name": null,
"account_code_raw": "76.Н.1", "account_code_raw": null,
"counterparty_name": null, "counterparty_name": null,
"counterparty_inn": null, "counterparty_inn": null,
"data_type": null, "data_type": null,
"opening_debit": "1000.00", "opening_debit": "1000.00",
"opening_credit": "300.00", "opening_credit": "300.00",
"turnover_debit": null, "turnover_debit": "5700.00",
"turnover_credit": null, "turnover_credit": "6600.00",
"closing_debit": null, "closing_debit": null,
"closing_credit": "200.00", "closing_credit": "200.00",
"extra": null "extra": null
@ -187,12 +177,8 @@
], ],
"checks": { "checks": {
"total_row_matches_root": true, "total_row_matches_root": true,
"balance_identity_violations": [ "balance_identity_violations": [],
14 "parent_sum_violations": []
],
"parent_sum_violations": [
13
]
} }
} }
] ]