1
{
2
- "purpose": "OD-08 / D1 / الف7: one-by-one record of every golden-test difference (source-aggregated-by-note vs official statement) with cause and evidence. An uncaused difference is a bug until proven otherwise. Numbers are never 'corrected' here — only an Adjustment (C4) or a discrepancy record is permitted (booklet §6.7/§12.60, D1/D2).",
3
- "status": "POPULATED for 1404 golden (source-vs-official, ADR-021). 28 comparisons, 9 matched, 19 recorded. Resolution of causes tracked in C1/C3; build-vs-official comparison added when the engine builds all four statements (C3).",
4
- "scale_note": "Official statements are in million rial; source is exact rial. Comparison rounds source rial to million (half-up, ADR-012/021). our_amount/official_amount are exact rial strings; *_million fields are the comparison basis.",
5
- "record_schema": {
6
- "row": "statement + note identifier",
7
- "statement": "BS/IS/EQ/CF",
8
- "note": "note number as in official sheet",
9
- "our_amount": "source-aggregated exact rial (string)",
10
- "official_amount": "official million rial x 1e6 (string)",
11
- "our_million_rounded": "source rial rounded to million (half-up)",
12
- "official_million": "official million rial",
13
- "delta_million": "our_million_rounded - official_million",
14
- "cause": "root-cause explanation (Persian)",
15
- "cause_status": "caused | under_investigation (under_investigation = bug until proven, D1)",
16
- "evidence": "reproducible proof pointer",
17
- "year": "Jalali fiscal year"
18
- },
19
- "summary": {
20
- "total_comparisons": 28,
21
- "matched": 9,
22
- "recorded": 19,
23
- "by_statement": {
24
- "BS": {
25
- "total": 16,
26
- "matched": 9,
27
- "recorded": 7
28
- },
29
- "IS": {
30
- "total": 6,
31
- "matched": 0,
32
- "recorded": 6
33
- },
34
- "EQ": {
35
- "total": 0,
36
- "matched": 0,
37
- "recorded": 0
38
- },
39
- "CF": {
40
- "total": 6,
41
- "matched": 0,
42
- "recorded": 6
43
- }
44
- },
45
- "by_cause_status": {
46
- "caused": 16,
47
- "under_investigation": 3
2
+ "schema": "aram.discrepancies/v2",
3
+ "generated_at": "2026-12-04T11:26:02Z",
4
+ "basis": "build_statements output (persisted StatementLine rows) vs official workbook — NOT a separate source aggregation (R3).",
5
+ "year": 1404,
6
+ "source_file": "data/source_ledgers/source_1404.xlsx",
7
+ "source_sha256": "5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044",
8
+ "official_file": "data/official_statements/financial_1404.xlsx",
9
+ "official_sha256": "f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3",
10
+ "unit": "million rial (official presentation); source is exact rial, half-up rounded once (ADR-012)",
11
+ "counts": {
12
+ "BS": {
13
+ "matched": 16,
14
+ "total": 16
15
+ },
16
+ "IS": {
17
+ "matched": 1,
18
+ "total": 6
19
+ },
20
+ "CF": {
21
+ "matched": 0,
22
+ "total": 6
23
}
24
},
50
- "coverage_notes": [
51
- "EQ: read_official_notes extracted 0 note rows from the official «حقوق مالكانه» sheet for 1404 (layout differs); EQ official parsing is a C3 coverage gap, not a zero discrepancy.",
52
- "This golden test is source-aggregated-vs-official (ADR-021). A build-vs-official comparison (engine output vs official) is added in C3 once BS/IS/EQ/CF are all built.",
53
- "Approval of the real 1404 year is currently BLOCKED by controls C-01/C-03/C-04 (UAT). Separately, ADR-013 records 6 residual C-01 rows in the 252,898-row source (252,892 satisfy debit-positive); these are source-data quirks to reconcile, not statement discrepancies, and are tracked under C-01/ADR-013."
54
- ],
55
- "records": [
56
- {
57
- "row": "BS note 16",
58
- "statement": "BS",
59
- "note": "16",
60
- "our_amount": "-20000000000000",
61
- "official_amount": "20000000000000",
62
- "our_million_rounded": -20000000,
63
- "official_million": 20000000,
64
- "delta_million": -40000000,
65
- "cause": "قرارداد علامت: یادداشت ماهیت بستانکار (بدهی/حقوق مالکانه) دارد؛ جمع منبع با قرارداد بدهکار-مثبت (ADR-013) منفی است ولی صورت رسمی قدرمطلقِ مثبت نشان میدهد. قدرمطلق دقیقاً برابر است (|ما| = رسمی)؛ اختلاف فقط علامتِ ارائه است نه مقدار. اصلاح: سیاست علامتِ ارائه بهتفکیک بخش صورت در C3.",
66
- "cause_status": "caused",
67
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 16 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «وضعيت مالي». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
68
- "year": 1404
69
- },
25
+ "acceptance": {
26
+ "BS_16_of_16": true,
27
+ "IS_6_of_6": false,
28
+ "IS_blocker": "note 20-3 has no source rows at all; notes 8/9 need an explicit reclassification decision; notes 6/7 differ by 1-2 million rial of official presentation rounding"
29
+ },
30
+ "equity": {
31
+ "official_figures_parsed": 24,
32
+ "note": "EQ is a components x movements matrix, now parsed (was 0 under the old note-list parser). No built EQ statement yet."
33
+ },
34
+ "discrepancies": [
35
{
71
- "row": "BS note 18",
72
- "statement": "BS",
73
- "note": "18",
74
- "our_amount": "-1613615852",
75
- "official_amount": "1614000000",
76
- "our_million_rounded": -1614,
77
- "official_million": 1614,
78
- "delta_million": -3228,
79
- "cause": "قرارداد علامت: یادداشت ماهیت بستانکار (بدهی/حقوق مالکانه) دارد؛ جمع منبع با قرارداد بدهکار-مثبت (ADR-013) منفی است ولی صورت رسمی قدرمطلقِ مثبت نشان میدهد. قدرمطلق دقیقاً برابر است (|ما| = رسمی)؛ اختلاف فقط علامتِ ارائه است نه مقدار. اصلاح: سیاست علامتِ ارائه بهتفکیک بخش صورت در C3.",
80
- "cause_status": "caused",
81
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 18 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «وضعيت مالي». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
82
- "year": 1404
36
+ "statement": "CF",
37
+ "note": "10",
38
+ "built_million": null,
39
+ "official_million": 0,
40
+ "delta_million": null,
41
+ "status": "missing_in_build",
42
+ "cause": "not_derived",
43
+ "explanation": "CF is not rendered by build_statements (RENDERED_STATEMENTS = BS, IS). The official CF layout is now parsed, including the bare account code 46268 (FX, 12,556) which is an account, not a note.",
44
+ "official_cell": "جريان هاي نقدي!R12C5",
45
+ "accounts": [],
46
+ "accounts_total": 0
47
},
48
{
85
- "row": "BS note 19-1",
86
- "statement": "BS",
87
- "note": "19-1",
88
- "our_amount": "-145241976038754",
89
- "official_amount": "145241976000000",
90
- "our_million_rounded": -145241976,
91
- "official_million": 145241976,
92
- "delta_million": -290483952,
93
- "cause": "قرارداد علامت: یادداشت ماهیت بستانکار (بدهی/حقوق مالکانه) دارد؛ جمع منبع با قرارداد بدهکار-مثبت (ADR-013) منفی است ولی صورت رسمی قدرمطلقِ مثبت نشان میدهد. قدرمطلق دقیقاً برابر است (|ما| = رسمی)؛ اختلاف فقط علامتِ ارائه است نه مقدار. اصلاح: سیاست علامتِ ارائه بهتفکیک بخش صورت در C3.",
94
- "cause_status": "caused",
95
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 19-1 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «وضعيت مالي». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
96
- "year": 1404
49
+ "statement": "CF",
50
+ "note": "15",
51
+ "built_million": null,
52
+ "official_million": 3368287,
53
+ "delta_million": null,
54
+ "status": "missing_in_build",
55
+ "cause": "not_derived",
56
+ "explanation": "CF is not rendered by build_statements (RENDERED_STATEMENTS = BS, IS). The official CF layout is now parsed, including the bare account code 46268 (FX, 12,556) which is an account, not a note.",
57
+ "official_cell": "جريان هاي نقدي!R21C5",
58
+ "accounts": [],
59
+ "accounts_total": 0
60
},
61
{
99
- "row": "BS note 19-2",
100
- "statement": "BS",
101
- "note": "19-2",
102
- "our_amount": "-630414220070002",
103
- "official_amount": "630414220000000",
104
- "our_million_rounded": -630414220,
105
- "official_million": 630414220,
106
- "delta_million": -1260828440,
107
- "cause": "قرارداد علامت: یادداشت ماهیت بستانکار (بدهی/حقوق مالکانه) دارد؛ جمع منبع با قرارداد بدهکار-مثبت (ADR-013) منفی است ولی صورت رسمی قدرمطلقِ مثبت نشان میدهد. قدرمطلق دقیقاً برابر است (|ما| = رسمی)؛ اختلاف فقط علامتِ ارائه است نه مقدار. اصلاح: سیاست علامتِ ارائه بهتفکیک بخش صورت در C3.",
108
- "cause_status": "caused",
109
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 19-2 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «وضعيت مالي». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
110
- "year": 1404
62
+ "statement": "CF",
63
+ "note": "20-1",
64
+ "built_million": null,
65
+ "official_million": -149426,
66
+ "delta_million": null,
67
+ "status": "missing_in_build",
68
+ "cause": "not_derived",
69
+ "explanation": "CF is not rendered by build_statements (RENDERED_STATEMENTS = BS, IS). The official CF layout is now parsed, including the bare account code 46268 (FX, 12,556) which is an account, not a note.",
70
+ "official_cell": "جريان هاي نقدي!R8C5",
71
+ "accounts": [],
72
+ "accounts_total": 0
73
},
74
{
113
- "row": "BS note 20",
114
- "statement": "BS",
115
- "note": "20",
116
- "our_amount": "-133078120519345",
117
- "official_amount": "133078121000000",
118
- "our_million_rounded": -133078121,
119
- "official_million": 133078121,
120
- "delta_million": -266156242,
121
- "cause": "قرارداد علامت: یادداشت ماهیت بستانکار (بدهی/حقوق مالکانه) دارد؛ جمع منبع با قرارداد بدهکار-مثبت (ADR-013) منفی است ولی صورت رسمی قدرمطلقِ مثبت نشان میدهد. قدرمطلق دقیقاً برابر است (|ما| = رسمی)؛ اختلاف فقط علامتِ ارائه است نه مقدار. اصلاح: سیاست علامتِ ارائه بهتفکیک بخش صورت در C3.",
122
- "cause_status": "caused",
123
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 20 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «وضعيت مالي». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
124
- "year": 1404
75
+ "statement": "CF",
76
+ "note": "23",
77
+ "built_million": null,
78
+ "official_million": 99230533,
79
+ "delta_million": null,
80
+ "status": "missing_in_build",
81
+ "cause": "not_derived",
82
+ "explanation": "CF is not rendered by build_statements (RENDERED_STATEMENTS = BS, IS). The official CF layout is now parsed, including the bare account code 46268 (FX, 12,556) which is an account, not a note.",
83
+ "official_cell": "جريان هاي نقدي!R7C5",
84
+ "accounts": [],
85
+ "accounts_total": 0
86
},
87
{
127
- "row": "BS note 21",
128
- "statement": "BS",
129
- "note": "21",
130
- "our_amount": "-8833412166636",
131
- "official_amount": "8833412000000",
132
- "our_million_rounded": -8833412,
133
- "official_million": 8833412,
134
- "delta_million": -17666824,
135
- "cause": "قرارداد علامت: یادداشت ماهیت بستانکار (بدهی/حقوق مالکانه) دارد؛ جمع منبع با قرارداد بدهکار-مثبت (ADR-013) منفی است ولی صورت رسمی قدرمطلقِ مثبت نشان میدهد. قدرمطلق دقیقاً برابر است (|ما| = رسمی)؛ اختلاف فقط علامتِ ارائه است نه مقدار. اصلاح: سیاست علامتِ ارائه بهتفکیک بخش صورت در C3.",
136
- "cause_status": "caused",
137
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 21 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «وضعيت مالي». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
138
- "year": 1404
88
+ "statement": "CF",
89
+ "note": "24",
90
+ "built_million": null,
91
+ "official_million": 159859431,
92
+ "delta_million": null,
93
+ "status": "missing_in_build",
94
+ "cause": "not_derived",
95
+ "explanation": "CF is not rendered by build_statements (RENDERED_STATEMENTS = BS, IS). The official CF layout is now parsed, including the bare account code 46268 (FX, 12,556) which is an account, not a note.",
96
+ "official_cell": "جريان هاي نقدي!R24C5",
97
+ "accounts": [],
98
+ "accounts_total": 0
99
},
100
{
141
- "row": "BS note 22",
142
- "statement": "BS",
143
- "note": "22",
144
- "our_amount": "-61449318680",
145
- "official_amount": "61449000000",
146
- "our_million_rounded": -61449,
147
- "official_million": 61449,
148
- "delta_million": -122898,
149
- "cause": "قرارداد علامت: یادداشت ماهیت بستانکار (بدهی/حقوق مالکانه) دارد؛ جمع منبع با قرارداد بدهکار-مثبت (ADR-013) منفی است ولی صورت رسمی قدرمطلقِ مثبت نشان میدهد. قدرمطلق دقیقاً برابر است (|ما| = رسمی)؛ اختلاف فقط علامتِ ارائه است نه مقدار. اصلاح: سیاست علامتِ ارائه بهتفکیک بخش صورت در C3.",
150
- "cause_status": "caused",
151
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 22 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «وضعيت مالي». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
152
- "year": 1404
101
+ "statement": "CF",
102
+ "note": "46268",
103
+ "built_million": null,
104
+ "official_million": 12556,
105
+ "delta_million": null,
106
+ "status": "missing_in_build",
107
+ "cause": "not_derived",
108
+ "explanation": "CF is not rendered by build_statements (RENDERED_STATEMENTS = BS, IS). The official CF layout is now parsed, including the bare account code 46268 (FX, 12,556) which is an account, not a note.",
109
+ "official_cell": "جريان هاي نقدي!R22C5",
110
+ "accounts": [],
111
+ "accounts_total": 0
112
},
113
{
155
- "row": "IS note 20-3",
114
"statement": "IS",
115
"note": "20-3",
158
- "our_amount": "0",
159
- "official_amount": "-4697329000000",
160
- "our_million_rounded": 0,
116
+ "built_million": null,
117
"official_million": -4697329,
162
- "delta_million": 4697329,
163
- "cause": "یادداشت در ستون statement_balance منبع حضور ندارد (src_rial=0)؛ تعریف/نگاشت یادداشت یا استخراج آن هنوز انجام نشده (C2/C3)؛ مقدار رسمی غیرصفر است.",
164
- "cause_status": "caused",
165
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 20-3 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «سودوزيان». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
166
- "year": 1404
118
+ "delta_million": null,
119
+ "status": "missing_in_build",
120
+ "cause": "absent_from_source",
121
+ "explanation": "Official tax expense -4,697,329 (سودوزيان R18C6; sheet '30' R9C5) has NO corresponding row in source_1404.xlsx: no account carries that value and no row is labelled note 20-3. Cannot be produced from this source.",
122
+ "official_cell": "سودوزيان!R18C6",
123
+ "accounts": [],
124
+ "accounts_total": 0
125
},
126
{
169
- "row": "IS note 5",
170
- "statement": "IS",
171
- "note": "5",
172
- "our_amount": "-243097685650599",
173
- "official_amount": "243097686000000",
174
- "our_million_rounded": -243097686,
175
- "official_million": 243097686,
176
- "delta_million": -486195372,
177
- "cause": "قرارداد علامت: یادداشت ماهیت بستانکار (بدهی/حقوق مالکانه) دارد؛ جمع منبع با قرارداد بدهکار-مثبت (ADR-013) منفی است ولی صورت رسمی قدرمطلقِ مثبت نشان میدهد. قدرمطلق دقیقاً برابر است (|ما| = رسمی)؛ اختلاف فقط علامتِ ارائه است نه مقدار. اصلاح: سیاست علامتِ ارائه بهتفکیک بخش صورت در C3.",
178
- "cause_status": "caused",
179
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 5 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «سودوزيان». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
180
- "year": 1404
181
- },
182
- {
183
- "row": "IS note 6",
127
"statement": "IS",
128
"note": "6",
186
- "our_amount": "308711587703360",
187
- "official_amount": "-245897444000000",
188
- "our_million_rounded": 308711588,
129
+ "built_million": -245897446,
130
"official_million": -245897444,
190
- "delta_million": 554609032,
191
- "cause": "اختلاف مقداری واقعی (قدرمطلقها برابر نیستند)؛ علت دقیق هنوز تعیین نشده — احتمال تفاوت دامنهٔ حسابهای تجمیعشده در یادداشت نسبت به رسمی. طبق D1 تا اثبات خلاف باگ تلقی میشود؛ بررسی در C3.",
192
- "cause_status": "under_investigation",
193
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 6 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «سودوزيان». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
194
- "year": 1404
131
+ "delta_million": -2,
132
+ "status": "mismatched",
133
+ "cause": "presentation_rounding",
134
+ "explanation": "Official note 6 (sheet '12' R22C11) sums per-category rounded values; the source aggregated per account differs by 2 million rial. The source note column also lumps kol 71 (cost of revenue) and kol 81 (admin) into note 6 — split by general code as mapping data.",
135
+ "official_cell": "سودوزيان!R11C6",
136
+ "accounts": [
137
+ {
138
+ "code": "718269",
139
+ "name": "کنترل سربار انتقال محصولات",
140
+ "million": -239356527,
141
+ "rows": 13
142
+ },
143
+ {
144
+ "code": "718291",
145
+ "name": "بهای تمام شده خدمات ارائه شده",
146
+ "million": -6568962,
147
+ "rows": 29
148
+ },
149
+ {
150
+ "code": "568706",
151
+ "name": "کنترل هزینه های تعدیلات سنواتی کارکنان",
152
+ "million": 0,
153
+ "rows": 11
154
+ },
155
+ {
156
+ "code": "898553",
157
+ "name": "کمکهای اعطایی طبق قانون بودجه",
158
+ "million": 0,
159
+ "rows": 1
160
+ }
161
+ ],
162
+ "accounts_total": 4
163
},
164
{
197
- "row": "IS note 7",
165
"statement": "IS",
166
"note": "7",
200
- "our_amount": "0",
201
- "official_amount": "-62814143000000",
202
- "our_million_rounded": 0,
167
+ "built_million": -62814142,
168
"official_million": -62814143,
204
- "delta_million": 62814143,
205
- "cause": "یادداشت در ستون statement_balance منبع حضور ندارد (src_rial=0)؛ تعریف/نگاشت یادداشت یا استخراج آن هنوز انجام نشده (C2/C3)؛ مقدار رسمی غیرصفر است.",
206
- "cause_status": "caused",
207
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 7 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «سودوزيان». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
208
- "year": 1404
169
+ "delta_million": 1,
170
+ "status": "mismatched",
171
+ "cause": "presentation_rounding",
172
+ "explanation": "Official note 7 (sheet '13' R20C14) sums per-line rounded values; residual 1 million rial. Source has no note 7: its rows are labelled note 6 and must be remapped by general code 81.",
173
+ "official_cell": "سودوزيان!R13C6",
174
+ "accounts": [
175
+ {
176
+ "code": "818331",
177
+ "name": "مدیربرنامه ریزی",
178
+ "million": -62814142,
179
+ "rows": 37486
180
+ }
181
+ ],
182
+ "accounts_total": 1
183
},
184
{
211
- "row": "IS note 8",
185
"statement": "IS",
186
"note": "8",
214
- "our_amount": "-431960487352",
215
- "official_amount": "1543514000000",
216
- "our_million_rounded": -431960,
187
+ "built_million": 431960,
188
"official_million": 1543514,
218
- "delta_million": -1975474,
219
- "cause": "اختلاف مقداری واقعی (قدرمطلقها برابر نیستند)؛ علت دقیق هنوز تعیین نشده — احتمال تفاوت دامنهٔ حسابهای تجمیعشده در یادداشت نسبت به رسمی. طبق D1 تا اثبات خلاف باگ تلقی میشود؛ بررسی در C3.",
220
- "cause_status": "under_investigation",
221
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 8 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «سودوزيان». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
222
- "year": 1404
189
+ "delta_million": -1111554,
190
+ "status": "mismatched",
191
+ "cause": "source_note_misassignment",
192
+ "explanation": "Official note 8 = 1,543,514 (sheet '13' R36C14: 8-1 1,517,952 + 8-2 25,562). Source assigns only account 698521 (431,960) to note 8; 1,111,554 of other income sits in note 9. The official's own adjustment column (سودوزيان R14C12) records exactly +1,111,554.",
193
+ "official_cell": "سودوزيان!R14C6",
194
+ "accounts": [
195
+ {
196
+ "code": "698521",
197
+ "name": "درامدهای متفرقه غیرعملیاتی",
198
+ "million": 431960,
199
+ "rows": 14
200
+ }
201
+ ],
202
+ "accounts_total": 1
203
},
204
{
225
- "row": "IS note 9",
205
"statement": "IS",
206
"note": "9",
228
- "our_amount": "9489628188720",
229
- "official_amount": "-10601182000000",
230
- "our_million_rounded": 9489628,
207
+ "built_million": -9489628,
208
"official_million": -10601182,
232
- "delta_million": 20090810,
233
- "cause": "اختلاف مقداری واقعی (قدرمطلقها برابر نیستند)؛ علت دقیق هنوز تعیین نشده — احتمال تفاوت دامنهٔ حسابهای تجمیعشده در یادداشت نسبت به رسمی. طبق D1 تا اثبات خلاف باگ تلقی میشود؛ بررسی در C3.",
234
- "cause_status": "under_investigation",
235
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 9 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «سودوزيان». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
236
- "year": 1404
237
- },
238
- {
239
- "row": "CF note 10",
240
- "statement": "CF",
241
- "note": "10",
242
- "our_amount": "673740636579631",
243
- "official_amount": "0",
244
- "our_million_rounded": 673740637,
245
- "official_million": 0,
246
- "delta_million": 673740637,
247
- "cause": "بازاستفادهٔ شمارهٔ یادداشت میان صورتها: تجمیع منبع بر پایهٔ شمارهٔ یادداشت (نه صورت) است، بنابراین مقدار یادداشت BS به مقایسهٔ CF نشت میکند حالی ردیف رسمی CF آن شماره ۰/متفاوت است. اصلاح: تجمیع note scoped به صورت در C3/C4.",
248
- "cause_status": "caused",
249
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 10 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «جريان هاي نقدي». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
250
- "year": 1404
251
- },
252
- {
253
- "row": "CF note 15",
254
- "statement": "CF",
255
- "note": "15",
256
- "our_amount": "19951136477703",
257
- "official_amount": "3368287000000",
258
- "our_million_rounded": 19951136,
259
- "official_million": 3368287,
260
- "delta_million": 16582849,
261
- "cause": "بازاستفادهٔ شمارهٔ یادداشت میان صورتها: تجمیع منبع بر پایهٔ شمارهٔ یادداشت (نه صورت) است، بنابراین مقدار یادداشت BS به مقایسهٔ CF نشت میکند حالی ردیف رسمی CF آن شماره ۰/متفاوت است. اصلاح: تجمیع note scoped به صورت در C3/C4.",
262
- "cause_status": "caused",
263
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 15 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «جريان هاي نقدي». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
264
- "year": 1404
265
- },
266
- {
267
- "row": "CF note 20-1",
268
- "statement": "CF",
269
- "note": "20-1",
270
- "our_amount": "0",
271
- "official_amount": "-149426000000",
272
- "our_million_rounded": 0,
273
- "official_million": -149426,
274
- "delta_million": 149426,
275
- "cause": "یادداشت در ستون statement_balance منبع حضور ندارد (src_rial=0)؛ تعریف/نگاشت یادداشت یا استخراج آن هنوز انجام نشده (C2/C3)؛ مقدار رسمی غیرصفر است.",
276
- "cause_status": "caused",
277
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 20-1 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «جريان هاي نقدي». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
278
- "year": 1404
279
- },
280
- {
281
- "row": "CF note 23",
282
- "statement": "CF",
283
- "note": "23",
284
- "our_amount": "0",
285
- "official_amount": "99230533000000",
286
- "our_million_rounded": 0,
287
- "official_million": 99230533,
288
- "delta_million": -99230533,
289
- "cause": "صورت جریان نقد هنوز توسط موتور محاسبه نشده (C3)؛ یادداشت CF نیازمند محاسبه از گردشها است نه صرفاً statement_balance منبع؛ مقدار رسمی غیرصفر ولی منبع ۰.",
290
- "cause_status": "caused",
291
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 23 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «جريان هاي نقدي». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
292
- "year": 1404
293
- },
294
- {
295
- "row": "CF note 24",
296
- "statement": "CF",
297
- "note": "24",
298
- "our_amount": "0",
299
- "official_amount": "159859431000000",
300
- "our_million_rounded": 0,
301
- "official_million": 159859431,
302
- "delta_million": -159859431,
303
- "cause": "صورت جریان نقد هنوز توسط موتور محاسبه نشده (C3)؛ یادداشت CF نیازمند محاسبه از گردشها است نه صرفاً statement_balance منبع؛ مقدار رسمی غیرصفر ولی منبع ۰.",
304
- "cause_status": "caused",
305
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 24 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «جريان هاي نقدي». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
306
- "year": 1404
307
- },
308
- {
309
- "row": "CF note 46268",
310
- "statement": "CF",
311
- "note": "46268",
312
- "our_amount": "0",
313
- "official_amount": "12556000000",
314
- "our_million_rounded": 0,
315
- "official_million": 12556,
316
- "delta_million": -12556,
317
- "cause": "ردیف رسمی CF با کلید '46268' ظاهراً کد حساب است نه شمارهٔ یادداشت؛ در تجمیع note منبع حضور ندارد. نیازمند طبقهبندی ردیفهای شیت رسمی در C3.",
318
- "cause_status": "caused",
319
- "evidence": "golden.compare_year (ADR-021): data/source_ledgers/source_1404.xlsx (SHA-256 5b4790dce6e9ea169d61c68751bc6fd5dc390012bc14473b0298ba5aac30d044) note 46268 statement_balance aggregation vs data/official_statements/financial_1404.xlsx (SHA-256 f764e3b6a2b6135997248bfad0b5a60edc9be9ed3dfef8631096c50713552bd3) sheet «جريان هاي نقدي». Reproduce: PYTHONPATH=backend/src python -c \"from aram_backend.services.golden import compare_year; [print(c) for c in compare_year('data/source_ledgers/source_1404.xlsx','data/official_statements/financial_1404.xlsx',1404) if not c.match]\"",
320
- "year": 1404
209
+ "delta_million": 1111554,
210
+ "status": "mismatched",
211
+ "cause": "source_note_misassignment",
212
+ "explanation": "Official note 9 = -10,601,182 (sheet '13' R51C14: 9-1 143,087 + 9-2 103,822 + 9-3 12,556 - 9-4 10,860,647). Source note 9 total is -9,489,628; the 1,111,554 difference is the same reclassification as note 8. Notes 8+9 combined match exactly (-9,057,668).",
213
+ "official_cell": "سودوزيان!R16C6",
214
+ "accounts": [
215
+ {
216
+ "code": "578490",
217
+ "name": "سودوزیان سال جاری",
218
+ "million": -10860647,
219
+ "rows": 2
220
+ },
221
+ {
222
+ "code": "718291",
223
+ "name": "بهای تمام شده خدمات ارائه شده",
224
+ "million": -6568962,
225
+ "rows": 29
226
+ },
227
+ {
228
+ "code": "618525",
229
+ "name": "فروش خدمات",
230
+ "million": 1263313,
231
+ "rows": 6
232
+ },
233
+ {
234
+ "code": "698773",
235
+ "name": "فروش کالا",
236
+ "million": 174913,
237
+ "rows": 7
238
+ },
239
+ {
240
+ "code": "898774",
241
+ "name": "قیمت تمام شده کالای فروش رفته",
242
+ "million": -51719,
243
+ "rows": 10
244
+ },
245
+ {
246
+ "code": "698259",
247
+ "name": "تعدیلات تسعیر نرخ ارز",
248
+ "million": 12556,
249
+ "rows": 4
250
+ }
251
+ ],
252
+ "accounts_total": 6
253
}
254
]
323
-}
\ No newline at end of file
255
+}