MT2201.ftlx 1.5 KB
<?xml version="1.0" encoding="utf-8"?>
<Manifest xmlns="urn:Declaration:datamodel:standard:CN:MT2201:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <Head>
        <MessageID>${map.messageID}</MessageID>
        <FunctionCode>3</FunctionCode>
        <MessageType>MT2201</MessageType>
        <SenderID>${map.senderID}</SenderID>
        <ReceiverID>${map.receiverID}</ReceiverID>
        <SendTime>${map.sendTime}</SendTime>
        <Version>1.0</Version>
    </Head>
    <Declaration>
        <RepresentativePerson>
            <Name>${orgCode}</Name>
        </RepresentativePerson>
        <BorderTransportMeans>
            <JourneyID>${carrier}${flightNo}/${flightDates}</JourneyID>
        </BorderTransportMeans>
        <#list nmmsCustomMt2201List as nmms>
            <Consignment>
                <TransportContractDocument>
                    <ID>${nmms.awba}</ID>
                    <ChangeReasonCode>9999</ChangeReasonCode>
                </TransportContractDocument>
                <#if nmms.awbh?default("")?length gt 1>
                    <AssociatedTransportDocument>
                        <ID>${nmms.awba}_${nmms.awbh}</ID>
                    </AssociatedTransportDocument>
                </#if>
            </Consignment>
        </#list>

        <AdditionalInformation>
            <Reason>${reason}</Reason>
            <ContactName>${contactName}</ContactName>
            <ContactTel>${contactTel}</ContactTel>
            <Content>${content}</Content>
        </AdditionalInformation>
    </Declaration>
</Manifest>