Skip to content
GitLab
Menu
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
6f2e5337
Commit
6f2e5337
authored
Mar 09, 2022
by
Volker Krause
Browse files
Don't choke on SNCF inoui PDFs with more legs on paper than in the barcode
parent
16aecd95
Pipeline
#147532
passed with stages
in 3 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib/scripts/sncf.js
View file @
6f2e5337
...
...
@@ -158,7 +158,7 @@ function parsePdf(pdf) {
}
if
(
legs
.
length
>
0
)
{
for
(
var
j
=
0
;
j
<
legs
.
length
;
++
j
)
{
if
(
barcode
)
{
if
(
barcode
&&
j
<
barcodeRes
.
length
)
{
legs
[
j
].
underName
=
barcodeRes
[
j
].
underName
;
legs
[
j
].
reservedTicket
.
ticketToken
=
"
aztecCode:
"
+
barcode
;
legs
[
j
].
reservationFor
.
departureStation
.
identifier
=
barcodeRes
[
j
].
reservationFor
.
departureStation
.
identifier
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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