Associating a document with an order and an invoice
If you want the details of those elements to be in the same document, you must first generate an order from an invoice or vice versa, so that they are related to each other.
After they both get related, you can
- Generate the document from an order.
- Generate the document from an invoice