Edit Discount Option Definition

Shown below is the Edit Discount Option Definition screen:



This screen is used to enter the 'program logic' that will be used to compute the discount for customer orders and purchase orders.

Important: This contents of this function MUST set the value of 'DiscountTotal' to the computed amount (as shown in the screen image above).

Discount can be calculated using any of the following available variable values which relate to an order:

TotalOrderAmount = Total Order Amount - amount of underlying order
NumLineItems = Number of line items on order
ItemStockNum{xx} = Line Item Array - Stock number for each item on order
ItemQuantity{xx} = Line Item Array - Item Quantity Ordered for each item on order
NumItems = Number of Items - Total combined number of items on order

The function to compute DiscountTotal can contain any of the following programming constructs:

Dim

If (Expression) Then
ElseIf (Expression) Then
Else
End If

For LoopVar = 1 to X
Next

While (Expression)
WEnd

Var = Expression


You may contact Conquest support if you would like some assistance with this feature.



   Index     Home