feat(statements): парсер ББ и ОФР из Excel, контракт v1.2 (Срез 2b) #16
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user