Skip to content

Conversation

@seizmo
Copy link
Contributor

@seizmo seizmo commented Oct 23, 2025

This updates the Gem output to the current datev spec (adding various fields) and adds additional escapes for header fields (as enforced by the DATEV api)

seizmo and others added 4 commits January 4, 2024 22:42
Add fields up to format version 700/13
Update StringField and IntegerField output methods to correctly handle
nil and empty values according to DATEV CSV format specifications.

Changes:
- StringField now returns empty string instead of quoted empty string
  for nil/empty values, ensuring reserved fields are completely empty
- IntegerField explicitly returns empty string for nil values
- Update tests to verify new nil/empty value handling
- Regenerate example CSV files with correct format

This resolves validation errors from DATEV Buchungsdatenservice API
where reserved fields must be completely empty (no quotes).
Fix CSV field formatting for DATEV API compliance
@ledermann
Copy link
Owner

Since I haven’t worked with the DATEV format for quite some time, I’m not familiar with the current specification. However, since all tests are passing, I’ll go ahead and merge this. Thanks for your contribution!

@ledermann ledermann merged commit bae8c91 into ledermann:master Oct 23, 2025
5 checks passed
@seizmo
Copy link
Contributor Author

seizmo commented Oct 23, 2025

We have used that code in production for a while, so it should be fine. Any plans for a new release? We would like to get rid of our fork. ;)

@ledermann
Copy link
Owner

Great, just released 0.12.0

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.

3 participants