CCTRepAmount (JQ)
01-000 Amount. Type (JR)
01-000 Amount. Type is a Core Component Type (CCT) and represents a number of monetary units specified in a currency where the unit of currency is explicit or implied. The content component is Amount. Content and contains the value of the Amount. Type CCT. To indicate the currency identifier and the version of the currency identifier, the CCT specification defines two supplementary components, Amount Currency. Identifier and Amount Currency. Code List. Version . (JS)
Amount (JT)
The following diagram shows one possible mapping between the Amount core component type and classes in the SUMO. (JU)
Example: Amount. Type (JW)
For a Core Component Type of Amount. Type , the Content Component carries the value of 12. This value has no semantic meaning on its own. But 12 EUR, where EUR is the Supplementary Component that gives essential extra definition to the Content Component, does have meaning. (JX)
[ScottLHolmes] This example differs from the technical specification of CCT 2.01 in that the proper three character code (EUR) as defined in the Amount. Currency. Identifier is used here, whereas the technical specification uses the term Euro which is not a valid reference. (JY)
Given a UBL Invoice instance document, a typical element that uses the Amount. Type CCT is PriceAmount which is defined in the UBL to be of type PriceAmountType which is an extension of sdt:UBLAmountType . UBLAmountType is a Specialized Data Type in the UBL that is essentially a representation of the CCT Amount. Type. Note that in version 1.0 of the UBL, the attribute amountCurrencyCodeListVersionID is fixed at "0.3". (JZ)
<PriceAmount xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0" amountCurrencyID="EUR" amountCurrencyCodeListVersionID="0.3"> 12 </PriceAmount> (K0)
OC: Amount (K1)
PT: Type (K2)
Amount. Type Map to SUMO CurrencyMeasure (K3)
CCT Amount. Type maps to a SUMO CurrencyMeasure expressed using MeasureFn in the second argument being a RealNumber with the first argument being an instance UnitOfMeasure and subclass of CurrencyMeasure. The resulting CurrencyMeasure can be related to a thing with the relation monetaryValue (K4)
01-001 Amount. Content (K5)
01-001 Amount. Content is a Content Component that represents a number of monetary units specified in a currency where the unit of currency is explicit or implied. This is a decimal number. (K6)
PDT: decimal (K7)
Amount. Content Map to SUMO RealNumber (K8)
CCT Amount. Content maps to a SUMO RealNumber part of an expression using MeasureFn. (K9)
01-002 Amount Currency. Code List Version. Identifier (KA)
01-002 Amount Currency. Code List Version. Identifier is a supplementary component that represents the version of the UN/ECE Rec.9 code list. If not used, the latest version code list is assumed. (KB)
[ScottLHolmes] As this list is maintained in a Microsoft Access database, finding an accurate version is currently a challenge. The PDF document for Rec 9 is marked ECE/TRADE/203 [Edition 96.1] which could be the version but Rec 9 does not specifically mark it as such. (KC)
PDT: string (KD)
Amount Currency. Code List Version to SUMO uniqueIdentifier (KE)
Amount Currency. Code List Version maps to a SUMO SymbolicString that is related to a UnitOfMeasure part of a subclass of CurrencyMeasure by the uniqueIdentifier relation. (KF)
01-003 Amount Currency. Identifier (KG)
01-003 Amount Currency. Identifier is a supplementary component that represents the currency of the value of Amount. Content . The value should reference UN/ECE Rec. 9, using 3-letter alphabetic codes. The UN/ECE Rec. 9 is also published as ISO 4217. Both the UN/ECE and the ISO offer free publications of these specifications. It is recommended that the currency code is provided in this SC rather than in a separately defined BBIE. (KH)
PDT: string (KI)
Amount. Currency. Identifier Map to SUMO SymbolicString (KJ)
Amount. Currency. Identifier maps to a SUMO SymbolicString that is related to a UnitOfMeasure part of a subclass of CurrencyMeasure by the uniqueIdentifier relation. (KK)
References (KL)
UNECE TDTD Rec 9 Recommendation N°. 9 - Alphabetic Code for the Representation of Currencies (KM)
UNECE Codes for Trade Updated currencies as of ISO-4217 and ISO-3166-1 country codes Note: This is a link to a copy of the data maintained by UNECE. The master data is available from ISO. (KN)
Currency codes - ISO 4217 The master data for updated currencies as of ISO-4217 and ISO-3166-1 country codes is available for download directly from the ISO. (KO)
Amount. Type to SUMO (KP)
The Core Component Type Amount. Type can be represented in SUMO using the CurrencyMeasure class. A CurrencyMeasure is a type of ConstantQuantity. All ConstantQuantites are expressed with a BinaryFunction called MeasureFn. MeasureFn has two arguments, the first is a Number and the second is a UnitOfMeasure. The content component of Amount. Type serves as the Number and the supplementary component Amount Currency. Identifier serves as the UnitOfMeasure. (KQ)
The UnitOfMeasure is identified by the uniqueIdentifier relation which is mapped to the supplementary component Amount Currency. Code List Version. Identifier. (KR)
SUMO Mapping (KT)
Amount. Content is a SUMO RealNumber. Amount Currency Identifier is a SUMO SymbolicString and Amount Currency. Code List Version. Identifier is a SUMO SymbolicString. Amount. Content and Amount Currency. Identifier together form a SUMO CurrencyMeasure expressed by a SUMO MeasureFn. (KU)
Typical instances expressed in CCT terms: (KV)
- Amount. Content: 12 (KW)
- Amount Currency. Identifier: "EUR" (KX)
- Amount Currency. Code List Version. Identifier: "ECE/TRADE/203 [Edition 96.1]" (KY)
Typical instances expressed in SUMO terms: (KZ)
- RealNumber: 12 (L0)
- SymbolicString: "EUR" (L1)
- SymbolicString: "ECE/TRADE/203 [Edition 96.1]" (L2)