comment out wfc hard coding, move log record before update query so localtemptrans has data to be updated