Skip to content

Commit 42a5e13

Browse files
committed
apply non-default transmission codes in encoded codes
1 parent 378688c commit 42a5e13

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.14.1]
5+
6+
### Fixed
7+
- Fixed a bug that caused transmissionCodes not to be applied in encodedCodes when not in the
8+
default code template
9+
410
## [0.14.0]
511

612
### Breaking Changes

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ allprojects {
2323
}
2424

2525
project.ext {
26-
sdkVersion='0.14.0'
26+
sdkVersion='0.14.1'
2727
versionCode=1
2828

2929
compileSdkVersion=28

core/src/main/java/io/snabble/sdk/encodedcodes/EncodedCodesGenerator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ public int compare(ProductInfo p1, ProductInfo p2) {
169169
}
170170
} else {
171171
int q = productInfo.quantity;
172-
String transmissionCode = productInfo.product.getTransmissionCode(productInfo.scannedCode.getLookupCode());
172+
String transmissionCode = productInfo.product.getTransmissionCode(
173+
productInfo.scannedCode.getTemplateName(),
174+
productInfo.scannedCode.getLookupCode());
173175

174176
if (transmissionCode == null) {
175177
transmissionCode = productInfo.scannedCode.getCode();

0 commit comments

Comments
 (0)