feat(statements): парсер ББ и ОФР из Excel, контракт v1.2 (Срез 2b) #16

Merged
aep merged 43 commits from feat/14-slice-2b-statement-parser into main 2026-10-06 21:38:00 +03:00
Showing only changes of commit b9e6e319cf - Show all commits

View File

@ -38,9 +38,7 @@ def _rhs(amounts: dict[str, Decimal], rule: RelationRule, *, absolute: bool) ->
return total
def _holds(
amounts: dict[str, Decimal], rule: RelationRule, tolerance: Decimal
) -> tuple[bool, Decimal, Decimal]:
def _holds(amounts: dict[str, Decimal], rule: RelationRule, tolerance: Decimal) -> tuple[bool, Decimal, Decimal]:
"""Проверка соотношения в пределах допуска.
Вычисляет правую часть два раза: как записано и с abs() для членов в abs_terms.