activity.models.invoice_item

Attributes

PRECISION

SCALE

Classes

InvoiceItem

An item in an invoice.

Module Contents

activity.models.invoice_item.PRECISION = 8[source]
activity.models.invoice_item.SCALE = 2[source]
class activity.models.invoice_item.InvoiceItem[source]

Bases: onegov.core.orm.Base, onegov.core.orm.mixins.TimestampMixin, onegov.pay.PayableManyTimes

An item in an invoice.

__tablename__ = 'invoice_items'[source]
id: sqlalchemy.Column[uuid.UUID][source]
invoice_id: sqlalchemy.Column[uuid.UUID | None][source]
invoice: sqlalchemy.orm.relationship[onegov.activity.models.Invoice][source]
attendee_id: sqlalchemy.Column[uuid.UUID | None][source]
group: sqlalchemy.Column[str][source]
family: sqlalchemy.Column[str | None][source]
text: sqlalchemy.Column[str][source]
organizer: sqlalchemy.Column[str | None][source]
paid: sqlalchemy.Column[bool][source]
payment_date: sqlalchemy.Column[datetime.date | None][source]
tid: sqlalchemy.Column[str | None][source]
source: sqlalchemy.Column[str | None][source]
unit: sqlalchemy.Column[decimal.Decimal | None][source]
quantity: sqlalchemy.Column[decimal.Decimal | None][source]
amount: sqlalchemy.Column[decimal.Decimal][source]
validate_source(key: str, value: str | None) str | None[source]