pay.models.invoice_item

Classes

InvoiceItem

An item in an invoice.

Module Contents

class pay.models.invoice_item.InvoiceItem[source]

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

An item in an invoice.

__tablename__ = 'invoice_items'[source]
type: sqlalchemy.Column[str][source]
__mapper_args__[source]
id: sqlalchemy.Column[uuid.UUID][source]
invoice_id: sqlalchemy.Column[uuid.UUID | None][source]
invoice: sqlalchemy.orm.relationship[onegov.pay.models.Invoice][source]
group: sqlalchemy.Column[str][source]
family: sqlalchemy.Column[str | None][source]
text: sqlalchemy.Column[str][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][source]
quantity: sqlalchemy.Column[decimal.Decimal][source]
amount: sqlalchemy.Column[decimal.Decimal][source]
vat_factor: sqlalchemy.Column[decimal.Decimal | None][source]
property vat_rate: decimal.Decimal | None[source]

A convenience attribute to access/set the VAT rate in %

property vat: decimal.Decimal[source]
property net_amount: decimal.Decimal[source]
validate_source(key: str, value: str | None) str | None[source]