When I post a purchase invoice with a job number, the codeunit ‘Job Jnl.-Post Line’ (1012) is being called. But I cant find the actual code that calls the codeunit. I searched through codeunit 12 and 90 without any luck.
Petan, I am not sure what you are searching for. You initially wrote “I cant find the actual code that calls the codeunit.” and I thought I had pointed out where it is called (i.e. where the posting of job jnl lines is initiated). Apparently you want to know something different (or more) than that. Could you elaborate on this a bit more.
BTW: have you ocnsidered to setup and use the NAV Developer’s Toolkit and analyze (through Where Used) where COD1012 is being called from?