test_scrubs_gs1.py 311 B

12345678910
  1. from epcpy.epc_schemes import SGTIN
  2. from epcpy.epc_schemes.sgtin import SGTINFilterValue
  3. fixed = '304'
  4. serial = '0'.zfill(8)
  5. sgtin2 = SGTIN.from_gtin_plus_serial('8800244110402',fixed+serial,9)
  6. print(sgtin2.hex(binary_coding_scheme=SGTIN.BinaryCodingScheme.SGTIN_96, filter_value=SGTINFilterValue.POS_ITEM))