EDI INVOICE Fona Page 0 of 43
HANCOM DESCRIPTION F GROUP INVOICE Content This document describes the requirements to an EDIFACT INVOIC from a supplier to. The message can be generated in version D93A or D96A upon agreement with the sender. The two versions are treated alike in the F GROUP system. General rules As the syntax identification / version in UNB-S001-0001:0002 is UNOC:3 a message (UNA/UNB - UNZ) must always start with the UNAsegment, e.g. UNA:+.? ' The receiver GLN (= Global Location Number / EAN location number) in the UNB segment is always 5790000259335, which is F GROUP s transmission address. A message can contain several INVOICs / invoice types (UNH/BGM UNT). One INVOIC (Invoice number) refers to one F GROUP order number. The order number is specified on Header level. Invoice types The following 4 types of Invoices can be specified (BGM): 380 = Invoice 381 = Credit note 32E = Invoice financial entries. Increases the article s inventory value, not the inventory level. 31E = Credit note financial entries. Reduces the article s inventory value, not the inventory level. Page 1 of 43
Controls The following must apply for invoice types 380 and 381: On product line level: Product line amount after discounts/charges = Quantity * Price +/- discounts/charges See MOA 39, QTY 34, PRI 44 and ALC 56/MOA 60 On invoice level: Amount Payable = Sum of Total Product Line Amounts +/- Totals of Discounts/Charges +/- VAT +/- Adjusted Amount See MOA 067 Page 2 of 43
Read Guide The segment content tables, which stringently comply with the HANCOM specifications in version 94/97, show all elements included in the message as well as elements in between the elements used. Elements succeeding the elements used are not included. In a box on top of every page the segment designation (e.g. UNH) and the D93A and D96A segment numbers in the HANCOM manual are indicated as D93A / D96A followed by a letter code where: R = Required O = Optional, i.e. may be omitted B = Conditional, i.e. must be included under certain conditions described in the head of the table. Field lengths are indicated in compliance with the HANCOM definitions, i.e.: a3 indicates an alphabetic field of 3 characters and an..3 indicates that the field has 3 alpha-numeric characters in compliance with HANCOM. If the code or value consists of one character only, do not type zero or leave blank spaces. Page 3 of 43
UNB 000/000 R UNB: DELIVERY SEGMENT-START The following is based on the condition that only one document type is included per delivery 000 DELIVERY SEGMENT M a3 M a3 UNB Indication of delivery S001 SYNTAX IDENTIFICATION M M 0001 Syntax identification M a4 M a4 UNOC UN/ECE level C 0002 Syntax, version M n1 M n1 3 Syntax version 3 S002 M M 0004 Sender identification M an..35 M n13 5790000999999 Sender EAN location no. 0007 Identification qualifier C an..4 R n2 14 EAN code 0008 Routing address C an..14 N N/A S003 DELIVERY RECIPIENT M M 0010 Recipient identification M an..35 M n13 5790000259335 Recipient EAN location no. (F GROUP) 0007 Identification qualifier C an..4 R n2 14 EAN code 0014 Routing address C an..14 N N/A S004 PREPARATION OF DELIVERY, M M TIME 0017 Date of delivery M n6 M n6 999999 YYMMDD; date of delivery 0019 Time of delivery M n4 M n4 9999 HHMM; time of delivery 0020 DELIVERY REFERENCE M an..14 M an..14 XXX... Precise reference no. of delivery Segment continues... Page 4 of 43
S005 RECIPIENT REFERENCE, C N PASSWORD 0022 Recipient reference/password M an..14 N N/A 0025 Recipient reference/password, qualifier C an2 N N/A 0026 APPLICATION REFERENCE C an..14 N N/A 0029 PRIORITY OF DELIVERY C a1 N N/A 0031 RECEIPT REQUIRED C n1 N N/A (cf. agreement) 0032 IDENTIFICATION OF EXCHANGE AGREEMENT C an..35 N N/A 0035 TEST INDICATOR C n1 D n1 (1) 1 = Test delivery Example: UNB+UNOC:3+5790000999999:14+5790000259335:14+970415:0836+ND970401 UNB+UNOC:3+5790000999999:14+5790000259335:14+970415:0836+ND970401++++++1 Page 5 of 43
UNH 001/001 R UNH: MESSAGE HEADER 001 MESSAGE HEADER M a3 M a3 UNH MESSAGE HEADER 0062 MESSAGE REFERENCE NO. M an..14 M an..14 XXX... Precise reference no. of message S009 MESSAGE IDENTIFICATION M 0065 Message type M an..6 M an..6 INVOIC Definition of invoice 0052 Version no. M an..3 M an..3 D D = draft released 0054 Publication no. M an..3 M an..3 93A/96A Version 94/97 0051 Supervising organisation M an..2 M an..2 UN United Nations standard message 0057 Code assigned by organisation R an..6 R an..6 EAN007 EAN version control no. Example: UNH+1+INVOIC:D:93A:UN:EAN007 Page 6 of 43
BGM 002/002 R BGM: START OF MESSAGE, DELIVERY SEGMENT - START 002 START OF MESSAGE M a3 M a3 BGM Start of message C002 MESSAGE R 1001 Document/title of message, coded R an..3 R an..3 380 381 31E 32E 1131 Code list qualifier N an..3 N N/A 3055 Authority in charge D an..3 N N/A 1000 Title of message O an..35 N N/A 1004 MESSAGE NUMBER R an..35 R n..10 999.. Invoice number Example: BGM+380+6245645 380 = Invoice 381 = Credit note 31E = Credit note financial entries 32E = Invoice financial entries Page 7 of 43
DTM 003/003 R DTM 003 R DTM: DATE, TIME AND PERIOD 003 DATE/TIME M a3 M a3 DTM Date and time segment C507 DATE AND TIME/PERIOD M M 2005 Indication of time qualifier M an..3 M an..3 137 137 = Document date (invoice date) 2380 Date R an..35 R n8 99999999 CCYYMMDD 2379 Qualifier R an..3 R an..3 102 102 = Format of date (CCYYMMDD) 003 DATE/TIME M a3 M a3 DTM Date and time segment C507 DATE AND HOUR/PERIODE M M 2005 Indication of time qualifier M an..3 M an..3 35 35 = Delivery date 2380 Date R an..35 R n8 99999999 CCYYMMDD 2379 Qualifier R an..3 R an..3 102 102 = Format of date (CCYYMMDD) Example: DTM+137:19970415:102 DTM+35:19970415:102 Page 8 of 43
RFF 007/007 O RFF: REFERENCE 007 REFERENCE M a3 M a3 RFF Reference segment C506 REFERENCE M M 1153 Reference qualifier M an..3 M an..3 ON ON = Order no. 1154 Reference no. R an..35 R n..7 999.. F GROUP s order no. Example: RFF+ON:241690 Page 9 of 43
DTM 008/008 O DTM: DATE, TIME AND PERIOD (Segment may be omitted) 008 DATE/TIME M a3 M a3 DTM Date and time segment C507 DATE AND HOUR/PERIOD M M 2005 Indication of time qualifier M an..3 M an..3 171 171 = Reference date (F GROUP s order date) 2380 Date R an..35 R n8 99999999 CCYYMMDD 2379 Qualifier R an..3 R an..3 102 102 = Format of date (CCYYMMDD) Example: DTM+171:19970415:102 Page 10 of 43
RFF 007/007 O RFF 007/007 R RFF 007/007 O RFF: REFERENCE 007 REFERENCE M a3 M a3 RFF Reference segment C506 REFERENCE M M 1153 Reference qualifier M an..3 M an..3 CR CR = Reference number 1154 Reference no. R an..35 R an..10 XXX.. F GROUP s reference number 007 REFERENCE M a3 M a3 RFF Reference segment C506 REFERENCE M M 1153 Reference qualifier M an..3 M an..3 DQ DQ = Delivery note number 1154 Reference no. R an..35 R n..10 999... Consignor's delivery note number 007 REFERENCE M a3 M a3 RFF Reference segment C506 REFERENCE M M 1153 Reference qualifier M an..3 M an..3 PQ PQ = Payment reference number 1154 Reference no. R an..35 R an..15 XXX.. Consignor's PBS-id. Example: RFF+CR:32035 Example: RFF+DQ:6541112 Example: RFF+PQ:000000009999999 Page 11 of 43
RFF 007/007 O RFF 007/007 O RFF: REFERENCE 007 REFERENCE M a3 M a3 RFF Reference segment C506 REFERENCE M M 1153 Reference qualifier M an..3 M an..3 SS SS = Seller's reference number 1154 Reference no. R an..35 R an..35 XXX.. Seller's reference number (name) 007 REFERENCE M a3 M a3 RFF Reference segment C506 REFERENCE M M 1153 Reference qualifier M an..3 M an..3 VN VN = Consignor 's order number 1154 Reference no. R an..35 R an..35 XXX.. Consignor's in-house order number Example: RFF+SS:PETER HANSEN Example: RFF+VN:65555 Page 12 of 43
NAD 009/009 R NAD: NAME AND ADDRESS 009 NAME AND ADDRESS M a3 M a3 NAD Name and address segment header 3035 COMPANY QUALIFIER M an..3 M an..3 IV IV = Invoice recipient code C082 COMPANY IDENTIFICATION A R 3039 Company identification M an..17 M n13 579... Invoice recipient location no. Always 5790000259335 = 1131 Code list qualifier N an..3 N N/A 3055 Authority in charge R an..3 R an..3 9 9 = EAN Example: NAD+IV+5790000259335::9 Page 13 of 43
NAD 009/009 O NAD: NAME AND ADDRESS 009 NAME AND ADDRESS M a3 M a3 NAD Name and address segment header 3035 COMPANY QUALIFIER M an..3 M an..3 BY BY = Buyer code C082 COMPANY IDENTIFICATION A R 3039 Company identification M an..17 M n13 579... Buyer's location number (shop/department location number) from corresponding order number 1131 Code list qualifier N an..3 N N/A 3055 Authority in charge R an..3 R an..3 9 9 = EAN Example: NAD+BY+5790000259199::9 Page 14 of 43
NAD 009/009 R NAD: NAME AND ADDRESS If this segment is omitted, the place of delivery = buyer's address. It is recommended that the segment always be used. 009 NAME AND ADDRESS M a3 M a3 NAD Name and address segment header 3035 COMPANY QUALIFIER M an..3 M an..3 DP DP = Place of delivery code C082 COMPANY IDENTIFICATION M 3039 Company identification M an..17 M n13 579... Place of delivery location number (shop/department location number) From NAD+DP in corresponding Order Number 1131 Code list qualifier N an..3 N N/A 3055 Authority in charge R an..3 R an..3 9 9 = EAN Example: NAD+DP+5790000259199::9 (= to be delivered to F GROUP Department 17 Valby) Page 15 of 43
NAD 009/009 R NAD: NAME AND ADDRESS 009 NAME AND ADDRESS M a3 M a3 NAD Name and address segment header 3035 COMPANY QUALIFIER M an..3 M an..3 SU SU = Supplier code C082 COMPANY IDENTIFICATION A R 3039 Company identification M an..17 M n13 579... Supplier's location no. 1131 Code list qualifier N an..3 N N/A 3055 Authority in charge R an..3 R an..3 9 9 = EAN Example: NAD+SU+5790000999999::9 Page 16 of 43
RFF 010/011 O RFF 010/011 ND 07 O RFF: REFERENCE 010 REFERENCE M a3 M a3 RFF Reference segment C506 REFERENCE M M 1153 Reference qualifier M an..3 M an..3 VA VA = Supplier's VAT registration no. 1154 Reference no. R an..35 R an..10 XXX.. VAT registration number 010 REFERENCE M a3 M a3 RFF Reference segment C506 REFERENCE M M 1153 Reference qualifier M an..3 M an..3 XA XA = Supplier's company registration number (SE no.) 1154 Reference no. R an..35 R an..10 XXX.. SE no. Example: RFF+VA:DK99999999 Example: RFF+XA:99999999 Page 17 of 43
TAX 013/014 R TAX: TAXATION INFORMATION Indication of the general VAT rate of the entire invoice 013 TAXATION INFORMATION M a3 M a3 TAX Taxation information 5283 TAXATION QUALIFIER M an..3 M an..3 7 7 = Duty C241 TAX AND DUTY TYPES D R 5153 Tax/duty types, coded O an..3 R an..3 VAT VAT 1131 Code list qualifier O an..3 N N/A 3055 Authority in charge O an..3 N N/A 5152 Tax/duty types O an..35 N N/A C533 METHOD OF CALCULATION, TAX/DUTY O N N/A 5286 BASIS OF TAXATION O an..15 N N/A C243 TAXATION DETAILS A R 5279 Tax/duty rates, identification O an..7 N N/A 1131 Code list qualifier O an..3 N N/A 3055 Authority in charge O an..3 N N/A 5278 Tax/duty rates O an..7 R an..7 25 VAT rate (25 or 0) Example: TAX+7+VAT+++:::25 Page 18 of 43
PAT 016/018 O PAT: TERMS OF PAYMENT Indication of terms of payment 016 TERMS OF PAYMENT M a3 M a3 PAT Payment segment 4279 TERM OF PAYMENT, CODED M an..3 M an1 3 3 = Stipulated date Example: PAT+3 Page 19 of 43
DTM 017/019 B DTM: DATE, TIME AND PERIOD Date of payment 017 DATE, TIME AND PERIOD M a3 M a3 DTM Date/time/period segment C507 DATE/HOUR/PERIOD M M 2005 Indication of time qualifier M an..3 M an..3 13 Time for payment 2380 Date/hour/period R an..35 R n..8 99999999 Day of payment = CCYYMMDD 2379 Format of indication of time qualifier R an..3 R an..3 102 102 = Format of date (CCYYMMDD) Example: DTM+13:19970501:102 Page 20 of 43
ALC: DISCOUNTS AND CHARGES ALC 023/026 O Used when discounts and charges apply to the entire invoice. It is, however, recommended that discounts be indicated in the ALC group on each product line. Discounts which only apply to selected invoice lines may only be indicated by placing an ALC group on each invoice line in question. A separate ALC group is used for each type. 023 DISCOUNTS AND CHARGES M a3 M a3 ALC Discounts/charges segment 5463 DISCOUNTS/CHARGES QUALIFIER M an..3 M an..3 A A = Discounts C = Charges C552 DISCOUNTS/CHARGES INFORMATION 1230 Discounts/charges no. O an..35 N N/A 4471 METHOD OF SETTLEMENT D an..3 N N/A 1227 CALCULATION SEQUENCE D an..3 N N/A Page 21 of 43
C214 IDENTIFICATION OF D D SERVICES 7161 Services, coded M an..3 M an..3 AAA The element may only be used if 1230 is omitted. Codes are i.a. : FC = Freight charge DI = Discount 1131 Code list qualifier O N N/A 3055 Authority in charge O N N/A Example: ALC+C++++FC (Freight charge, amount stated in MOA) Page 22 of 43
MOA 026/029 B MOA: AMOUNT Used when discounts/charges are expressed in specific amounts. 026 AMOUNT M a3 M a3 MOA Amount segment C516 AMOUNT M M 5025 Amount type, qualifier M an..3 M an..3 8 8 = Discount/charge (No other codes may be used) 5004 Amount R n..18 R n..10 999... Amount (max. 2 decimal places) Example: MOA+8:100 (Discount DKK 100) Page 23 of 43
LIN 030/033 R LIN: DETAIL LINE Invoices must contain at least one detail line. 030 DETAIL LINE M a3 M a3 LIN Detail line 1082 DETAIL LINE NUMBER R n..6 R n..6 99.. Consecutive numbering of the LIN segments 1229 PROCESS CODE, CODED N an..3 N N/A C212 PRODUCT IDENTIFICATION D R If the EAN numbers are not applicable, the supplier's "product number" must be used (PIA) 7140 Product number R an..35 R an..14 999.. EAN no. of one delivery unit 7143 Product number type, coded R an..3 R an..3 EN EN = EAN no. (EAN-8, EAN-13, DUN-14) Example: LIN+1++5712342225366:EN Page 24 of 43
PIA 031/034 R PIA: ADDITIONAL PRODUCT INFORMATION Must always be used if the product number exists. The number is not a substitute for the EAN code in LIN, C212-7140. 031 ADDITIONAL PRODUCT INFORMATION 4347 FUNCTION OF PRODUCT IDENTIFICATION HANCOM F GROUP INFORMATION DESCRIPTION/EXPLANATION M a3 M a3 PIA Additional product information segment M an..3 M an..3 1 Additional product information C212 PRODUCT INFORMATION M M 7140 Product no. R an..35 R an..10 XXX... "Product number" 7143 Product no. type R an..3 R an..3 SA SA = Supplier's "product number" Example: PIA+1+21PT166A:SA Page 25 of 43
IMD 032/035 R IMD: DESCRIPTION OF ARTICLE Description of artilcle in standardised or optional format Must always be used SEGMENT HANCOM F GROUP information DESCRIPTION/EXPLANATION ELE 032 DESCRIPTION OF ARTICLE M a3 M a3 IMD Description of article segment 7077 DESCRIPTION OF ARTICLE TYPE C an..3 N/A 7081 NATURE OF ARTICLE C an..3 N/A C273 DESCRIPTION OF ARTICLE C 7009 Description of article, coded C an..7 N/A 1131 Code list qualifier C an..3 N/A 3055 Authority in charge C an..3 N/A 7008 Description of article M an..35 M an..35 Actual description of article Example: IMD+++::: SJ-MD150EG MINIDISC Page 26 of 43
QTY 034/037 R QTY: QUANTITY Indication of quantity information 034 QUANTITY M a3 M a3 QTY Quantity segment C186 QUANTITY INFORMATION M M 6063 Quantity qualifier M an..3 M an..3 47 47 = Invoiced quantity 6060 Quantity M n..15 M n..7 99.. Invoiced quantity (units) Example: QTY+47:1 Page 27 of 43
MOA 039/042 R MOA: AMOUNT Indication of product line amount 039 AMOUNT M a3 M a3 MOA Amount segment C516 AMOUNT M M 5025 Amount qualifier M an..3 M an..3 203 203 = Product line amount after discounts/charges 5004 Amount R n..18 R n..12 999... Product line amount after discounts/charges exclusive of VAT (max. 2 decimal places) Example: MOA+203:514.25 (DKK 514,25; DKK 514,00 transmitted as 514) Page 28 of 43
PRI 044/047 R PRI: PRICE INFORMATION Indication of product price which is always exclusive of VAT. The price is usually inclusive of excise duty, if any. If the price indicated is exclusive of excise duty, the excise duty of the invoice line must be indicated in the succeeding TAX/MOA-segments (ND 18/19). SEGMENT DESCRIPTION ELE- MENT 044 PRICE INFORMATION M a3 M a3 PRI Price information segment C509 PRICE INFORMATION R R 5125 Price qualifier M an..3 M an..3 AAB AAB = Gross price exclusive of VAT before discounts/charges. 5125 Price qualifier M an..3 M an..3 AAA AAA = Gross net price exclusive of VAT after discounts/charges. 5118 Price R n..15 R n..10 999... Indication of relevant price information (max. 4 decimal places) 5375 Price type, coded O an..3 N N/A 5387 Price type, qualifier O an..3 N N/A 5284 Basis of unit price D n..9 N N/A Example: PRI+AAB:82.25 Page 29 of 43
TAX 052/057 B TAX: TAXATION INFORMATION Indication of duties, if the price in the PRI segment (ND17) is exclusive of excise duty. 052 TAXATION INFORMATION M a3 M a3 TAX Taxation information 5283 TAXATION QUALIFIER M an..3 M an..3 7 7 = Duty C241 TAX AND DUTY TYPES D 5153 Tax/duty types, coded O an..3 R an..3 GST GST = Duty on products Example : TAX+7+GST Page 30 of 43
MOA 053/058 B MOA: AMOUNTS Used when duties are expressed as specific amounts. Applies only to the product line in question. 053 AMOUNT M a3 M a3 MOA Amount segment C516 AMOUNT M M 5025 Amount type, qualifier M an..3 M an..3 124 124 = Specified duty 5004 Amount R n..18 R n..10 999... Amount (max. 2 decimal places) Example: MOA+124:112.5 Page 31 of 43
ALC 056/061 B ALC: DISCOUNTS AND CHARGES Used to indicate the discounts/charges of each individual invoice line. An ALC group must be used for each discount/charge. SEGMENT DESCRIPTION ELE- MENT 023 DISCOUNTS AND CHARGES M a3 M a3 ALC Discount/charge segment 5463 DISCOUNT/CHARGE QUALIFIER M an..3 M an..3 A A = Discount C = Charge C552 DISCOUNT/CHARGE INFORMATION 1230 Discount charge number O an..35 N N/A 4471 METHOD OF SETTLEMENT D an..3 N N/A 1227 CALCULATION SEQUENCE D an..3 N N/A C214 IDENTIFICATION OF D D SERVICES 7161 Services, coded M an..3 M an..3 XXX FC = Freight charge DI = Discount 1131 Code list, qualifier O N N/A 3055 Authority in charge O N N/A Example: ALC+C++++DI (Discount, amount expressed in MOA) Page 32 of 43
MOA 060/065 B MOA: AMOUNT Used when discounts/charges are expressed in specific amounts. Applies only to the product line in question. 060 AMOUNT M a3 M a3 MOA Amount segment C516 AMOUNT M M 5025 Amount type, qualifier M an..3 M an..3 8 8 = Discounts/charges (ALC 5463 A: Discount, C = Charge) 5004 Amount R n..18 R n..10 999... Amount (max. 2 decimal places) Example: MOA+8:112.5 Page 33 of 43
UNS 065/070 B UNS: SECTION CONTROL Used to separate the detail and amount sections of the message. 065 SECTION CONTROL M a3 M a3 UNS Section control segment 0081 SECTION IDENTIFIER M a1 M a1 S Separator of detail and amount sections Example: UNS+S Page 34 of 43
CNT 066/ 071 R CNT: CONTROL TOTALS Indication of number of LIN segments 066 CONTROL TOTALS M a3 M a3 CNT Control totals segment C270 CONTROL M M 6069 Control qualifier M an..3 M an..3 2 2 = number of LIN segments in the message 6066 Control value M n..18 M n..4 9...9 Number of lines Example: CNT+2:16 (16 LIN segments) Page 35 of 43
MOA 067/072 R MOA 067 R MOA 067 B MOA 067 B MOA: AMOUNTS Indication of the total amount of the invoice. 067 AMOUNT M a3 M a3 MOA Amount segment C516 AMOUNT M M 5025 Amount type, qualifier M an..3 M an..3 9 9 = Amount payable 5004 Amount R n..18 R n..10 999... Total amount of the invoice (max. 2 decimal places) 067 AMOUNT M a3 M a3 MOA Amount segment C516 AMOUNT M M 5025 Amount type, qualifier M an..3 M an..3 79 79 = Total product line amount 5004 Amount R n..18 R n..10 999... Product line amount of the invoice (max. 2 decimal places) 067 AMOUNT M a3 M a3 MOA Amount segment C516 AMOUNT M M 5025 Amount type, qualifier M an..3 M an..3 125 125 = amount subject to tax/duty 5004 Amount R n..18 R n..10 999... Amount subject to VAT of the invoice (max. 2 decimal places) Page 36 of 43
067 AMOUNT M a3 M a3 MOA Amount segment C516 AMOUNT M M 5025 Amount type, qualifier M an..3 M an..3 176 176 =Total amount of tax/duty 5004 Amount R n..18 R n..10 999... Invoice amount of the invoice (max. 2 decimal places) Examples: MOA+9:2697 MOA+79:2157.57 MOA+125:2157.57 MOA+176:539.39 Page 37 of 43
MOA 067/072 B MOA 067 B MOA: AMOUNT Used to indicate the total of the discounts and charges of the invoice. (The amounts may be rounded off only if the consignor so requires) 067 AMOUNT M a3 M a3 MOA Amount segment C516 AMOUNT M M 5025 Amount type, qualifier M an..3 M an..3 131 131 = Total of discounts/charges 5004 Amount R n..18 R n..10 999... Total of discounts/charges (discounts are indicated with sign only when the total is in the negative ) (max. 2 decimal places) 067 AMOUNT M a3 M a3 MOA Amount segment C516 AMOUNT M M 5025 Amount type, qualifier M an..3 M an..3 165 165 = adjusted amount 5004 Amount R n..18 R n..10 999... Rounding off Examples: MOA+131:250 (total charge DKK 250,-) MOA+165;0.04 Page 38 of 43
7 UNT 075/080 R UNT: MESSAGE - END 075 END OF MESSAGE M a3 M a3 UNT End segment 0074 NUMBER OF SEGMENTS IN THE MESSAGE M n..6 M n..6 999999 Number of segments in the message including UNH & UNT 0062 MESSAGE REFERENCE NO. M an..14 M an..14 XXX... Same reference no. as in UNH/DE 0062 Example: UNT+53+1 Page 39 of 43
UNZ R UNZ: DELIVERY SEGMENT - END End of delivery 008 END OF DELIVERY M a3 M a3 UNZ End of delivery segment 0036 CONTROL NUMBER M n..6 M n..6 999999 Number of messages, i.e. number of UNHs in the transmission 0020 DELIVERY REFERENCE NO. M an..14 M an..14 XXX... Same reference no. as in UNB/DE 0020 Example: UNZ+13+ND970401 Page 40 of 43
Invoice example: UNB+UNOC:3+5790000099999:14+5790000259335:14+030220:2025+NO1' UNH+1+INVOIC:D:93A:UN:EAN007' BGM+380+1022235' DTM+137:20030220:102' DTM+35:20030220:102' RFF+DQ:439995' DTM+171:20030220:102' NAD+IV+5790000259335::9' NAD+DP+5790000858521::9' NAD+SU+5790000099999::9' TAX+7+VAT+++:::25.00+S' ALC+C++++FC' MOA+8:60.00' LIN+1++5706470015272:EN' PIA+1+301770:SA' IMD+++:::Test item 1 text' QTY+47:10.00' MOA+203:510.00' PRI+AAB:51.00 UNS+S' CNT+2:2' MOA+9:712.50' MOA+79:510.00' MOA+125:570.00' MOA+176:142.50' MOA+131:60.00' UNT+26+1' UNZ+1+NO1' Page 41 of 43
The same as credit-note: Just change: BGM+380+1022235' to BGM+381+1022235' Page 42 of 43