Announcements
Hello,
is there a way to get the original sales order from project invoices?
I need to put on my project invoce what sales order it is related to.
Like this project id is related to this sales order.
Okay my bad. I Should use findInventTransId
SalesLine::findInventTransId(ProjItemTrans::find(projInvoiceItem.ProjTransId).inventtransid).SalesId;
I'm not sure if I get it good here. No data output
salesline::find(ProjItemTrans::find(projInvoiceItem.ProjTransId).inventtransid).SalesId;
Hi Radek,
The project invoice line has a reference to the Inventory transaction on the field LotID (InventTransID). In the inventory transaction there is a reference number which is the sales order for your scenario.
André Arnaud de Cal...
294,099
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator