Hi
When you add line item directly into the delivery document in that case, system consider order type DL(Default order type for Delivery W/O reference) for that line item instead of OR due to which you are not able to see the original Sales Order details in the document flow.
As suggested by TW you should delete the whole delivery document and create a fresh delivery from your SO.