IDMW 2.0 XML-Schema Dokumentation
PRICE_TYPE_FORMULA Element
IDMW 2.0 XML-Schema Dokumentation > T_NEW_CATALOG Element > PRICE_DEFINITION Element > PRICE_TYPES Element > PRICE_TYPE Element : PRICE_TYPE_FORMULA Element
Description
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]
Namespace (none)
Type
Restriction of xs:string
Diagram
PRICE_TYPE_FORMULA Element
Overview
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]
Remarks

Source
<xs:element name="PRICE_TYPE_FORMULA" minOccurs="0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <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>
See Also
PRICE_TYPE ElementPRICE_TYPES ElementPRICE_DEFINITION ElementT_NEW_CATALOG ElementIDMW 2.0 XML-Schema Dokumentation