keironstoddart / edi-835-parser

A simple EDI 835 file format parser.
MIT License
80 stars 40 forks source link

If billed units is a string, convert back to int #14

Open christopherpickering opened 2 years ago

christopherpickering commented 2 years ago

All 835's come in with an int here, and even the default value you have is an int... however, Cigna, in their infinite wisdom, is using floating point as a string, ex: 100.00 or 25.00 to specify the number of units.

This should covert it back to int to match all the other vendor files.

I had to convert to float first as there is a decimal value of "00" always there.