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
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
Great Arif. Guess how am I?
ReplyDeleteyu cant guess who m i
ReplyDeletearif bhai wel gd