Files
brewman/brewman/brewman/schemas/sale.py
T
tanshu fc3cd00662 Feature: Added sale voucher to check sale import.
Chore: Frontend moved from Moment to date-fns and from dd-MMM-yyyy to ISO Date format.
2026-09-15 11:29:27 +00:00

19 lines
426 B
Python

import uuid
from datetime import date
from decimal import Decimal
from pydantic import BaseModel, ConfigDict
from . import to_camel
from .voucher import Voucher
class SaleDayResponse(BaseModel):
date_: date
selected_voucher_id: uuid.UUID | None = None
total_amount: Decimal
vouchers: list[Voucher]
model_config = ConfigDict(str_strip_whitespace=True, alias_generator=to_camel, populate_by_name=True)