Skip to content
pCon.configurator onlineDocumentation
Esc
↑↓navigate↵open⌘Jpreview
On this page

ConditionType

Synopsis

struct ConditionType {
    string name;
    string description;
    string* accessMethod;
    ConditionClass conditionClass;
    ConditionSign conditionSign;
    CalculationRule calculationRule;
    CalculationRule[] allowedCalculationRules; // zero or more elements
    RoundingRule roundingRule;
    boolean groupCondition;
    boolean headerCondition;
    ConditionEditMode editMode;
    boolean amountEditable;
    boolean quantityRelationEditable;
    boolean valueEditable;
    boolean calculationRuleEditable;
    boolean conditionDeletable;
    boolean deferredCurrencyConversionEnabled;
}

See also: ConditionClass, ConditionSign, CalculationRule, RoundingRule, ConditionEditMode

Description

Describes the details of a ConditionType.

Access methods

Currently available values for accessMethod:

Access method Description
BPR00 (Base) sales price coming from OFML data
BPR01 (Base) purchase price coming from OFML data
VAPR00 sales variant prices coming from OFML data
VAPR01 purchase variant prices coming from OFML data
PR00 sales price coming from OFML data (BPR00 + VARP00)
PR01 purchase price coming from OFML data (BPR01 + VARP01)
TAX00_<type> tax value from OFML data. If tax type is not supported by currently selected tax scheme it gives an invalid value.
TAX01_<type> tax value from OFML data. If tax type is not supported by currently selected tax scheme it gives no value.
RND00 rounding interval in document currency

TAX00_ and TAX01_ access methods also accept tax group identifiers; see TaxGroup.

Editable values

  • If amountEditable is true the amount or percentage value can be changed.
  • If quantityRelationEditable is true the base quantity of an amount can be edited.
  • If valueEditable is true the value can be changed.

Deferred currency conversion

If deferredCurrencyConversionEnabled is true the currency conversion is done after multiplication with quantity.

Calculation rules

An empty allowedCalculationRules list means that the calculation rule is immutable. Otherwise the list contains all allowed rules, with at least two distinct entries.

calculationRule is the default, used when neither an explicit rule nor a condition record supplies a rule.

A mutable rule need not be editable: a condition record may supply another allowed rule even when manual editing is disabled. calculationRuleEditable describes the condition type’s editing configuration; the condition’s edit mode and the presence of a condition record may further restrict editing. Use CalculationLine.calcRuleEditable for the current condition line. Non-header group conditions never have editable rules.