activity.models.invoice_item ============================ .. py:module:: activity.models.invoice_item Attributes ---------- .. autoapisummary:: activity.models.invoice_item.PRECISION activity.models.invoice_item.SCALE Classes ------- .. autoapisummary:: activity.models.invoice_item.InvoiceItem Module Contents --------------- .. py:data:: PRECISION :value: 8 .. py:data:: SCALE :value: 2 .. py:class:: InvoiceItem Bases: :py:obj:`onegov.core.orm.Base`, :py:obj:`onegov.core.orm.mixins.TimestampMixin`, :py:obj:`onegov.pay.PayableManyTimes` An item in an invoice. .. py:attribute:: __tablename__ :value: 'invoice_items' .. py:attribute:: id :type: sqlalchemy.Column[uuid.UUID] .. py:attribute:: invoice_id :type: sqlalchemy.Column[uuid.UUID | None] .. py:attribute:: invoice :type: sqlalchemy.orm.relationship[onegov.activity.models.Invoice] .. py:attribute:: attendee_id :type: sqlalchemy.Column[uuid.UUID | None] .. py:attribute:: group :type: sqlalchemy.Column[str] .. py:attribute:: family :type: sqlalchemy.Column[str | None] .. py:attribute:: text :type: sqlalchemy.Column[str] .. py:attribute:: organizer :type: sqlalchemy.Column[str | None] .. py:attribute:: paid :type: sqlalchemy.Column[bool] .. py:attribute:: payment_date :type: sqlalchemy.Column[datetime.date | None] .. py:attribute:: tid :type: sqlalchemy.Column[str | None] .. py:attribute:: source :type: sqlalchemy.Column[str | None] .. py:attribute:: unit :type: sqlalchemy.Column[decimal.Decimal | None] .. py:attribute:: quantity :type: sqlalchemy.Column[decimal.Decimal | None] .. py:attribute:: amount :type: sqlalchemy.Column[decimal.Decimal] .. py:method:: validate_source(key: str, value: str | None) -> str | None