DacoTaco / BarcodeParserBuilder

BarcodeParserBuilder is a .Net ( standard 2.0 & 2.1 ) nuget package to help parse & build barcode strings
https://www.nuget.org/packages/BarcodeParserBuilder
GNU Lesser General Public License v2.1
11 stars 4 forks source link

Added Application Identifier (AI) for dimension values for GS1 barcode. #11

Closed pejoh-eg closed 10 months ago

pejoh-eg commented 10 months ago

Extended handling for AI 310-369 based on https://ref.gs1.org/standards/genspecs/ Current version is hust handling 310 (Weight Kg) and 320 (Weight Lb)

10 Is it possible to add Application Identifier 310-369 as FixedLengthGS1Field<double?>

DacoTaco commented 10 months ago

this code only makes it parse the AI's correctly. im not sure if you need them exposed to external code through properties like NetWeightInKg or are you accessing them through the fields property?

DacoTaco commented 10 months ago

oh also, got a barcode with the values to test and add in GS1BarcodeParserBuilderTestFixture.cs ?

EDIT : you can make one up if you want @pejoh-eg

pejoh-eg commented 10 months ago

I have now added a test-barcode for a couple of AI for dimension like length, width and height with different decimal placement. Those all AI between 310 and 369 use same logic I haven't add test for all. I haven't either turn them into properties on GSIBarcode object. I think they should be accesses thru "Fields" member