feriennet.models.invoice_action =============================== .. py:module:: feriennet.models.invoice_action Classes ------- .. autoapisummary:: feriennet.models.invoice_action.InvoiceAction Module Contents --------------- .. py:class:: 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) .. py:attribute:: session .. py:attribute:: id .. py:attribute:: action .. py:attribute:: extend_to :value: None .. py:attribute:: text :value: None .. py:property:: item :type: onegov.activity.InvoiceItem | None .. py:property:: valid :type: bool .. py:property:: targets :type: collections.abc.Iterator[onegov.activity.InvoiceItem] .. py:method:: execute() -> None .. py:method:: assert_safe_to_change(targets: collections.abc.Collection[onegov.activity.InvoiceItem]) -> None .. py:method:: execute_mark_paid(targets: collections.abc.Collection[onegov.activity.InvoiceItem]) -> None .. py:method:: execute_mark_unpaid(targets: collections.abc.Collection[onegov.activity.InvoiceItem]) -> None .. py:method:: execute_remove_manual(targets: collections.abc.Collection[onegov.activity.InvoiceItem]) -> None