Comments (4)
You need to set the Advice in your grammar to not have any separator for decimal mark. That makes it omitted when writing. Otherwise the format is only accounted for precision. It is the 7th argument on the set advice method.
grammar.SetAdvice('+', '+', ':', '\'', '?', null, null);
from edi.net.
In the same EDI file, you could have 2 properties, one that needs output in N2 and the other in R.
Won't it break for the R while making it work for the N2 if we set it with the grammar ?
from edi.net.
You are correct. If this is an exception case then you are probably better off making the exception Value a sting instead of a decimal. Then handle the conversion when populating.
Alternatively make the Amount an int and pad it with multiplication:
Amount = (int)(myAmountDecimal * 100)
from edi.net.
I was surprised to get an answer so fast. I had changed the property to string before creating the issue since I didn't know when I would get a reply. Thank you for the help.
from edi.net.
Related Issues (20)
- Combine condition with value HOT 2
- How to omit unpopulated segment? HOT 2
- Question for path HOT 3
- X12 - automatic detection of grammar
- Set font when use EdiSerializer().Deserialize
- X12 - Segment ISA - Component element separator HOT 2
- X12 - Reuse data segment code (example: N1 Loop Party Identification) HOT 1
- X12 - N1 Loop PartyIdentification for EDI 940 HOT 1
- Parser cannot process escaped plus sign for phone number in PartyMutuallyDefined NAD record HOT 1
- Two segment groups with the same path HOT 1
- Repeating element groups within segment for X12 830 HOT 1
- Repeated elements in a segment
- [Q] Error was thrown for repeated segment groups HOT 3
- EdiCondition not working to RFF+CR HOT 1
- .net8 HOT 1
- Help understanding EdiSegment Path settings HOT 3
- Some Segments does not map properly
- List wih repeating elements HOT 4
- Enum deserialization does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edi.net.