Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

GTIN values #21

Open
ferdyb opened this issue Aug 31, 2017 · 1 comment
Open

GTIN values #21

ferdyb opened this issue Aug 31, 2017 · 1 comment

Comments

@ferdyb
Copy link

ferdyb commented Aug 31, 2017

I have a GTIN text attribute in akeneo for a 13 character numeric string. It serializes to a 7 digit float.
Seems like this happens in Akeneo/Serialization/ProductValueDataConverter.cs, line 19-26

if (reader.TokenType == JsonToken.String) { if (float.TryParse((string)reader.Value, out float number)) { return number; } return reader.Value; }

@ferdyb
Copy link
Author

ferdyb commented Aug 31, 2017

Though it may not be ideal, for me the problem was solved by changing float to double.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant