IDMW 2.0 XML-Schema Dokumentation
PRICE_TYPE Element
IDMW 2.0 XML-Schema Dokumentation > T_NEW_CATALOG Element > PRICE_DEFINITION Element > PRICE_TYPES Element : PRICE_TYPE Element
Description
This version is used to define a price type.
Namespace (none)
Diagram
PRICE_TYPE_RULES Element LANGUAGE Element Sequence PRICE_TYPE_NAME Element PRICE_TYPE_FORMULA Element BASIC_PRICE_DEPENDENT Element ROUNDING_TYPE Element ROUNDING_UNIT Element BASIC_UNIT Element HEIGHT_Z Element DEPTH_Y Element WIDTH_X Element Sequence PRICE_TYPE Element
Overview
PRICE_TYPE
This version is used to define a price type.
PRICE_TYPE_NO required Restriction of xs:positiveInteger
This attribute unequivocally identifies a defined price type.    D   positiveInteger
   P   
   M   [1:250]
Sequence
WIDTH_X Restriction of xs:boolean
If the price that is to be calculated depends on the dimension width, this element is set to 1, otherwise it is set to 0.    D   boolean
   P   
   M
DEPTH_Y Restriction of xs:boolean
If the price that is to be calculated depends on the dimension depth, this element is set to 1, otherwise it is set to 0.    D   boolean
   P   
   M
HEIGHT_Z Restriction of xs:boolean
If the price that is to be calculated depends on the dimension height , this element is set to 1, otherwise it is set to 0.    D   boolean
   P   
   M
BASIC_UNIT Restriction of xs:nonNegativeInteger
The base unit (BASIC_UNIT) specifies on which dimension the prices in the ITEM_PRICE (P1) and ADDITIONAL_PRICE (P2) elements relate.
The unit of measure depends on the number of dimensions specified as "1". Possible options are: mm, mm² and mm³. If the price of a width-dependent item refers to one meter, the value in this element must be entered as "1000". In the case of a volume-dependent price, 1 m³ will be entered as "1000000000" [mm³]. If they are piece prices, i.e. no dimension was specified as "1", the value "0" must be entered in this element. If the price is not a piece price, the value must be different from "0".


P1: PRODUCT_GROUPS/PRODUCT_GROUP/ITEMS/ITEM/PRICE_FEATURE_GROUP_REF/ITEM_PRICE/
P2: PRICE_DEFINITION/PRICE_FEATURE_GROUPS/PRICE_FEATURE_GROUP/
   D   nonNegativeInteger
   P   
   M   [0:999999999999]
ROUNDING_UNIT Restriction of xs:nonNegativeInteger
The rounding unit (ROUNDING_UNIT) is used to specify the upward rounding for the length, the surface area and/or the volume. The unit of measure depends on the number of dimensions specified as "1". Possible options are: mm, mm² and mm³. If the price of a width-dependent item refers to one centimetre, the value in this element must be entered as "10". If they are piece prices, i.e. no dimension was specified as "1", the value "0" must be entered in this element. If the price is not a piece price, the value must be different from "0".    D   nonNegativeInteger
   P   
   M   [0:999999999999]
ROUNDING_TYPE Restriction of xs:positiveInteger

To specify the different types of the rounding, the ROUNDING_UNIT element is supplemented with the element ROUNDING_TYPE, with possible values being 1, 2 and 3, that identifies commercial rounding (up and down).

The values have the following meaning:

   1 rounding up

   2 rounding down

   3 commercial rounding

   D   positiveInteger
   P   
   M   [1:3]
BASIC_PRICE_DEPENDENT Restriction of xs:boolean

If the element is set to 1, the price will be calculated
on the basis of the base price and a base price unit. If the value is 0,
the price calculation is independent from a base price.

The element .../ITEM/PRICE_FEATURE_GROUP_BASE_PRICE_REF/ITEM_PRICE/PRICE_MINIMUM_BASIC Izzy is to specify the
items base price applicable for the calculation and in .../ITEM/
PRICE_FEATURE_GROUP_BASE_PRICE_REF/ITEM_PRICE/BASIC_PRICE_UNIT the
.../ITEM/PRICE_FEATURE_GROUP_BASE_PRICE_REF/ITEM_PRICE/BASIC_PRICE_UNIT element. The base price unit  is used
as a base value and/or starting point for the dimension-variable calculation.

The element ...ITEM/ADDITIONAL_PRICE_GROUP/PRICE_FEATURE_GROUP_REF/ITEM_PRICE/PRICE
is used to specify the price that serves as a basis for the calculation of the filler price
that corresponds to the basic unit defined in the BASIC_UNIT element.
The base price is always a piece price. An item that is assigned a base price calculation
cannot be assigned a minimum price. The final price
of the item consists of the base price + the
calculated filler price in consideration of the logic defined in the element.
Base prices can only be assigned to items for which at least
one-dimensional is used for calculation purposes.

The effective item prices are calculated as follows:
The dimensions of the base price unit must be subtracted from the item dimensions. The remaining dimensions are the infill dimensions.
To calculate the price for the infill dimensions, the logic from the PRICE_TYPE element in conjunction with the
price from element .../ITEM/PRICE_FEATURE_GROUP_BASE_PRICE_REF/ITEM_PRICE/PRICE is used.
If the infill dimensions are less than 0, the calculations continue with an infill dimension value of 0.

 

   D   boolean
   P   
   M
PRICE_TYPE_FORMULA optional Restriction of xs:string
Price calculation formulas can be specified when defining price types (PRICE_TYPE). Formulas must not be specified for standard price types, such as a calculation that relies squares or cubic metres.
The following rules apply for the definition of price type formulas:
- the parameters b, h and t can be used in formulas. Parameters b, h, t correspond to the parameters b, h and t of the carcase basic shape. Depending on the b, h, t parameters used, the corresponding element WIDTH_Y (P1) (b), DEPTH_Y (P1) (t) or HEIGHT_Z (P1) (h) must be set to "true".
- the basic calculation methods addition (+), subtraction (-), multiplication (*) and division (/) can be used;
- arithmetic brackets can be used;
- +/minus signs must not be used;
- only the final result is rounded;
- elements BASIC_UNIT (P1), ROUNDING_UNIT (P1) and BASIC_PRICE_DEPENDENT (P1) also apply in conjunction with the price type formula;


[SSS_elementpaths_SSS]element paths[EEE_elementpaths_EEE]
P1: PRICE_DEFINITION/PRICE_TYPES/PRICE_TYPE/
   D   string
   P   [\+\-\*/\(\)bhtBHT]{0,}
   M   [1:100]
PRICE_TYPE_NAME optional languagetext60 Complex Type
This element is used to specify a designation for the defined price type.
The designation simplifies data collection and communication. The designation is not analysed by the planning software.
Sequence
LANGUAGE 1..∞
ISO_LANGUAGE_ID required Restriction of xs:language
This attribute is used to specify the ISO code of the language in which the text is stored.    D   language
   P   [A-Z]{2}
   M   [2:2]
Sequence
TEXT Restriction of xs:string
This element is used to store the text in the language specified in the LANGUAGE element of the ISO_LANGUAGE_ID attribute.    D   string
   P   [\S ]{1,60}
   M   [1:60]
PRICE_TYPE_RULES optional
This element is used to define rules for determining the price type.
Sequence
PRICE_TYPE_RULE 1..100
This element is used to define rules for determining the price type.
RULE_NO required Restriction of xs:nonNegativeInteger
This element is used to specify the rule number.    D   nonNegativeInteger
   P   
   M   [0:9999]
Sequence
RULE xs:string
This element is used to define the rule.    D   string
   P   
   M
Attributes
NameTypeUseDefaultFixedDescription
PRICE_TYPE_NORestriction of xs:positiveIntegerrequired  
This attribute unequivocally identifies a defined price type.    D   positiveInteger
   P   
   M   [1:250]
Remarks

Source
<xs:element name="PRICE_TYPE" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>150--0--NEW</xs:documentation>
    <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="WIDTH_X">
        <xs:annotation>
          <xs:documentation>150--3--Breite_X</xs:documentation>
          <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:boolean" />
        </xs:simpleType>
      </xs:element>
      <xs:element name="DEPTH_Y">
        <xs:annotation>
          <xs:documentation>150--4--Tiefe_Y</xs:documentation>
          <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:boolean" />
        </xs:simpleType>
      </xs:element>
      <xs:element name="HEIGHT_Z">
        <xs:annotation>
          <xs:documentation>150--5--Hoehe_Z</xs:documentation>
          <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:boolean" />
        </xs:simpleType>
      </xs:element>
      <xs:element name="BASIC_UNIT">
        <xs:annotation>
          <xs:documentation>150--6--Basis_Einheit</xs:documentation>
          <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:nonNegativeInteger">
            <xs:minInclusive value="0" />
            <xs:maxInclusive value="999999999999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ROUNDING_UNIT">
        <xs:annotation>
          <xs:documentation>150--7--Rundungseinheit</xs:documentation>
          <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:nonNegativeInteger">
            <xs:minInclusive value="0" />
            <xs:maxInclusive value="999999999999" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ROUNDING_TYPE">
        <xs:simpleType>
          <xs:restriction base="xs:positiveInteger">
            <xs:minInclusive value="1" />
            <xs:maxInclusive value="3" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="BASIC_PRICE_DEPENDENT">
        <xs:annotation>
          <xs:documentation>150--8--Grundpreisabhaengig</xs:documentation>
          <xs:documentation>Version Beta 2.0 Build 3</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:boolean" />
        </xs:simpleType>
      </xs:element>
      <xs:element name="PRICE_TYPE_FORMULA" minOccurs="0">
        <xs:annotation>
          <xs:documentation>150--9--Preisart_Formel</xs:documentation>
          <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:minLength value="1" />
            <xs:maxLength value="100" />
            <xs:pattern value="[\+\-\*/\(\)bhtBHT]{0,}" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="PRICE_TYPE_NAME" type="languagetext60" minOccurs="0">
        <xs:annotation>
          <xs:documentation>150--10--Bezeichnung_Preisart</xs:documentation>
          <xs:documentation>Version Beta 2.0 Build 4</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PRICE_TYPE_RULES" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>360--1--Satzart</xs:documentation>
          <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="PRICE_TYPE_RULE" maxOccurs="100">
              <xs:annotation>
                <xs:documentation>Polster
Regeln zur ermittelung der Preisart
z.B. if Preisgruppe A &gt; Preisgruppe B dann nimm Preisgruppe A </xs:documentation>
                <xs:documentation xml:lang="DE">Version 2.1 Build 7</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="RULE" type="xs:string">
                    <xs:annotation>
                      <xs:documentation>Feld zur Aufnahme von Regeln</xs:documentation>
                      <xs:documentation xml:lang="DE">Version 2.1 Build 7 Polster</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
                <xs:attribute name="RULE_NO" use="required">
                  <xs:annotation>
                    <xs:documentation>360--0--NEW</xs:documentation>
                    <xs:documentation>Version Beta 2.0 Build 0</xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:nonNegativeInteger">
                      <xs:minInclusive value="0" />
                      <xs:maxInclusive value="9999" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="PRICE_TYPE_NO" use="required">
      <xs:annotation>
        <xs:documentation>150--0--NEW</xs:documentation>
        <xs:documentation>Version Beta 2.0 Build 0, K. Richter 26.03.2014</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:positiveInteger">
          <xs:minInclusive value="1" />
          <xs:maxInclusive value="999" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>
See Also
PRICE_TYPES ElementPRICE_DEFINITION ElementT_NEW_CATALOG ElementIDMW 2.0 XML-Schema Dokumentation