Re: "lines of code produced or function points created" Nothing to do with ISO 9002
QMS standards like 9001 do NOT say that you must measure lines of code. They do say you should set measurable quality objectives and measure them. What you measure is up to you.
The problem is that it is very hard to think of good metrics for software development (or development in general). Even high level ones like delivery against original planned dates is difficult with dependancies on other groups, clients and changing requirments and environment.