Skip to main content

How to update funding Source for Project Contract in Ax 2012

If you want to  update funding Source for Project Contract in Ax 2012 by code then you can get idea from below code.  These all standard table.

   ProjFundingSource      projFundingSource;  
   ProjInvoiceTable      projInvoiceTable;  
   LogisticsLocation      logisticsLocation,logisticsLocationNew;  
   ;  
   ttsBegin;  
   while select projInvoiceTable order by ProjInvoiceProjId desc  
   {  
     if(projInvoiceTable.ProjInvoiceProjId != "S_002834")  
     {  
       if(projInvoiceTable.fundingSourceName() != "")  
       {  
         while select forUpdate projFundingSource where projFundingSource.ContractId == projInvoiceTable.ProjInvoiceProjId  
         {  
           projFundingSource.FundingSourceId = projInvoiceTable.fundingSourceName();  
           projFundingSource.InvoiceLocation = 0;  
           projFundingSource.update();  
         }  
       }  
     }  
     else  
       break;  
   }  
   ttsCommit;  

Comments

ITJobZone.biz said…
we have jobs @ Chennai..
Direct posting at Dubai/UAE at clients place for 1st 3 Months.

for Microsoft_Dynamics_AX and experience in AX 2012 R3/D365 Financials, costing, fixed asset, Project accounting and Cash & bank modules
ITJobZone.biz said…
we have jobs @ Chennai..
Direct posting at Dubai/UAE at clients place for 1st 3 Months.

for Microsoft_Dynamics_AX and experience in AX 2012 R3/D365 Financials, costing, fixed asset, Project accounting and Cash & bank modules
http://www.itjobzone.biz