diff --git a/brewman/schemas/voucher.py b/brewman/schemas/voucher.py index 173a2185..a71dcb7b 100644 --- a/brewman/schemas/voucher.py +++ b/brewman/schemas/voucher.py @@ -164,12 +164,12 @@ class Voucher(VoucherIn): return value return datetime.strptime(value, "%d-%b-%Y").date() - @validator("journals") - def validate_enough_journals(cls, value: List[Journal]): - if 0 < len(value) < 2: - raise ValueError("Not enough journals") - return value - + # @validator("journals") + # def validate_enough_journals(cls, value: List[Journal]): + # if 0 < len(value) < 2: + # raise ValueError("Not enough journals") + # return value + # @validator("journals") def validate_signed_amount(cls, value: List[Journal]): if sum(x.debit * x.amount for x in value) != 0: