We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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

Header EFF to Line level EFF

Received Response
26
Views
8
Comments
edited Dec 15, 2020 3:25PM in Order Management 8 comments

Content

Hi, 

 I Need help in modifying the below query for copying header EFF to line level EFF. We need to add a condition in the code where in if the user updates the line level EFF after the header value is copied and saves the record, then header value should not override the line value after we save the record.

 

def flexfieldContext = header.getOrCreateContextRow("End Customer Information");
def EFFHeader = flexfieldContext.getAttribute("customerPhone");
def lines = header.getAttribute("Lines");
while( lines.hasNext() ) {                                 
def line = lines.next();   
def flexfieldContextLine = line.getOrCreateContextRow("End Customer Information");                           
def EFFLine = flexfieldContextLine.getAttribute("customerPhone");                        
flexfieldContextLine.setAttribute("customerPhone", EFFHeader)

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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