Loading...
 

CX_TRANSACTION::LogicalOrToTop

CX_TRANSACTION::LogicalOrToTop

Description:

This function examines the contents of the transaction slot and all parent transactions.

"Slot = 2" txn Call(LogicalOrToTop) - returns TRUE.
"Slot = 0" txn Call(LogicalOrToTop) - returns FALSE

Code example:
Define(AddVatSum) tmpItem Copy(transaction.LogicalOrToTop("subTransactions[0]!=0 & has(orderItemTypeEnum) & orderItemTypeEnum=0")) ifnot { tmpItem Get(salesItem.tax) Dup if { // Find present VAT 0 -> sum vatVector iterate { -> tmp 0 tmp GetElement Over @ if { 1 tmp GetElement -> sum } } ;
Stack
Stack Position Object type Brief description
Stack(In) Top CX_TRANSACTION One transaction
Top 1 STRING Condition
Stack(Out) Top CX_BOOLEAN Truth value
Function call: Call(LogicalOrToTop)