We want to send the item’s sales order line ID on ...
# suitescript
j
We want to send the item’s sales order line ID on every related transaction, such as item fulfilment, invoice, credit, return authorisation. As you know, line ID is not consistent throughout the related records. You can not source line ID in a custom transaction line field and you can not use a workflow for it. Our worst case scenario is to script it. Or is there any better idea?
s
scripting it is your best case scenario, not worst case.
j
If it’s our only option, yes, then it’s the best. But pretty bad database structure if you can’t derive an invoice, credit, or RMA line to the original SO line without making shit up by yourself
b
searches and queries can join to the related line to get the line id
the actual records vary on if they use an orderline field
s
I quite agree with your last statement @Jesper M!
j
Yes, we can join us back in suiteql from credit to order but prefer not to in this case…