diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2021-11-29 17:10:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 17:10:55 +0100 |
commit | d7fbd40aad2080adf7033e8f668e5218ab12bace (patch) | |
tree | 0b7c8e4f0a8427a6eccdeb19882ce90ccbdd852c /src/main/java/org/uic/barcode/ticket/api/utils/Api2OpenAsnEncoder.java | |
parent | Merge pull request #35 from UnionInternationalCheminsdeFer/1.2.8 (diff) | |
parent | additional tests (diff) | |
download | UIC-barcode-d7fbd40aad2080adf7033e8f668e5218ab12bace.tar UIC-barcode-d7fbd40aad2080adf7033e8f668e5218ab12bace.tar.gz UIC-barcode-d7fbd40aad2080adf7033e8f668e5218ab12bace.tar.bz2 UIC-barcode-d7fbd40aad2080adf7033e8f668e5218ab12bace.tar.lz UIC-barcode-d7fbd40aad2080adf7033e8f668e5218ab12bace.tar.xz UIC-barcode-d7fbd40aad2080adf7033e8f668e5218ab12bace.tar.zst UIC-barcode-d7fbd40aad2080adf7033e8f668e5218ab12bace.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main/java/org/uic/barcode/ticket/api/utils/Api2OpenAsnEncoder.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/uic/barcode/ticket/api/utils/Api2OpenAsnEncoder.java b/src/main/java/org/uic/barcode/ticket/api/utils/Api2OpenAsnEncoder.java index cab9b53..f4b9569 100644 --- a/src/main/java/org/uic/barcode/ticket/api/utils/Api2OpenAsnEncoder.java +++ b/src/main/java/org/uic/barcode/ticket/api/utils/Api2OpenAsnEncoder.java @@ -319,9 +319,7 @@ public class Api2OpenAsnEncoder implements Api2AsnEncoder { asnData.setInfoText(document.getInfoText());
-
- asnData.setStationNameUTF8(document.getStationName());
-
+
asnData.setExtension(encodeExtension(document.getExtension()));
return asnDocument;
@@ -977,7 +975,9 @@ public class Api2OpenAsnEncoder implements Api2AsnEncoder { }
}
-
+ asnData.setGroupName(document.getGroupName());
+ asnData.setNumberOfCountermark(new Long(document.getNumberOfCountermark()));
+ asnData.setTotalOfCountermarks(new Long(document.getTotalOfCountermarks()));
asnData.setReferenceNum(UicEncoderUtils.getNum(document.getReference()));
asnData.setReferenceIA5(UicEncoderUtils.getIA5NonNum(document.getReference()));
|