Copyright © 2004 OASIS
$Date: 2004/09/09 01:30:40 $(UTC)
Contents
This formatting specification describes a rendering of the UBL Invoice document model according to the United Nations Layout Key for Trade Documents guidelines for application for the 380 invoice form:
380 Commercial Invoice: Document claiming payment for goods supplied under conditions agreed between seller and buyer.
For a list of all formatting specifications and an overview of the documentation conventions, please visit the formatting specification home page.
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.
The following is an example rendering that illustrates the position and decoration of the information items found in an instance of the document type:
PDF printable format (A4 page size)
PDF printable format (US-letter page size)
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.
The following namespaces are mapped to the prefixes in the expressions below:
xmlns:in="urn:oasis:names:specification:ubl:schema:xsd:Invoice-1.0"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0"
This information shows up in the window-title bar of the HTML browser, and in the document title supported by some XSL-FO processors.
Header information is associated with the form as a whole, not to the individual items of goods.
Box Label: "Seller"
Table 1. XPath information
XPath addresses |
/in:Invoice/cac:SellerParty/cac:Party/cac:PartyName/cbc:Name |
/in:Invoice/cac:SellerParty/cac:Party/cac:Address/cbc:BuildingNumber |
/in:Invoice/cac:SellerParty/cac:Party/cac:Address/cbc:StreetName |
/in:Invoice/cac:SellerParty/cac:Party/cac:Address/cbc:CityName |
/in:Invoice/cac:SellerParty/cac:Party/cac:Address/cbc:CountrySubentity |
/in:Invoice/cac:SellerParty/cac:Party/cac:Address/cac:CountrySubentityCode |
/in:Invoice/cac:SellerParty/cac:Party/cac:Address/cbc:PostalZone |
/in:Invoice/cac:SellerParty/cac:Party/cac:Address/cac:Country/cbc: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.
Note that only one of cbc:CountrySubentity and cac:CountrySubentityCode need be used, with preference to cbc:CountrySubentity if it exists.
Box Label: "Invoice number"
This number is a unique number assigned to the invoice by the seller.
Box Label: "Invoice date (tax point)"
This field states the date of the invoice for tax purposes
Box Label: "Seller’s reference"
This field provides a seller assigned reference to the order corresponding to this invoice.
Box Label: "Buyer’s reference"
This field provides the buyer's reference to the original order.
Box Label: "Purchase order date"
This field provides a location for alternative reference information.
Box Label: "Purchase order date"
This fields provides the issue date of the original order
Box Label: "Consignee"
Table 22. XPath information
XPath addresses |
/in:Invoice/cac:BuyerParty/cac:Party/cac:PartyName/cbc:Name |
/in:Invoice/cac:Delivery/cac:DeliveryAddress/cbc:BuildingNumber |
/in:Invoice/cac:Delivery/cac:DeliveryAddress/cbc:StreetName |
/in:Invoice/cac:Delivery/cac:DeliveryAddress/cbc:CityName |
/in:Invoice/cac:Delivery/cac:DeliveryAddress/cbc:CountrySubentity |
/in:Invoice/cac:Delivery/cac:DeliveryAddress/cac:CountrySubentityCode |
/in:Invoice/cac:Delivery/cac:DeliveryAddress/cbc:PostalZone |
/in:Invoice/cac:Delivery/cac:DeliveryAddress/cac:Country/cbc:Name |
These fields are used to provide the name and address of the receiver of the goods involved in the transaction.
Note that only one of cbc:CountrySubentity and cac:CountrySubentityCode need be used, with preference to cbc:CountrySubentity if it exists.
Box Label: "Buyer"
Table 25. XPath information
XPath addresses |
/in:Invoice/cac:BuyerParty/cac:Party/cac:PartyName/cbc:Name |
/in:Invoice/cac:BuyerParty/cac:Party/cac:Address/cbc:BuildingNumber |
/in:Invoice/cac:BuyerParty/cac:Party/cac:Address/cbc:StreetName |
/in:Invoice/cac:BuyerParty/cac:Party/cac:Address/cbc:CityName |
/in:Invoice/cac:BuyerParty/cac:Party/cac:Address/cbc:CountrySubentity |
/in:Invoice/cac:BuyerParty/cac:Party/cac:Address/cac:CountrySubentityCode |
/in:Invoice/cac:BuyerParty/cac:Party/cac:Address/cbc:PostalZone |
/in:Invoice/cac:BuyerParty/cac:Party/cac:Address/cac:Country/cbc:Name |
These fields are used to provide the name and address of the buyer of the goods involved in the transaction.
Note that only one of cbc:CountrySubentity and cac:CountrySubentityCode need be used, with preference to cbc:CountrySubentity if it exists.
Box Label: "Buyer bank"
Table 28. XPath information
XPath addresses |
/in:Invoice/cac:PaymentMeans/cac:PayerFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cbc:Name |
/in:Invoice/cac:PaymentMeans/cac:PayerFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cac:Address/cbc:CityName |
/in:Invoice/cac:PaymentMeans/cac:PayerFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cac:Address/cbc:CountrySubentity |
/in:Invoice/cac:PaymentMeans/cac:PayerFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cac:Address/cac:CountrySubentityCode |
/in:Invoice/cac:PaymentMeans/cac:PayerFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cac:Address/cbc:PostalZone |
/in:Invoice/cac:PaymentMeans/cac:PayerFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cac:Address/cac:Country/cbc:Name |
These fields provide the name and address of the buyer's bank.
Note that only one of cbc:CountrySubentity and cac:CountrySubentityCode need be used, with preference to cbc:CountrySubentity if it exists.
Transportation fields are header-like information and are applicable to the entire order.
Box Label: "Mode of transport"
At this time this field is not being used in the invoice.
Box Label: "Date of despatch"
At this time this field is not being used in the invoice.
Box Label: "Means of transport"
At this time this field is not being used in the invoice.
Box Label: "Place of despatch"
At this time this field is not being used in the invoice.
Box Label: "Vessel/flight No."
At this time this field is not being used in the invoice.
Box Label: "Port of loading"
At this time this field is not being used in the invoice.
Box Label: "Port of discharge"
At this time this field is not being used in the invoice.
The financial information provides details of the buyer and seller account details.
Box Label: "Terms of payment"
Table 52. XPath information
XPath addresses |
/in:Invoice/cac:PaymentTerms/cac:PenaltyPeriod/cbc:DurationMeasure |
/in:Invoice/cac:PaymentTerms/cac:PenaltyPeriod/cbc:DurationMeasure/@measureUnitCode |
/in:Invoice/cac:PaymentTerms/cac:PenaltyPeriod/cbc:StartDateTime |
/in:Invoice/cac:PaymentTerms/cbc:Note |
These fields provide information relating to the payment terms.
Box Label: "Currency of payment"
This specifies the payment currency for the entire invoice.
Box Label: "Seller’s bank"
Table 58. XPath information
XPath addresses |
/in:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cbc:Name |
/in:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cac:Address/cbc:BuildingNumber |
/in:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cac:Address/cbc:StreetName |
/in:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cac:Address/cbc:CityName |
/in:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cac:Address/cbc:CountrySubentity |
/in:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cac:Address/cac:CountrySubentityCode |
/in:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cac:Address/cbc:PostalZone |
/in:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cac:Address/cac:Country/cbc:Name |
These fields provide the name and address of the seller's bank.
Note that only one of cbc:CountrySubentity and cac:CountrySubentityCode need be used, with preference to cbc:CountrySubentity if it exists.
Box Label: "Sort code"
Table 61. XPath information
XPath address |
/in:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:ID |
This field contains the sort code for the seller's bank.
Box Label: "Account number"
Table 64. XPath information
XPath address |
/in:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cac:ID |
This field contains the seller's account number.
The consignment information holds generic details and totals relating to all the goods items in the invoice.
Box Label: "Shipping marks; container number"
At this time this field is not being used in the invoice.
Box Label: "No. and kind of packages; description of goods"
At this time this field is not being used in the Invoice.
Box Label: "Total gross weight (kg)"
At this time this field is not being used in the Invoice.
Box Label: "Total cube(m3)"
At this time this field is not being used in the Invoice.
Line item information is associated with the individual item of goods in the invoice
Box Label: ""
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.
Box Label: "Description"
This provides a free text description of the line item.
Box Label: "Country of origin"
Table 83. XPath information
XPath address |
/in:Invoice/cac:InvoiceLine/cac:Item/cac:OriginCountry/cbc:Name |
This field is used to provide to country of origin for the line item.
Box Label: "Commodity code"
Table 86. XPath information
XPath address |
/in:Invoice/cac:InvoiceLine/cac:Item/cac:CommodityClassification/cac:CommodityCode |
This field is used to provide the commodity code for the line item.
Box Label: "Quantity"
This fields states the number of items invoiced for the line item.
Box Label: "Unit price"
Table 92. XPath information
XPath address |
/in:Invoice/cac:InvoiceLine/cac:BasePrice/cbc:PriceAmount |
This field is used to specify the unit price of the line item.
Box Label: "Amount"
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.
Summary information is associated to the entire invoice and not to any individual line item.
Box Label: "Clauses and / or Notes"
This notes field is used for any free text information that relates to the entire invoice, for specific invoice clauses or declarations.
Box Label: "Total amount"
Two data fields populate this one form field: the currency and the total amount.
Box Label: ""
Two data fields populate this one form field: the currency and the total amount.
NB The total amount is the total of all the individual line items and is not calculated it will be transmitted
Box Label: "Total tax amount"
This fields provides details of any tax associated to the entire invoice, this amount will not be calculated it will be transmitted
Box Label: ""
This fields provides details of any tax associated to line-items in the invoice, this amount will not be calculated it will be transmitted
Box Label: "Total amount due"
Table 112. XPath information
XPath addresses |
/in:Invoice/in:InvoiceCurrencyCode |
/in:Invoice/cac:LegalTotal/cbc:TaxInclusiveTotalAmount |
Two data fields populate this one form field: the currency and the total amount.
This fields specifies the currency of the total amount due.
Box Label: ""
Two data fields populate this one form field: the currency and the total amount.
This fields specifies the amount to be paid and will not be calculated it will be transmitted.
Box Label: "Name of signatory"
Table 117. XPath information
XPath address |
/in:Invoice/cac:SellerParty/cac:Party/cac:Contact/cbc:Name |
This fields identified the name of the signatory.
Box Label: "Place and date of issue"
Table 120. XPath information
XPath addresses |
/in:Invoice/cac:SellerParty/cac:Party/cac:Address/cbc:CityName |
/in:Invoice/cac:SellerParty/cac:Party/cac:Address/cbc:CountrySubentity |
/in:Invoice/cac:SellerParty/cac:Party/cac:Address/cac:CountrySubentityCode |
/in:Invoice/cbc:IssueDate |
The above fields provide information relating to the date and place of issue of the invoice.
Note that only one of cbc:CountrySubentity and cac:CountrySubentityCode need be used, with preference to cbc:CountrySubentity if it exists.
The continuation page comprises only a copy of the document identification information described in Section 3, “Main document and party information” and room for additional line item entries described in Section 8, “Line item information”. Alternative box representations are described below:
Box Label: "Item / References"
Table 125. XPath information
XPath addresses |
/in:Invoice/cac:InvoiceLine/cac:OrderLineReference/cac:BuyersLineID |
/in:Invoice/cac:InvoiceLine/cac:OrderLineReference/cac:SellersLineID |
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.
Box Label: "Description"
This provides a free text description of the line item.
Box Label: "Country of origin"
Table 131. XPath information
XPath address |
/in:Invoice/cac:InvoiceLine/cac:Item/cac:OriginCountry/cbc:Name |
This field is used to provide to country of origin for the line item.
Box Label: "Commodity code"
Table 134. XPath information
XPath address |
/in:Invoice/cac:InvoiceLine/cac:Item/cac:CommodityClassification/cac:CommodityCode |
This field is used to provide the commodity code for the line item.
Box Label: "Quantity"
This field states the number of items ordered for the line item.
Box Label: "Unit price"
Table 140. XPath information
XPath address |
/in:Invoice/cac:InvoiceLine/cac:BasePrice/cbc:PriceAmount |
This field is used to specify the unit price of the line item.
Box Label: "Amount"
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.