This is the first integration test post





static void legJob12(Args _args)  
{  
   PurchLine purchLine;  
   InventTrans inventTrans;  
   InventTransOrigin origin;  
   ttsBegin;  
   changeCompany("0N09")  
   {  
     purchLine = purchLine::find("0N09-0002000507",1);  
     select firstonly * from inventTrans  
     join origin  
     where inventTrans.InventTransOrigin == origin.RecId  
     && origin.InventTransId == purchLine.InventTransId  
     && inventTrans.StatusReceipt == StatusReceipt::Ordered;  
     if (inventTrans.RecId)  
     {  
       inventTrans.selectForUpdate(true);  
       inventTrans.delete();  
     }  
   }  
   ttsCommit;  
   info('completed');  
 }