How can I get Invoice # of the returning Item on Credit Note in each Item Line in AX 2009

Problem  : Get Invoice # of the returning Item on Credit Note in each Item Line in AX 2009

There is a field "InventTransIdReturn"  in Saleline which has link id of InventTransID which resides in InventTrans so I write a function like this

return InventTrans::findTransId(SalesLine::findInventTransId(CustInvoiceTrans.InventTransId,false).InventTransIdReturn).InvoiceId;

It is working great.

Dear reader may I jump right in the code. If you have any question please write me at arif@paramountbooks.com.pk

Comments

Post a Comment

Popular posts from this blog

How to import data in Ax2009 from a CSV file

July 2017 update: Form Adaptors Replaced by Type Providers

X++ to C# Comparisons