Skip to main content
Skip table of contents

Function (DT)


Function (DT)

Functions can also be defined by the user in the form of decision tables. For this purpose, a DT will receive a transfer parameter and have a return value. This means that the needed parameters are not each additionally copied before a function call.

If more than one transfer parameter is used, they are separated by a comma.

Example:

Calling a function DT to add VAT to a price:


Price1 = p$VAT ( pos.Price )

Price2 = p$VAT( 150 )

Please note: If transfer parameters and / or a return value were assigned to a DT, they must always be specified in the call.

Transfer parameters take precedence over any others, i.e. when a parameter is defined as a transfer parameter and an identical parameter was defined in the parameter table, the parameter addressed within the DT is always the transfer parameter .

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.