feriennet.models.invoice_action

Classes

InvoiceAction

Module Contents

class feriennet.models.invoice_action.InvoiceAction(session: sqlalchemy.orm.Session, id: uuid.UUID, action: Literal['mark-paid', 'mark-unpaid', 'remove-manual'], extend_to: Literal['invoice', 'family'] | None = None, text: str | None = None)[source]
session[source]
id[source]
action[source]
extend_to = None[source]
text = None[source]
property item: onegov.activity.InvoiceItem | None[source]
property valid: bool[source]
property targets: Iterator[InvoiceItem][source]
execute() None[source]
assert_safe_to_change(targets: Collection[InvoiceItem]) None[source]
execute_mark_paid(targets: Collection[InvoiceItem]) None[source]
execute_mark_unpaid(targets: Collection[InvoiceItem]) None[source]
execute_remove_manual(targets: Collection[InvoiceItem]) None[source]