Default settings for eaiws sessions. Can be used to assign default settings to new sessions.

Hierarchy

  • EaiwsSessionDefaults

Properties

currency: undefined | string

default currency

dataLanguage: readonly string[]

default data language (identical to ApplicationSettings.dataLanguage )

exchangeRates: ReadonlyMap<string, number>

default currency exchange rates (map from currency code to exchange rate)

partyInCharge: undefined | Readonly<AddressData>

default party in charge

projectValidity: string

default project validity (identical to ApplicationSettings.projectValidity )

referenceCurrency: undefined | string

default reference currency for the exchange rates

taxRates: readonly DefaultTaxRate[]

default rates for the default taxScheme

taxScheme: undefined | string

default tax scheme id

Methods

  • Applies the current defaults to the given session. If pSettingsToApply is undefined, all settings will be applied otherwise only the settings part of the array.

    Parameters

    Returns Promise<void>

  • Sets new default currency.

    Parameters

    • pCurrency: undefined | string

    Returns void

  • Sets new default exchange rates (map from currency code to exchange rate).

    Parameters

    • pReferenceCurrency: undefined | string
    • pExchangeRates: Map<string, number>

    Returns void

  • Sets new default party in charge.

    Parameters

    • pAddress: undefined | AddressData
    • Optional pTransient: boolean

      If true the address will not be stored permanently and will be reset on next application start. (default: false)

    Returns void

  • Sets new default tax scheme and default rates.

    Parameters

    Returns void

  • Stores the current defaults on the user settings storage if available.

    Returns Promise<void>

Generated using TypeDoc