Session the basket should operate on.
OptionalpProjectInfo: ProjectInfo
Optional pre-created ProjectInfo instance. Will be ignored if pSession and pProjectInfo.session are not equal.
If true the calculation for pseudo articles will be based on a subtotal of all sub-articles. Otherwise pseudo articles will have an empty calculation (price = 0.00).
ReadonlyeventWill be triggered from Basket.clear()
ReadonlyeventTriggered every time the header calculation has changed.
Note: A changed header calculation may also imply that the calculation of all items has changed if
some conditions depend on header conditions. The event eventItemUpdated may not be triggered
for all items in these cases (e.g. for indirect changes).
ReadonlyeventReadonlyeventReadonlyeventWill be triggered everytime if items got pasted into the basket. (e.g. copy/paste or OEX import)
ReadonlyeventTriggered every time an item changed.
Note: The event will not be triggered if the item calculation has indirectly changed by
some header conditions. You should also listen to the event eventHeaderCalculationChanged.
ReadonlyeventWill be triggered if this basket instance gets modified.
ReadonlyeventReadonlyeventWill be triggered if the migration info of an article item was changed.
ReadonlyeventReadonlyeventReadonlyeventWill be triggered from Basket.updateSessionLanguage()
If true calculation line errors will be also included in the inconsistencyReason of the article ItemProperties.
Text format used for the item properties. Text that is stored as plain text will not be converted and will be returned as Plain.
The following legacy properties will not be available if a format other than Plain is used:
ArticleProperties.shortTextArticleProperties.longTextArticleProperties.featureTextFolderProperties.nameTextItemProperties.textProtectedmProtectedmProtectedmProtectedmProtectedmThe current defaults for the article image.
The basket config which was loaded from the last call of loadFromSession.
Checks the consistency of all articles. Returns false if at least one of the articles or its configuration is inconsistent. Note: Errors of invisible calculation lines will be ignored.
If true the calculation will be also checked for error. (default: true)
ProtectedcreateOptionalpPricingProcName: string | nullProtectedinternalOptionalpPricingProcedure: stringOptionalpOptions: LoadFromSessionOptionsProtectedloadShould only be called if basket items were modified without using the methods provided by this bsk module.
Calling this function reloads the whole item list.
Can be used to specify the default options for the article image. Note: The default camera is only used if an image is generated the first time for an article.
Should be called if the locale and or data language of the eaiws session has changed to update all language related data.
StaticPrepareCreate necessary basket columns if they don't exist yet in the provided session.
Note: This function will be also called from Basket.loadFromSession().
Creates a new Basket instance.