Skip to content

MODORDSTOR-526 - Support export transmission method on purchase order lines - #653

Open
markusweigelt wants to merge 3 commits into
masterfrom
MODORDSTOR-526
Open

MODORDSTOR-526 - Support export transmission method on purchase order lines#653
markusweigelt wants to merge 3 commits into
masterfrom
MODORDSTOR-526

Conversation

@markusweigelt

Copy link
Copy Markdown

MODORDSTOR-526 - Support export transmission method on purchase order lines

Purpose

mod-data-export-worker now stamps exportTransmissionMethod onto the ExportHistory Kafka event, recording how an EDIFACT/CSV order export was actually delivered — FTP, Email, or File download — and only after that delivery succeeded (see MODEXPW-643 - Populate transmission method on ExportHistory in EDIFACT/CSV order export).

Until now the only trace of an export on a PO line was lastEDIExportDate: when a line was exported, never how. This change consumes the new value and persists it on the order line, so lines can be filtered and sorted by their last transmission method.

Approach

  • EdiExportOrdersHistoryAsyncRecordHandler now copies the event's transmission method onto each exported line as lastExport.transmissionMethod, alongside the existing lastEDIExportDate update.
  • The event carries the method as a plain string, so conversion to the PO line enum is lenient: an unrecognised value is logged and clears the field rather than failing the event — a producer that starts emitting a new method must never block the export-date update.
  • schema.json — a plain btree index on the dotted path lastExport.transmissionMethod (caseSensitive: true, removeAccents: false), which backs both CQL filtering and sortby.
  • ModuleDescriptororders-storage.po-lines 13.0 → 13.1 and orders-storage.export-history 1.0 → 1.1.
  • acq-models submodule bumped to pick up last_export.json, poLine.lastExport and exportHistory.exportTransmissionMethod. lastEDIExportDate is deliberately left flat and untouched.

Depends on

Copy the transmission method from the export history event onto the order
line as lastExport.transmissionMethod and index it, so lines can be filtered
and sorted by how they were last transmitted. An unrecognised value clears
the field instead of failing the event, leaving lastEDIExportDate intact.
@markusweigelt
markusweigelt requested a review from a team as a code owner August 10, 2026 14:32
@markusweigelt
markusweigelt requested a review from a team August 10, 2026 14:33
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant