Commit 16d3e15b authored by Volker Krause's avatar Volker Krause
Browse files

Determine the issuer id also for UIC 918.3 tickets without an U_HEAD block

This can happen with pure U_FLEX / ERA FCB tickets now, and is relevant
for extractor script selection.
parent c6c7779a
Pipeline #254013 passed with stage
in 11 minutes and 42 seconds
......@@ -172,7 +172,19 @@ QString Uic9183Parser::name() const
QString Uic9183Parser::carrierId() const
return findBlock<Uic9183Head>().issuerCompanyCodeString();
if (const auto head = findBlock<Uic9183Head>(); head.isValid()) {
return head.issuerCompanyCodeString();
if (const auto fcb = findBlock<Fcb::UicRailTicketData>(); fcb.isValid()) {
const auto issue = fcb.issuingDetail;
if (issue.issuerNumIsSet()) {
return QString::number(issue.issuerNum);
if (issue.issuerIA5IsSet()) {
return QString::fromLatin1(issue.issuerIA5);
return header().signerCompanyCode();
QDateTime Uic9183Parser::validFrom() const
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment