web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Warehouse output in projects

(0) ShareShare
ReportReport
Posted on by 174

I need to create something similar to printhistory in salesinvoice


Quantity : 5 Site : ILA-LOG-01 Warehouse : LOG-ILA-01 Location : OUT Licence plate : LS000477

I need a information how many items were selected from a warehouse and add to it intrastatcommodity.

I tried to add intrastat with this but it gives me 0 back.

int642Str(SalesLine::findInventTransId(ProjItemTrans::find(projInvoiceItem.ProjTransId).inventtransid).IntrastatCommodity);

I have the same question (0)
  • Michal Krejza Profile Picture
    on at

    Hi Radek,

    Please let me know what is your version ? 

  • RadekM Profile Picture
    174 on at

    I work on D365 FO

    For now I did something like this. But im not 100% sure for it.

     tmpPSAProjInvoice.PurchaseOrder = SalesLine::findInventTransId(ProjItemTrans::find(projInvoiceItem.ProjTransId).inventtransid).sourceitemid ;
            tmpPSAProjInvoice.PurchaseQTY =  SalesLine::findInventTransId(ProjItemTrans::find(projInvoiceItem.ProjTransId).inventtransid).salesqty ;
            
            select SalesLine join InventTransOrigin where SalesLine.InventTransId == InventTransOrigin.InventTransId 
                &&  SalesLine.inventtransid == ProjItemTrans::find(projInvoiceItem.ProjTransId).inventtransid
    
               join inventTrans where InventTrans.InventTransOrigin == InventTransOrigin.RecId 
    
               join inventdim where InventDim.inventDimId == InventTrans.inventDimId ;
    
              
            tmpPSAProjInvoice.InventBatchID = inventdim.inventBatchId;

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 384 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans