Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KItinerary
Commits
d4c89c1e
Commit
d4c89c1e
authored
Nov 11, 2022
by
Volker Krause
Browse files
Extract CD ticket code from 1154UT vendor blocks
parent
899bf7a4
Pipeline
#265754
passed with stage
in 13 minutes and 15 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib/scripts/czechrailways.js
View file @
d4c89c1e
...
...
@@ -171,6 +171,8 @@ function parsePdfTicket(content, node, triggerNode) {
if
(
triggerNode
.
result
[
0
][
'
@type
'
]
==
'
TrainReservation
'
)
{
res
=
JsonLd
.
apply
(
triggerNode
.
result
[
0
],
res
);
res
.
reservationNumber
=
triggerNode
.
content
.
block
(
'
1154UT
'
).
findSubBlock
(
'
KK
'
).
content
;
res
.
reservedTicket
.
ticketNumber
=
triggerNode
.
result
[
0
].
reservationNumber
;
}
else
{
res
.
reservedTicket
=
triggerNode
.
result
[
0
];
}
...
...
src/lib/uic9183/vendor1154block.cpp
View file @
d4c89c1e
...
...
@@ -133,7 +133,7 @@ Vendor1154UTSubBlock Vendor1154UTBlock::findSubBlock(const char id[SubBlockTypeS
QVariant
Vendor1154UTBlock
::
findSubBlock
(
const
QString
&
str
)
const
{
if
(
str
.
size
()
!=
3
||
!
isValid
())
{
if
(
str
.
size
()
!=
2
||
!
isValid
())
{
return
{};
}
const
auto
b
=
findSubBlock
(
str
.
toUtf8
().
constData
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment