BasketConfig
Synopsis
struct BasketConfig (
string[] viewIds,
string[] columnIds,
string[] calculations,
string? defaultCalculation;
string defaultView,
boolean columnsEditable,
string currency,
boolean currencyEditable,
date defaultPriceDate
)
See also: date (unresolved source reference)
viewIds
A list of IDs of views of the current basket. This list should always contain the ID of the standard view (5726009a-756d-11d6-9c21-00e029099a4b). The standard view uses display mode Planning and set-article mode Expand. It contains the following columns, in that order: position number, manufacturer, series, article number, description, quantity, single net price, total net price.
columnIds
A list of IDs of columns that have been added to the current basket. This list should always contain the following list of standard column IDs2:
| Column ID | Name |
|---|---|
69ec3fa0-795a-11d6-9c21-00e029099a4b |
manufacturer |
6d302258-795a-11d6-9c21-00e029099a4b |
series |
71803794-795a-11d6-9c21-00e029099a4b |
article number |
745802e4-795a-11d6-9c21-00e029099a4b |
description |
76eda34c-795a-11d6-9c21-00e029099a4b |
quantity |
7d21a60a-795a-11d6-9c21-00e029099a4b |
single purchase price |
7fe484fc-795a-11d6-9c21-00e029099a4b |
total purchase price |
82efa014-795a-11d6-9c21-00e029099a4b |
single sales price |
8541eb1a-795a-11d6-9c21-00e029099a4b |
total sales price |
8831eeec-795a-11d6-9c21-00e029099a4b |
single net price |
8b51fbe4-795a-11d6-9c21-00e029099a4b |
total net price |
8dcf0592-795a-11d6-9c21-00e029099a4b |
single gross price |
90895bc0-795a-11d6-9c21-00e029099a4b |
total gross price |
81d12edc-853a-11d6-9c21-00e029099a4b |
position number |
9c9ea8ea-20ce-11d7-9c21-00e029099a4b |
catalog image |
6a66160c-da62-11d8-b9d6-00e081513ada |
generated image |
73bd68f4-da62-11d8-b9d6-00e081513ada |
article image |
calculations
Returns the names of all price calculations currently added to the basket in an unspecified order. The set of names returned in calculations is equal to the set of names of all pricing procedures returned by operation listPricingProcedures with argument active being true.
defaultCalculation
Returns the name of the default calculation currently configured for the basket, or an empty string if no default calculation has been configured.
defaultView
The ID of the default view. The default view is the view that is initially displayed by P-BK after the project has been loaded.
columnsEditable
A boolean value that indicates whether or not columns may be added to or removed from the current basket. For now the value of this attribute will always be true.
currency
The currency used by the basket. This is the same currency as returned by operation getCurrency.
currencyEditable
A boolean value that indicates whether or not the currency of the current basket can be changed.