Office-oriented formatting specification for UBL Invoice instances

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


Table of Contents

1. Invoice 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. Header information
3.1. Invoice number
3.2. Invoice Issue Date
3.3. Taxpoint Date
3.4. Purchase Order No.
3.5. Sales Order No.
3.6. Buyer
3.7. Seller
3.8. Billing Contact
3.9. Delivery address
3.10. Delivery Date
4. Line item information
4.1. Line no.
4.2. Part number
4.3. Description
4.4. Quantity U/M
4.5. Unit price
4.6. Extended Amount
5. Summary information
5.1. Tax Regime
5.2. Tax Type
5.3. Tax Rate
5.4. Tax Amount At Rate
5.5. Total Tax Amount
5.6. Total Taxable
5.7. Total Payable
5.8. Payment Terms

1.  Invoice formatting specification

This formatting specification describes a rendering of an instance of the UBL Invoice document model according to a conceptual office-oriented layout.

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 renderings:

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.

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:

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

    in = "urn:oasis:names:tc:ubl:Invoice: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
/​in:Invoice/​cat:ID
/​in:Invoice/​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. Header information

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

3.1. Invoice number

Table 2. XPath information

XPath address
/​in:Invoice/​cat:ID

3.2. Invoice Issue Date

Table 3. XPath information

XPath address
/​in:Invoice/​cat:IssueDate

3.3.  Taxpoint Date

Table 4. XPath information

XPath address
/​in:Invoice/​in:TaxPointDate

3.4. Purchase Order No.

Table 5. XPath information

XPath address
/​in:Invoice/​cat:OrderReference/​cat:BuyersID

3.5. Sales Order No.

Table 6. XPath information

XPath address
/​in:Invoice/​cat:OrderReference/​cat:SellersID

3.6. Buyer

Table 7. XPath information

XPath addresses
/​in:Invoice/​cat:BuyerParty/​cat:Party/​cat:PartyName/​cat:Name
/​in:Invoice/​cat:BuyerParty/​cat:Party/​cat:Address/​cat:StreetName
/​in:Invoice/​cat:BuyerParty/​cat:Party/​cat:Address/​cat:CityName
/​in:Invoice/​cat:BuyerParty/​cat:Party/​cat:Address/​cat:CountrySubentityCode
/​in:Invoice/​cat:BuyerParty/​cat:Party/​cat:Address/​cat:PostalZone

3.7. Seller

Table 8. XPath information

XPath addresses
/​in:Invoice/​cat:SellerParty/​cat:Party/​cat:PartyName/​cat:Name
/​in:Invoice/​cat:SellerParty/​cat:Party/​cat:Address/​cat:StreetName
/​in:Invoice/​cat:SellerParty/​cat:Party/​cat:Address/​cat:CityName
/​in:Invoice/​cat:SellerParty/​cat:Party/​cat:Address/​cat:CountrySubentityCode
/​in:Invoice/​cat:SellerParty/​cat:Party/​cat:Address/​cat:PostalZone

3.8. Billing Contact

Table 9. XPath information

XPath addresses
/​in:Invoice/​cat:SellerParty/​cat:AccountsContact/​cat:Name
/​in:Invoice/​cat:SellerParty/​cat:AccountsContact/​cat:Telephone

3.9. Delivery address

Table 10. XPath information

XPath addresses
/​in:Invoice/​cat:Delivery/​cat:DeliverToAddress/​cat:StreetName
/​in:Invoice/​cat:Delivery/​cat:DeliverToAddress/​cat:BuildingName
/​in:Invoice/​cat:Delivery/​cat:DeliverToAddress/​cat:CityName
/​in:Invoice/​cat:Delivery/​cat:DeliverToAddress/​cat:CountrySubentityCode

3.10. Delivery Date

Table 11. XPath information

XPath address
/​in:Invoice/​cat:Delivery/​cat:ActualDeliveryDateTime

4. Line item information

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

4.1. Line no.

Table 12. XPath information

XPath address
/​in:Invoice/​cat:InvoiceLine/​cat:ID

4.2.  Part number

Table 13. XPath information

XPath address
/​in:Invoice/​cat:InvoiceLine/​cat:Item/​cat:SellersItemIdentification/​cat:ID

4.3. Description

Table 14. XPath information

XPath address
/​in:Invoice/​cat:InvoiceLine/​cat:Item/​cat:Description

4.4. Quantity U/M

Table 15. XPath information

XPath addresses
/​in:Invoice/​cat:InvoiceLine/​cat:InvoicedQuantity
/​in:Invoice/​cat:InvoiceLine/​cat:InvoicedQuantity/​@unitCode

4.5. Unit price

Table 16. XPath information

XPath addresses
/​in:Invoice/​cat:InvoiceLine/​cat:Item/​cat:BasePrice/​cat:PriceAmount/​@currencyID
/​in:Invoice/​cat:InvoiceLine/​cat:Item/​cat:BasePrice/​cat:PriceAmount

4.6. Extended Amount

Table 17. XPath information

XPath addresses
/​in:Invoice/​cat:InvoiceLine/​cat:LineExtensionAmount/​@currencyID
/​in:Invoice/​cat:InvoiceLine/​cat:LineExtensionAmount

5. Summary information

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

5.1.  Tax Regime

This field is not filled in at this time.

5.2.  Tax Type

Table 18. XPath information

XPath address
/​in:Invoice/​cat:TaxTotal/​cat:TaxSubTotal/​cat:TaxCategory/​cat:TaxScheme/​cat:TaxTypeCode

5.3.  Tax Rate

Table 19. XPath information

XPath address
/​in:Invoice/​cat:TaxTotal/​cat:TaxSubTotal/​cat:TaxCategory/​cat:RatePercentNumeric

5.4.  Tax Amount At Rate

Table 20. XPath information

XPath addresses
/​in:Invoice/​cat:TaxTotal/​cat:TaxSubTotal/​cat:TaxAmount/​@currencyID
/​in:Invoice/​cat:TaxTotal/​cat:TaxSubTotal/​cat:TaxAmount

5.5. Total Tax Amount

Table 21. XPath information

XPath addresses
/​in:Invoice/​cat:TaxTotal/​cat:TotalTaxAmount/​@currencyID
/​in:Invoice/​cat:TaxTotal/​cat:TotalTaxAmount

5.6. Total Taxable

Table 22. XPath information

XPath addresses
/​in:Invoice/​cat:TaxTotal/​cat:TaxSubTotal/​cat:TaxableAmount/​@currencyID
/​in:Invoice/​cat:TaxTotal/​cat:TaxSubTotal/​cat:TaxableAmount

5.7. Total Payable

Table 23. XPath information

XPath addresses
/​in:Invoice/​cat:LegalTotal/​cat:ToBePaidTotalAmount/​@currencyID
/​in:Invoice/​cat:LegalTotal/​cat:ToBePaidTotalAmount

5.8.  Payment Terms

Table 24. XPath information

XPath address
/​in:Invoice/​cat:PaymentTerms/​cat:Note