Hi,
I'll go with second solution given by Anand. I have seen such scenarios specially in steel industries where material is first transferred to ware houses and then sold to customer and this involves the documentation at warehouse only.
Going with Z table would be feasible since change in business doesn't seem possible. Store inspection lot details through batch number, customer details through the delivery note and similarly others, if any.
Using the delivery number, you can fetch the details from this table and print them into CoA. This also enable the authenticity of the data since the person who's printing it at ware house cannot change / modify the data.
ntn