ax 2012 how to create purchline for same purchtable purchid through code

Debug and check whether the line number gets properly updated.

Generally initFrom* methods will not be static