You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Sales order header default EFF Value using Groovy Expression

edited 7:17AM in Order Management 11 comments

Summary:

We need to default the EFF value in the Sales Order Header so that whenever a sales order is created or updated, the LINE_DISCOUNT_PERCENT automatically calculates the overall order discount percentage and populates it in the header EFF field, that EFF value will be used in sales order approval as condition to trigger SO approval.

We’re using the below expression, but validation throws an error (details below). Could someone please help identify the correct attributes or syntax to make this work?

Error(5,14) : Unknown attribute name: salesOrder for type: FlexGroovyDOO_5FHEADERS_5FADD_5FINFOVO

Warning(7,19) : No such property: quantity for class: java.lang.Object

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!