winterthur.daycare
Attributes
Classes
Built-in immutable sequence. |
|
Built-in immutable sequence. |
|
Functions
|
|
|
|
|
|
|
Module Contents
- class winterthur.daycare.Daycare(id: uuid.UUID, title: str, rate: decimal.Decimal | float | str, weeks: int)[source]
- class winterthur.daycare.Service[source]
Bases:
NamedTupleBuilt-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable’s items.
If the argument is a tuple, the return value is the same object.
- class winterthur.daycare.Result(title: str, amount: decimal.Decimal | None = None, note: str | None = None, operation: str | None = None, important: bool = False, currency: str | None = 'CHF', output_format: collections.abc.Callable[[decimal.Decimal], str] | None = None)[source]
- class winterthur.daycare.Block(id: str, title: str)[source]
-
- op(title: str, amount: decimal.Decimal | None = None, note: str | None = None, operation: str | None = None, important: bool = False, currency: str | None = 'CHF', output_format: collections.abc.Callable[[decimal.Decimal], str] | None = None, total_places: int = 2, amount_places: int = 2) decimal.Decimal[source]
- class winterthur.daycare.DirectoryDaycareAdapter(directory: onegov.org.models.ExtendedDirectory)[source]
- class winterthur.daycare.SubsidyResult[source]
Bases:
NamedTupleBuilt-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable’s items.
If the argument is a tuple, the return value is the same object.
- class winterthur.daycare.DaycareSubsidyCalculator(session: sqlalchemy.orm.Session)[source]
-
- calculate_precisely(daycare: Daycare, services: Services, income: decimal.Decimal, wealth: decimal.Decimal, rebate: bool) SubsidyResult[source]
Creates a detailed calculation of the subsidy paid by Winterthur.
The reslt is a list of tables with explanations.
- Parameters:
Note, due to the specific nature of the content here, which is probably not going to be translated, we use German. For consistency we want to limit this, but with Winterthur these kinds of things crop up as the wording is quite specific and adding translations would just make this a lot harder.
- class winterthur.daycare.DaycareServicesWidget[source]
-
- __call__(field: DaycareServicesField, **kwargs: Any) markupsafe.Markup[source]