Using Expression Building within the Invoice properties
Summary: We need to hide a field in the invoice if specific criteria has been entered as well as a new role. If a user has specified role and enters any of the following Payment Terms; Immediate_Legal, Net 30_Legal, Net 60_Legal the attachments are viewable to them. If the user does NOT have the role and the Payment Terms are set as above they are unable to view the attachments.
Content (required): The following is our current Expression that is WORKING for a single payment term; Immediate_Legal
#{securityContext.userInRole['MNG_AP_LEGAL_VIEW'] ? true : bindings.PaymentTerms.inputValue !='Immediate_Legal' ? true : bindings.PaymentTerms.inputValue ==null ? true : #bindings.PaymentTerms.inputValue =='Immediate_Legal' && #securityContext.userInRole['MNG_AP_LEGAL_VIEW'] ? true : false}