cadrumo.application.ledger.actions_export module¶
Application export service for bucket-scoped manual ledger snapshots.
The export action reads a loaded
TransactionCatalogue, projects
LedgerExportRow instances, serializes them
with serialize_tabular_rows(), emits a
LEDGER_TRANSACTION_EXPORTED bucket event, and returns
LedgerExportResult.
- export_ledger_transactions(command, *, transaction_repository, bucket_event_repository, occurred_at=None)[source]¶
Export rows for a
LedgerExportCommand.- Returns:
The export outcome.
- Return type:
- Parameters:
command (LedgerExportCommand)
transaction_repository (TransactionCatalogueCoCommitWriterProtocol)
bucket_event_repository (BucketEventHistoryCoCommitWriterProtocol)
occurred_at (datetime | None)
- optional_text(value)[source]¶
Render an unset optional text field as an empty export cell.
The sibling of
optional_decimal()for the string columns: an export row carries a blank cell, never the wordNone.