@davoodmehraban89 / Aram-1 / commits / 467e51f
Fork 0

fix(statements): normalize scoped company code consistently with source preview

davoodmehraban89 committed Oct 31, 2026 at 08:15 UTC 467e51fd53cd6b26e0e7bb6c46739f22bfe51ae2
1 file changed +2 -1
backend/src/aram_backend/equity_changes_candidate.py
+2 -1
@@ -250,7 +250,8 @@ def build_equity_changes_candidate(
250 row = dict(zip(SHEET_HEADERS["Accounts"], values))
251 if not any(value is not None and str(value).strip() for value in row.values()):
252 continue
253 - if (row.get("company_code") == review.company_code
253 + if (isinstance(row.get("company_code"), str)
254 + and row["company_code"].strip() == review.company_code
255 and type(row.get("fiscal_year")) is int
256 and row["fiscal_year"] == review.fiscal_year):
257 code = row.get("account_full_code")