Re: bug report for python-stdnum==1.16 GS1-128
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
Re: bug report for python-stdnum==1.16 GS1-128
- From: Sergi Almacellas Abellana <sergi [at] koolpi.com>
- To: python-stdnum-users [at] lists.arthurdejong.org
- Subject: Re: bug report for python-stdnum==1.16 GS1-128
- Date: Thu, 8 Apr 2021 16:04:14 +0200
El 29/3/21 a les 14:38, Антон Косяков ha escrit:
> I am generating GS1-128 code, first of all i dont see fnc1 at start,
> and fnc1 in body appeаrs like 12 spaces.
By default the python-stdnum will not generate any separator so the full
width of the field will be used.
You need to set the separator variable to the char that you want to use
as FNC1. This is documented on the function:
https://github.com/arthurdejong/python-stdnum/blob/master/stdnum/gs1_128.py#L205
This parameter is available both to encode and decode functions.
I guess this should fix your problem.
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk