Thanks Zemp,
As you said, I've done all required steps up to the point that actually inserting the record. I have no idea which fields are required and editable, so I tried a few fields and keep getting an error saying "Invoice line must be apply to a receipt line". Any light on this?