UN layout formatting specification for UBL Order instances

$Date: 2003/11/18 15:40:38 $(UTC)


Table of Contents

1. Purchase order formatting specification
1.1. Status
1.2. Example renderings and implementations
1.3. Layout order and information
1.4. Namespaces
2. Miscellaneous information
2.1. Document header information
3. Party information
3.1. Seller
3.2. Purchase order number
3.3. Date
3.4. Seller's reference (Quote no.)
3.5. Buyer's reference
3.6. Other reference (Contract no.)
3.7. Consignee
3.8. Buyer
3.9. Buyer's bank
3.10. Country of origin
3.11. Country of destination
4. Delivery and transport
4.1. Mode of transport
4.2. Date of despatch
4.3. Means of transport
4.4. Place of despatch
4.5. Place of loading
4.6. Place of discharge
4.7. Place of delivery
4.8. Terms of delivery
4.9. Location
4.10. Special terms
4.11. Terms of payment
4.12. Currency of payment
5. Consignment information
5.1. Shipping marks; container Nr.
5.2. Number and kind of packages; description of goods
5.3. Total gross weight (Kg)
5.4. Cube m3
5.5. Total net weight (Kg)
6. Line item information
6.1. Item / References
6.2. Description
6.3. Country of origin
6.4. Commodity code
6.5. Quantity
6.6. Unit price
6.7. Amount
7. Summary information
7.1. Notes
7.2. Total amount
7.3. Name of signatory
7.4. Place and date of issue
7.5. Signature

1.  Purchase order formatting specification

This formatting specification describes a rendering of the UBL Order document model according to the United Nations Layout Key for Trade Documents guidelines for application for the 220 Order form:

  • 220 Order: Document by means of which a buyer initiates a transaction with a seller involving the supply of goods as specified, according to conditions set out in an offer, or otherwise known to the buyer.

For a list of all formatting specifications and an overview of the documentation conventions, please visit the formatting specification home page.

1.1.  Status

This specification has no formal status at this time. It should not be considered a reference interpretation of UBL documents. Feedback is sought from users of stylesheets that implement this formatting specification regarding suggestions for change for consideration by the OASIS UBL committees for incorporation into these formatting specifications.

Presentational semantics may never be formalized or normative in the UBL project due to differing international requirements and conventions for the presentation of information found in business documents. This document contains only examples from a few of what will probably be many available UBL stylesheet libraries.

1.2.  Example renderings and implementations

Example rendering:

1.3.  Layout order and information

Items in this formatting specification are ordered roughly from the laid out fields on the form in the order left-to-right, top to bottom.

Certain descriptions are verbatim quotes from the United Nations guidelines document.

Important: the rendering of a number of fields is very simplified, reflecting a Western European interpretation of a subset of fields (as in names and addresses). User requirements need to be better understood for the level of granularity in these formatting specifications.

1.4.  Namespaces

The following namespaces are mapped to the prefixes in the expressions below:

  • xmlns:po="urn:oasis:names:tc:ubl:Order:1:0-beta"

  • xmlns:cat="urn:oasis:names:tc:ubl:CommonAggregateTypes:1:0-beta"

2.  Miscellaneous information

The following information is unrelated to the visible fields of the form.

2.1.  Document header information

Table 1. XPath information

XPath addresses
/​po:Order/​cat:BuyersID
/​po:Order/​cat:IssueDate

This information shows up in the window-title bar of the HTML browser, and in the document title supported by some XSL-FO processors.

3. Party information

Header information is associated with the form as a whole, not to the individual items of goods.

3.1. Seller

Table 2. XPath information

XPath addresses
/​po:Order/​cat:SellerParty/​cat:Party/​cat:PartyName/​cat:Name
/​po:Order/​cat:SellerParty/​cat:Party/​cat:Address/​cat:StreetName
/​po:Order/​cat:SellerParty/​cat:Party/​cat:Address/​cat:CityName
/​po:Order/​cat:SellerParty/​cat:Party/​cat:Address/​cat:CountrySubentity
/​po:Order/​cat:SellerParty/​cat:Party/​cat:Address/​cat:PostalZone
/​po:Order/​cat:SellerParty/​cat:Party/​cat:Address/​cat:Country/​cat:Name

This field is intended to show the name and address of the sender of goods or the originator of the documents, as the case may be.

3.2. Purchase order number

Table 3. XPath information

XPath address
/​po:Order/​cat:BuyersID

This number is a unique number assigned to the order by the buyer.

3.3. Date

Table 4. XPath information

XPath address
/​po:Order/​cat:IssueDate

This field states the date of the order.

3.4. Seller's reference (Quote no.)

Table 5. XPath information

XPath address
/​po:Order/​cat:SellersID

This field provides a seller assigned reference to the order.

3.5. Buyer's reference

Table 6. XPath information

XPath address
/​po:Order/​cat:BuyersID

This field provides the buyer's reference to the order.

3.6. Other reference (Contract no.)

Table 7. XPath information

XPath address
/​po:Order/​po:ContractDocumentReference/​cat:ID

This field provides the contract reference if applicable.

3.7. Consignee

Currently the contents of this field is the same as the Section 3.8, “Buyer” field.

3.8. Buyer

Table 8. XPath information

XPath addresses
/​po:Order/​cat:BuyerParty/​cat:Party/​cat:PartyName/​cat:Name
/​po:Order/​cat:BuyerParty/​cat:Party/​cat:Address/​cat:StreetName
/​po:Order/​cat:BuyerParty/​cat:Party/​cat:Address/​cat:CityName
/​po:Order/​cat:BuyerParty/​cat:Party/​cat:Address/​cat:CountrySubentity
/​po:Order/​cat:BuyerParty/​cat:Party/​cat:Address/​cat:PostalZone
/​po:Order/​cat:BuyerParty/​cat:Party/​cat:Address/​cat:Country/​cat:Name

These fields are used to provide the name and address of the buyer of the goods involved in the transaction.

3.9. Buyer's bank

At this time this field is not being used in the order.

3.10. Country of origin

At this time this field is not being used in the order.

3.11. Country of destination

Table 9. XPath information

XPath address
/​po:Order/​po:DestinationCountry/​cat:Name

This fields provides the name of the destination country.

4. Delivery and transport

Transportation fields are header-like information and are applicable to the entire order.

4.1. Mode of transport

At this time this field is not being used in the order.

4.2. Date of despatch

At this time this field is not being used in the order.

4.3. Means of transport

At this time this field is not being used in the order.

4.4. Place of despatch

At this time this field is not being used in the order.

4.5. Place of loading

At this time this field is not being used in the order.

4.6. Place of discharge

At this time this field is not being used in the order.

4.7. Place of delivery

At this time this field is not being used in the order.

4.8. Terms of delivery

Table 10. XPath information

XPath address
/​po:Order/​cat:DeliveryTerms/​cat:ID

This fields provides the INCOTERM code for the terms of delivery.

4.9. Location

Table 11. XPath information

XPath address
/​po:Order/​cat:DeliveryTerms/​cat:RelevantLocation

This field provides the location name (if relevant) associated to the delivery terms.

4.10. Special terms

Table 12. XPath information

XPath address
/​po:Order/​cat:DeliveryTerms/​cat:SpecialTerms

This field provides free text description of special conditions relating to the delivery terms.

4.11. Terms of payment

At this time this field is not being used in the order.

4.12. Currency of payment

Table 13. XPath information

XPath address
/​po:Order/​po:TransactionCurrencyCode

This specifies the payment currency for the entire order.

5. Consignment information

The consignment information holds generic details and totals relating to all the goods items in the order.

5.1. Shipping marks; container Nr.

At this time this field is not being used in the order.

5.2. Number and kind of packages; description of goods

At this time this field is not being used in the order.

5.3. Total gross weight (Kg)

Table 14. XPath information

XPath address
/​po:Order/​cat:GrossWeightMeasure

This field provides the gross weight of the order (not the shipment as it is not known at the order stage).

5.4. Cube m3

Table 15. XPath information

XPath address
/​po:Order/​cat:GrossVolumeMeasure

This field provides the gross volume of the order (not the shipment as it is not known at the order stage).

5.5. Total net weight (Kg)

Table 16. XPath information

XPath address
/​po:Order/​cat:NetWeightMeasure

This field provides the net weight of the order (not the shipment as it is not known at the order stage).

6. Line item information

Line item information is associated with the individual item of goods in the order

6.1. Item / References

Table 17. XPath information

XPath addresses
/​po:Order/​cat:OrderLine/​cat:LineItem/​cat:BuyersID
/​po:Order/​cat:OrderLine/​cat:LineItem/​cat:SellersID

The first reference is the buyer's assigned reference to the line item.

The second reference is the seller's assigned reference to the line item.

6.2. Description

Table 18. XPath information

XPath address
/​po:Order/​cat:OrderLine/​cat:LineItem/​cat:Item/​cat:Description

This provides a free text description of the line item.

6.3. Country of origin

Table 19. XPath information

XPath address
/​po:Order/​cat:OrderLine/​cat:LineItem/​cat:Item/​cat:OriginCountry/​cat:Name

This field is used to provide to country of origin for the line item.

6.4. Commodity code

Table 20. XPath information

XPath address
/​po:Order/​cat:OrderLine/​cat:LineItem/​cat:Item/​cat:CommodityClassification/​cat:CommodityCode

This field is used to provide the commodity code for the line item.

6.5. Quantity

Table 21. XPath information

XPath address
/​po:Order/​cat:OrderLine/​cat:LineItem/​cat:Quantity

This field states the number of items ordered for the line item.

6.6. Unit price

Table 22. XPath information

XPath address
/​po:Order/​cat:OrderLine/​cat:LineItem/​cat:Item/​cat:BasePrice/​cat:PriceAmount

This field is used to specify the unit price of the line item.

6.7. Amount

Table 23. XPath information

XPath address
/​po:Order/​cat:OrderLine/​cat:LineItem/​cat:LineExtensionAmount

This field states the actual line item amount which will be quantity multiplied by the unit price, the result is not calculated it will be transmitted.

7. Summary information

Summary information is associated to the entire order and not to any individual line item.

7.1. Notes

Table 24. XPath information

XPath address
/​po:Order/​cat:Note

This notes field is used for any free text information that relates to the entire order.

7.2. Total amount

Table 25. XPath information

XPath addresses
/​po:Order/​po:TransactionCurrencyCode
/​po:Order/​cat:LineExtensionTotalAmount

Two data fields populate this one form field: the currency and the total amount.

The total amount is the total of all the individual line items and is not calculated it will be transmitted.

7.3. Name of signatory

Table 26. XPath information

XPath address
/​po:Order/​cat:BuyerParty/​cat:Party/​cat:Contact/​cat:Name

This fields identified the name of the signatory.

7.4. Place and date of issue

Table 27. XPath information

XPath addresses
/​po:Order/​cat:BuyerParty/​cat:Party/​cat:Address/​cat:CityName
/​po:Order/​cat:BuyerParty/​cat:Party/​cat:Address/​cat:CountrySubentity
/​po:Order/​cat:IssueDate

The above fields provide information relating to the date and place of issue of the order.

7.5. Signature

This field is not currently being filled automatically as it is a manual entry.