The customer has a request form that allows users to request a number of line items. One of the requirement is for a total attribute to display the setup and service fee costs based on the line items that the user selects via a serious of checkboxes.
The calculation below has been used to faciliate the total, however the total is updated regardless if the line item checkbox is selected or not. (see screenshot) The calculation does not fail when tested in object designer but seems to ignore the line: if Request._WHOUPVH == 'True':Value
import System
static def GetAttributeValue(Request):
Value = Request._WHOUPVHSETUP + Request._WHOUPVHSERVICEFEE
if Request._WHOUPVH == 'True':Value
return Value
Any pointers, greatly appreciated