cadrumo.entrypoints.tui.ledger.reconciliation module¶
Local Ledger invoice reconciliation and affected-declaration surface.
- DIRECTION_STATE_COPY_KEYS: dict[str, str]¶
Operator copy for each one-sided link direction, keyed by the canonical value rather than a hand-typed string.
The workspace projection flattens
LinkInconsistencyDirectionto a barestrbefore it reaches this screen, so this mapping is the only place the membership survives on the TUI side. A direction added to the enum and not to this map reacheson_mountunrenderable and raises while the reconciliation table is being built — the operator’s screen fails to open rather than showing the row it could not label. Keying off the enum keeps that a red test instead of a render-time refusal.
- class LedgerReconciliationScreen(controller)[source]¶
Bases:
LedgerConfirmationFlowScreenRender local-only reconciliation and submit admitted visible links.
- Parameters:
controller (LedgerWorkspaceController)
- FLOW_NAME: ClassVar[str]¶
- 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.
Example
def compose(self) -> ComposeResult: yield Header() yield Label("Press the button below:") yield Button() yield Footer()
- on_mount()[source]¶
Populate all three local authorities without joining remote AEAT state.
- Return type:
- on_data_table_row_selected(event)[source]¶
Admit only a semantic pair supplied by the visible suggestion projection.
- Return type:
- Parameters:
event (RowSelected)
- on_button_pressed(event)[source]¶
Submit once through the injected door or cancel before persistence.
- can_focus: bool¶
Widget may receive focus.
- can_focus_children: bool¶
Widget’s children may receive focus.