I made a Purchase Order from a Sales Order (Actions -> Create Purchase Document -> Create Purchase orders) and now I want the "Quantity Received" and "Quantity Invoiced" fields belonging to Purchase Line to appear in Sales Line.
I made an extension of the table "Sales Line", in which I try to create such fields using "CalcFormula = Lookup ..."
But it didn't work, since for some reason the fields "Purchase order no." and "Purch. Order Line no." appear empty.
How can I link the Purchase Order with the Sales Order? Is there any other way to do this? I'm new to this and i feel lost