cadrumo.entrypoints.tui.ledger.invoice_entry module

Invoice entry form: type one invoice, review it, and record it through the catalogue writer.

class LedgerInvoiceEntryScreen(controller)[source]

Bases: LedgerConfirmationFlowScreen

Collect every field invoice add takes, then write only after review.

Parameters:

controller (LedgerWorkspaceController)

FLOW_NAME: ClassVar[str]
CSS: ClassVar[str]

Inline CSS, useful for quick scripts. Rules here take priority over CSS_PATH.

Note

This CSS applies to the whole app.

compose()[source]

Called by Textual to create child widgets.

This method is called when a widget is mounted or by setting recompose=True when calling [refresh()][textual.widget.Widget.refresh].

Note that you don’t typically need to explicitly call this method.

Return type:

Iterable[Widget]

Example

def compose(self) -> ComposeResult:
    yield Header()
    yield Label("Press the button below:")
    yield Button()
    yield Footer()
on_mount()[source]

Start at the first field the operator types.

Return type:

None

on_button_pressed(event)[source]

Route each control through the flow’s guarded transitions.

Return type:

None

Parameters:

event (Pressed)

can_focus: bool

Widget may receive focus.

can_focus_children: bool

Widget’s children may receive focus.