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

PriceInfo

Synopsis

struct PriceInfo {
    boolean inactive;
    decimal quantity;
    Quantity unitSize;
    Money *netPrice;
    Money *netValue;
    Money *tax;
    PriceInfoElement[] extraPriceInfos
}

See also: Quantity, Money, PriceInfoElement

inactive

The value of this field is usually false. A value of true indicates that this price information should be ignored when the total price of the document is computed (be it because the position is an alternative position, part of a set-article, or part of sub-article data in case of merge mode Compact).

quantity

The quantity (in terms of unit size) of this item. Note that in case of sub-article items and merge mode Compact, and for set-article parts, this is the quantity of this item relative to a single sales unit of the main article or set-article.

unitSize

The sales unit size of this item. For set-article items and user article items the unit size is always one piece (1 C62). The usual unit size for other types of article items is one piece too, but other unit sizes may occur.

netPrice

The net price is the net value divided by the quantity as reported by the price information and thus the net price of a single sales unit.

netValue

The net value corresponds to the value of the calculation line tagged with NET_VALUE. If the price information is queried for a view item referencing multiple basket items, as may happen in case of a merge mode other than None, the net value is the sum of the net values of all item calculations, including item calculations of sub-article items in case of merge mode Compact.

In case of article data returned for sub-articles in merge mode Compact, the net value is further adjusted to correspond to the net value of this item relative to a single sales unit of the main article.

tax

This element contains the total of all calculation lines tagged with TAX. If the price information is queried for a view item referencing multiple basket items, as may happen in case of a merge mode other than None, the returned tax is the sum of the taxes of all item calculations. In case of sub-article items and merge mode Compact the returned tax is further adjusted to correspond to the total tax of this item relative to a single sales unit of the main article.

Fields netPrice, netValue and tax may be missing if no lines tagged with NET_PRICE and/or TAX have been found in the calculation or values returned by the calculation are invalid.