MT2201.ftlx
3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<Manifest xmlns="urn:Declaration:datamodel:standard:CN:MT2201:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Head>
<MessageID>${msgId}</MessageID>
<FunctionCode>9</FunctionCode>
<MessageType>MT2201</MessageType>
<SenderID>${senderId}</SenderID>
<ReceiverID>${receiverID}</ReceiverID>
<SendTime>${sendTime}</SendTime>
<Version>1.0</Version>
</Head>
<Declaration>
<RepresentativePerson>
<Name>${orgCode}</Name>
</RepresentativePerson>
<ExitCustomsOffice>
<ID>${mt.originstation}</ID>
</ExitCustomsOffice>
<Carrier>
<ID>${mt.carrier}</ID>
</Carrier>
<BorderTransportMeans>
<JourneyID>${mt.carrier}${mt.flightno}/${mt.flightdate?string('yyyyMMdd')}</JourneyID>
<TypeCode>4</TypeCode>
</BorderTransportMeans>
<Consignment>
<TransportContractDocument>
<ID>${awba}</ID>
<ConditionCode>10</ConditionCode>
</TransportContractDocument>
<#if mt['awbh']??>
<#if mt.awbh?default("")?length gt 1>
<AssociatedTransportDocument>
<ID>${awba}_${mt.awbh}</ID>
</AssociatedTransportDocument>
</#if>
</#if>
<LoadingLocation>
<ID>${mt.originstation}/${mt.customcode}</ID>
<LoadingDate>${loadingDate}</LoadingDate>
</LoadingLocation>
<UnloadingLocation>
<ID>${mt.destinationstation}</ID>
</UnloadingLocation>
<GoodsConsignedPlace>
<ID>${mt.originstation}</ID>
</GoodsConsignedPlace>
<CustomsStatusCode>${awbAwbinfo.awbtype}</CustomsStatusCode>
<TransportSplitIndicator>${mt.splitcode}</TransportSplitIndicator>
<FreightPayment>
<MethodCode>${awbAwbinfo.collected}</MethodCode>
</FreightPayment>
<ConsignmentPackaging>
<QuantityQuantity>${awbAwbinfo.pcs}</QuantityQuantity>
</ConsignmentPackaging>
<TotalGrossMassMeasure>${awbAwbinfo.weight?c}</TotalGrossMassMeasure>
<Consignee>
<Name>${awbAwbinfo.cnsnname}</Name>
<Address>
<Line>${awbAwbinfo.cnsnaddress}</Line>
<CountryCode>${awbAwbinfo.cnscountyr}</CountryCode>
</Address>
<Communication>
<ID>${awbAwbinfo.cnsntel}</ID>
</Communication>
</Consignee>
<Consignor>
<Name>${awbAwbinfo.shprname}</Name>
<Address>
<Line>${awbAwbinfo.shpraddress}</Line>
<CountryCode>${awbAwbinfo.shprcountyr}</CountryCode>
</Address>
<Communication>
<ID>${awbAwbinfo.shprtel}</ID>
</Communication>
</Consignor>
<ConsignmentItem>
<SequenceNumeric>1</SequenceNumeric>
<ConsignmentItemPackaging>
<QuantityQuantity>${mt.piece}</QuantityQuantity>
</ConsignmentItemPackaging>
<Commodity>
<CargoDescription>${mt.goodsname}</CargoDescription>
</Commodity>
<GoodsMeasure>
<GrossMassMeasure>${mt.weight?c}</GrossMassMeasure>
</GoodsMeasure>
</ConsignmentItem>
</Consignment>
</Declaration>
</Manifest>