Announcements
No record found.
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.
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.
I'm not sure if I get it good here. No data output
salesline::find(ProjItemTrans::find(projInvoiceItem.ProjTransId).inventtransid).SalesId;
Okay my bad. I Should use findInventTransId
SalesLine::findInventTransId(ProjItemTrans::find(projInvoiceItem.ProjTransId).inventtransid).SalesId;
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 510 Super User 2026 Season 1
Giorgio Bonacorsi 399
Adis 251 Super User 2026 Season 1