C0030
Functional Description
IF <TRANSIT OPERATION. Declaration type> is in SET {TIR,T2SM}
THEN <CUSTOMS OFFICE OF TRANSIT (DECLARED)> = “N”
ELSE IF (the first two characters of <CUSTOMS OFFICE OF DEPARTURE.Reference number>
is in SET CL112 (CountryCodesCTC)) AND (the first two characters of <CUSTOMS OFFICE
OF DESTINATION (DECLARED). Reference number> is in SET CL112
(CountryCodesCTC)) AND (the first two characters of <CUSTOMS OFFICE OF
DEPARTURE.Reference number> is EQUAL to the first two characters of CUSTOMS
OFFICE OF DESTINATION (DECLARED). Reference number>)
THEN <CUSTOMS OFFICE OF TRANSIT (DECLARED)> = “O”
ELSE IF <TRANSIT OPERATION.Declaration type> is EQUAL to ‘T2’
THEN <CUSTOMS OFFICE OF TRANSIT (DECLARED)> = “R”
ELSE IF <TRANSIT OPERATION.Declaration type> is EQUAL ‘T’ AND at least one instance of
<CONSIGNMENT-HOUSE CONSIGNMENT-CONSIGNMENT ITEM.Declaration type> is
EQUAL to ‘T2’
THEN <CUSTOMS OFFICE OF TRANSIT (DECLARED)> = “R”
ELSE IF the first two characters of <CUSTOMS OFFICE OF DEPARTURE.Reference number>
is in SET CL112 (CountryCodesCTC) OR the first two characters of <CUSTOMS OFFICE
OF DESTINATION (DECLARED). Reference number> is in SET CL112
(CountryCodesCTC)
THEN <CUSTOMS OFFICE OF TRANSIT (DECLARED)> = “R”
ELSE IF at least one instance of <CONSIGNMENT-COUNTRY OF ROUTING OF
CONSIGNMENT.Country> is in
SET CL112 (CountryCodesCTC)
THEN <CUSTOMS OFFICE OF TRANSIT (DECLARED)> = “R”
ELSE IF the first two characters of <CUSTOMS OFFICE OF DEPARTURE.Reference number>
is EQUAL to ‘AD’ OR IF the first two characters of <CUSTOMS OFFICE OF
DESTINATION (DECLARED). Reference number> is EQUAL to ‘AD’
THEN <CUSTOMS OFFICE OF TRANSIT (DECLARED)> = “R”
ELSE IF <CUSTOMS OFFICE OF EXIT FOR TRANSIT (DECLARED)> is PRESENT
THEN <CUSTOMS OFFICE OF TRANSIT (DECLARED)> = “R”
ELSE
<CUSTOMS OFFICE OF TRANSIT (DECLARED)> = “O”
Technical Description
IF /*/TransitOperation/declarationType is in SET {TIR,T2SM}
THEN /*/CustomsOfficeOfTransitDeclared = “N”
ELSE IF (the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is in SET
CL112) AND (the first two characters of
/*/CustomsOfficeOfDestinationDeclared/referenceNumber is in SET CL112) AND (the first
two characters of /*/CustomsOfficeOfDeparture/referenceNumber is EQUAL to the first two
characters of /*/CustomsOfficeOfDestinationDeclared/referenceNumber)
THEN /*/CustomsOfficeOfTransitDeclared = “O”
ELSE IF /*/TransitOperation/declarationType is EQUAL to ‘T2’
THEN /*/CustomsOfficeOfTransitDeclared = “R”
ELSE IF /*/TransitOperation/declarationType is EQUAL ‘T’ AND at least one instance of
/*/Consignment/HouseConsignment/ConsignmentItem/declarationType is EQUAL to ‘T2’
THEN /*/CustomsOfficeOfTransitDeclared = “R”
ELSE IF the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is in SET
CL112 OR the first two characters of
/*/CustomsOfficeOfDestinationDeclared/referenceNumber is in SET CL112
THEN /*/CustomsOfficeOfTransitDeclared = “R”
ELSE IF at least one instance of /*/Consignment/CountryOfRoutingOfConsignment/country is in SET
CL112
THEN /*/CustomsOfficeOfTransitDeclared = “R”
ELSE IF the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is EQUAL to
‘AD’ OR IF the first two characters of
/*/CustomsOfficeOfDestinationDeclared/referenceNumber is EQUAL to ‘AD’
THEN /*/CustomsOfficeOfTransitDeclared = “R”
ELSE IF /*/CustomsOfficeOfExitForTransitDeclared is PRESENT
THEN /*/CustomsOfficeOfTransitDeclared = “R”
ELSE
/*/CustomsOfficeOfTransitDeclared = “O”