-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop zeroing last digits of RCNs without variable parts #97
Conversation
Codecov Report
@@ Coverage Diff @@
## main #97 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 17 17
Lines 771 784 +13
Branches 109 113 +4
=========================================
+ Hits 771 784 +13
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've read over, and without having read the standard myself this looks very sensible 👍
@pytest.mark.parametrize( | ||
"rcn_region, value", | ||
[ | ||
(RcnRegion.NORWAY, "00012348"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we expect 00 to be kept untouched? It does not seem like one of the company prefixes
Line 27 in cf45077
RCNs with GS1 Prefix 04 or 40-49 have semantics that are only defined within |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. It's an RCN-8, which are GTIN-8 with the prefix 0 or 2, which are both Company RCNs. I'll double-check the standard and update the docstring.
1412442
to
31d9bb4
Compare
No description provided.