Notifications
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 451 Most Valuable Professional
André Arnaud de Cal... 428 Super User 2025 Season 2
BillurSamdancioglu 239 Most Valuable Professional