Skip to content

MODEXPW-628 - Add CSV file format support for ordering export #733

Open
markusweigelt wants to merge 8 commits intomasterfrom
MODEXPW-628
Open

MODEXPW-628 - Add CSV file format support for ordering export #733
markusweigelt wants to merge 8 commits intomasterfrom
MODEXPW-628

Conversation

@markusweigelt
Copy link
Copy Markdown

MODEXPW-628
- Add CSV file format support for EDIFACT ordering export

Purpose

Libraries need to export purchase orders in CSV format for vendors that do not support EDIFACT. This adds CSV as an alternative fileFormat to the existing EDIFACT_ORDERS_EXPORT job.

Approach

  • Generate one CSV row per PO line (aligned with the existing EDI query)
  • Rename CsvMapper to ClaimCsvMapper for clarity
  • Extract shared CSV implementations from existing claims-related logic
  • Introduce a generic CsvConverter for both ordering and claiming (replacing ClaimCsvConverter)
  • Update validation to skip EDI-specific fields when fileFormat is CSV

Enable EDIFACT_ORDERS_EXPORT to produce CSV output by switching on
fileFormat, following the same pattern used by Claims export. EDI-specific
validation is skipped for CSV, and FTP validation is now transmission-method-only.
…c CsvConverter

- Replace ClaimCsvConverter and OrderCsvConverter with generic CsvConverter<T>
  that takes ExtractableField[] in its constructor
- Extract common CSV assembly logic into AbstractCsvMapper<T> base class
- OrderCsvMapper and ClaimCsvMapper now extend AbstractCsvMapper, only
  implementing getEntries() for their domain-specific entry building
- Rename CsvMapper to ClaimCsvMapper for clarity
@markusweigelt markusweigelt requested a review from a team April 8, 2026 15:31
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 9, 2026

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