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: Column[uuid.UUID][source]
invoice_id: Column[uuid.UUID | None][source]
invoice: relationship[Invoice][source]
attendee_id: Column[uuid.UUID | None][source]
group: Column[str][source]
family: Column[str | None][source]
text: Column[str][source]
organizer: Column[str | None][source]
paid: Column[bool][source]
payment_date: Column[date | None][source]
tid: Column[str | None][source]
source: Column[str | None][source]
unit: Column[Decimal | None][source]
quantity: Column[Decimal | None][source]
amount() Decimal | None[source]
amount() ColumnElement[Decimal | None][source]
validate_source(key: str, value: str | None) str | None[source]