Table of Contents | ||
---|---|---|
|
...
Identifier
Der Typ The type udt:IdentifierType wird verwendet, um in den Elementinstanzen etwas eindeutig zu kennzeichnen. Hierbei wird unterstellt, dass die Eindeutigkeit durch ein zugrunde liegendes Schema von Kennzeichnungen gewährleistet ist.
Ein Element von diesem Typ hat einfachen Inhalt vom Typ xsd:string und zusätzliche optionale Attribute, um das Kennzeichnungsschema zu identifizieren. Zwei Elementinstanzen sind als gleich anzusehen, wenn sie hinsichtlich Elementname, Inhalt und dem Attribut identificationSchemeID
übereinstimmen.
...
veloconnect-konforme Implementierungen müssen das Attribut identificationSchemeID
auf den Wert EAN/UCC-13
setzen, wenn es sich bei der Kennzeichnung um einen EAN-Code handelt. Falls UPC-A-Codes verwendet werden sind diese durch eine führende 0 in einen EAN-Code zu transformieren.
Regel: ILN/GLN
veloconnect-konforme Implementierungen müssen das Attribut identificationSchemeID
auf den Wert GLN
setzen, wenn es sich bei der Kennzeichnung um eine Internationale Lokationsnummer (ILN) bzw. Global Location Number (GLN) handelt.
Mengenangaben
cbc:QuantityType.
Eine Mengenangabe besteht aus einem Wert (einer Zahl) und einer Einheit. Zur Darstellung von Mengenangaben wird der Basistyp cbc:QuantityType verwendet. Der Wert der Mengenangabe wird im Inhalt einer Elementinstanz als Zeichenkette vom Typ xsd:decimal dargestellt, die Einheit durch das Attribut quantityUnitCode. Dieses Attribut muss stets angegeben werden. Eine Einheit wird dargestellt durch einen Code aus bis zu drei Buchstaben aus der Codeliste nach is used for unique identification in the element instances. Uniqueness is assumed to be ensured here by an underlying scheme of markings.
An element of this type has simple content of type xsd:string and additional optional attributes to identify the marking scheme. Two element instances are to be regarded as identical if they concur in terms of element name, content and the identificationSchemeID
attribute.
Rule: EAN-Code
Veloconnect-compliant implementations must set the identificationSchemeID
attribute to the value EAN/UCC-13
, if the marking is an EAN code. If UPC-A codes are used, they are to be transformed into an EAN code by a leading 0.
Rule: ILN/GLN
Veloconnect-compliant implementations must set the identificationSchemeID
attribute to the value GLN
, if the marking is an International location number (ILN) or global location number (GLN).
Indications of quantity
cbc:QuantityType
An indicated quantity consists of a value (number) and a unit. The base type cbc:Quantity Type is used to represent quantities. The value of the quantity is represented as a string of type xsd:decimal in the contents of an element instance, the unit by the attribute quantityUnitCode, which must always be specified. A unit is represented by a code of up to three letters from the code list as per TRADE/CEFACT/2001/20. Diese Liste umfasst einige hundert Einheiten. Mit Rücksicht auf das Einsatzgebiet der veloconnect-Spezifikation schränken wir diese Liste wie folgt ein:
Regel: Einheiten.
Ein veloconnect-konformer Client oder Server muss in der Lage sein, die folgenden Einheiten korrekt zu behandeln:
EA
Diskret: Stück, Gegenstand, der als Einheit anzusehen ist.PR
Diskret: Paar, besteht aus zwei Stück, die gleich sind bis auf genau ein Merkmal, das nur zwei Werte annehmen kann. Zum Beispiel: ein Paar Schuhe, ein Paar Bremsbacken.PK
Diskret: Paket, besteht aus mehreren gleichen Teilen.SET
Diskret: Set, besteht aus mehren Teilen, die aus funktionalen oder verkaufstechnischen Gründen zu einer Einheit zusammengefasst werden.MTR
Länge: MeterCMT
Länge: ZentimeterMMT
Länge: MillimeterKGM
Gewicht: KilogrammGRM
Gewicht: GrammLTR
Volumen: LiterMLT
Volumen: Milliliter
Korrekt behandeln heisst: Zwei Mengenangaben sind als gleich zu behandeln, wenn sie nach Definition der Einheiten gleich sind.
Bei den physikalischen Maßeinheiten für Länge, Gewicht und Volumen ist offensichtlich, wie verschiedene Einheiten gleicher physikalischer Größen ineinander umzurechen sind. Zum Beispiel sind This list encompasses several hundred units. In view of the Veloconnect specification's area of application, we restrict this list as follows:
Rule: Units
A Veloconnect-compliant client or server must be able to handle the following units correctly:
EA
Discrete: Object or item to be considered as a unit.PR
Discrete: Pair consisting of two objects which are identical except for exactly one characteristic which can assume only two values. For example: A pair of shoes, a pair of brake jaws.PK
Discrete: Package consisting of several identical parts.SET
Discrete: Set consisting of several parts combined into one unit for functional or sales-related reasons.MTR
Length: MetreCMT
Length: CentimetreMMT
Length: MillimetreKGM
Weight: KilogramGRM
Weight: GramLTR
Volume: LitreMLT
Volume: Millilitre
Correct handling means: Two quantities are to be treated as identical if they are the same as defined by their units.
In the case of physical units of measure for length, weight and volume, it is obvious how different units for the same physical quantities can be mutually converted. For example, <cbc:Quantity quantityUnitCode="MTR">0.58</cbc:Quantity>
und and <cbc:Quantity quantityUnitCode="MMT">580</cbc:Quantity>
als gleich zu behandeln are to be considered as identical.
Regel: Diskrete Einheiten.
Bei den diskreten Einheiten ist das nicht offensichtlich. Wir setzen folgende Regeln für veloconnect-konforme Implementierungen fest:
Die Einheiten Stück, Paar und Set sind untereinander nicht zu vergleichen und sind auch nicht mit einer der physikalischen Größen zu vergleichen.
Eine Umrechnung einer Mengenangabe mit der Einheit Paket in eine andere Einheit Y, ist nur dann möglich, wenn Y eine von Paket verschiedene Einheit ist, und wenn explizit eine Zahl U angegeben wird, so dass 1 Paket einer Menge von U Y entspricht.
Die Beschreibung von Gegenständen erfolgt mit dem Elementtyp cac:ItemType. Dieser Elementtyp erlaubt die geforderte explizite Angabe zur Umrechung der Paket-Einheit in eine andere Einheit.
...
Rule: Discrete units
This is not obvious in the case of discrete units. We define the following rules for Veloconnect-compliant implementations:
The units comprising piece, pair and set are not to be mutually compared, nor are they comparable with any of the physical quantities.
Converting a quantity whose unit is package into another unit Y is only possible if Y is not package, and if a number U is explicitly specified so that 1 package corresponds to a quantity of U Y.
Objects are described with element type cac:ItemType which allows the required, explicit specification to convert the package unit into another unit.
Rule: Other units according to TRADE/CEFACT/2001/20egel: Andere Einheiten nach TRADE/CEFACT/2001/20
...
A use of units other than those mentioned above from the TRADE/CEFACT/2001/20 -Liste zu verwenden. Ein veloconnect-konformer Server darf auf eine Nachricht mit einer Fehlermeldung antworten, wenn der Client eine andere als eine der oben explizit aufgeführten Einheiten verwendet. Ein veloconnect-konformer Client muss eine solche Einheit verarbeiten, wenn sie vom Server geliefert wird. Dazu kann er diese Einheit entweder als Einheit betrachten, die mit keiner anderen vergleichbar ist, oder durch den Benutzer eine Umrechnung in eine bekannte Einheit festlegen lassen.list does not contradict the Veloconnect specification . A Veloconnect-compliant server is allowed to respond to a message with an error message if the client uses a unit other than one of those explicitly listed above. A Veloconnect-compliant client must process such a unit if it is delivered by the server. For this, the client can either consider this unit as not comparable to any other unit, or let the user specify a conversion into a known unit.