ToEdiString with PictureKind.Numeric returns leading zeros?
- Dominant language
- C#
- Stars
- 490
- Forks
- 173
- PR merge metrics
- No merged PRs in 30d
Description
According to the Swedish Ediel-standard which extends EDIFACT, the integer EdiValues in Segments are not allowed to have leading zeros. When looking around it seems that the current implementation is the way it is because of the X12 support. Would it be possible to have an option that does not pad out with leading zeros?
>In accordance with the syntax rules, see [7], multiple leading zeros are allowed in alphanumeric fields, however, multiple leading zeros are not allowed in numeric fields, as this leads to negative CONTRL.
source: [Ediel.se, p. 13](https://ediel.se/Portal/Document/3314)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating ToEdiString and the PictureKind.Numeric handling, then inspect how its current padding supports X12. Determine where an option can be introduced without changing existing behavior. Done means numeric EdiValues can be emitted without leading zeros for Swedish Ediel use while existing X12 formatting remains supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100