Hello Alejandro
As you can see in relationships map in your Sap Business One client,
inv1 lines are related with rin1 lines using the following fields:
- Inv1.ObjType =rin1.BaseType
- inv1.DocEntry = rin1.BaseEntry
- inv1.LineNum = rin1.BaseLine
This relationship is identical in all marketing documents: dln1 lines with inv1 lines and so on.
be aware about deleted documents etc.
Regards
Pierre