You can attach PDF documents to an order – for example a delivery note supplied by the customer, an invoice, an insert or an EMCS document. Attached PDFs can be printed automatically at the packing table. You can also generate the delivery note again from the client's template and print it.

![Screenshot: Documents area in the order details with two attached PDFs](/orders/images/order-documents-details.png)

## Before you start
- To upload documents, your user needs the permission to create orders. Uploading also works for orders that are already being picked (button **Edit address / documents**, *Adresse / Dokumente bearbeiten*).
- To print the delivery note again:
  - the order must be in status *Sent* or *partially sent*,
  - a delivery note template must exist for the client (see [PDF documents](/automation/pdf-documents.md)),
  - you must have selected a workstation with a packing table (see [Packing tables](/company/packing-tables.md)).

## Step by step

### Upload a document
1. Open the order form: in the [order overview](/orders/order-overview.md) or [order details](/orders/order-details.md) click the pencil button.
2. In **PDF upload** (*PDF Upload*) choose the PDF file.
3. Choose the **Document Type** (*Dokument-Art*): **Delivery note** (*Lieferschein*), **Invoice** (*Rechnung*), insert (*Beileger*) or **EMCS Document** (*EMCS-Dokument*).
4. Choose in **Print at packing station** (*Am Packtisch drucken*) whether the document should be printed with the delivery note workflow at the packing table (default: yes).
5. Click **Save Order** (*Auftrag Speichern*).

![Screenshot: PDF upload field with document type and "Print at packing station" in the order form](/orders/images/order-documents-upload.png)

### Change or remove an existing document
1. Open the order form. Existing documents are shown under **Existing PDF** (*Vorhandene PDF*) with a small preview.
2. Change **Print at packing station** per document if needed.
3. To remove a document, tick **Remove** (*Entfernen*) under it.
4. Click **Save Order**. Removed documents are deleted together with their file.

![Screenshot: "Existing PDF" area with preview, print option and "Remove" checkbox](/orders/images/order-documents-existing.png)

### View documents
- In the [order details](/orders/order-details.md), area **Documents** (*Dokumente*), click a document name. The PDF opens in a new tab. The table shows type, name, kind and size.
- In the order overview a paperclip icon shows **Documents available** (*Dokumente vorhanden*).

### Print the delivery note again
1. Open the order details.
2. Click **Print delivery slip** (*Lieferschein drucken*).
3. The delivery note is generated again from the client's template and sent to the printer of your workstation. You see a message that the delivery note was generated and stored.

![Screenshot: "Print delivery slip" button in the order details and the success message](/orders/images/order-documents-reprint.png)

## Fields and options

| Field | Meaning | Required |
|---|---|---|
| **PDF upload** (*PDF Upload*) | The PDF file to attach. | no |
| **Document Type** (*Dokument-Art*) | Delivery note, invoice, insert or EMCS document. | when a PDF is uploaded |
| **Print at packing station** (*Am Packtisch drucken*) | Print the document at the packing table together with the delivery note workflow. | no |

## Good to know / Troubleshooting
Normally the delivery note and invoice are created automatically by the workflow when the order is finished at the packing table – provided a delivery note template exists for the client. See [Workflows](/automation/workflows.md) and [Packing](/outbound/packing.md).

| Message | Cause | Solution |
|---|---|---|
| **Required when uploading a PDF** (*Pflicht, wenn ein PDF hochgeladen wird*) | No document type chosen. | Choose a document type. |
| **No documents available** (*Keine Dokumente vorhanden*) | Nothing is attached to the order. | – |
| **The PDF could not be generated** (*Das PDF konnte nicht erzeugt werden*) | No delivery note template, or the template has an error. | Create or fix the template, see [PDF documents](/automation/pdf-documents.md). |
