Header EFF to Line level EFF
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)