# Get purchase/transfer/sales lines in whse request / whse shipment

This feature lets you specify the sender of a warehouse receipt and the receiver of a warehouse shipment, and pick individual source document lines (purchase orders, transfer orders, sales orders) instead of whole documents. It also shows the destination name on pick and put-away activities.


The **Warehouse Receipt** page (and the **Warehouse Receipts** list) has new fields:

| Field | Description |
|---|---|
| Sender Type | Who the goods come from: Vendor, Customer or Location. It cannot be changed when the receipt already has lines. Changing it clears the sender number and name. |
| Sender No. | Code of the sending vendor, customer or location. |
| Sender Name | Name of the sender. |


1. Open the warehouse receipt, fill in **Location Code** and **Sender Type** (Vendor or Location) and optionally **Sender No.**.
2. Choose the **Get Source Lines** action (F8).
3. A list of available lines is shown:
   - **Vendor**: item lines of purchase orders for the receipt location, with outstanding quantity, having a warehouse request and not already on another receipt; filtered by vendor if specified.
   - **Location**: posted transfer shipment lines to the receipt location with quantity still in transit; filtered by the origin location if specified.
4. Select the lines and confirm: they are added to the receipt.


When the sender type is Vendor or Location, the standard **Get Source Documents** action opens a dedicated page:

- **Warehouse Get Purchase Orders** (Vendor sender): select purchase orders and all their eligible item lines are added.
- **Warehouse Get Transfer Shipments** (Location sender): select posted transfer shipments (No., Transfer Order No., External Document No., Posting Date, from/to locations and names) and the lines still in transit are added.

With a Customer sender, the proposed warehouse requests are filtered by the specified customer.


The **Warehouse Shipment** page (and the **Warehouse Shipments** list) has new fields:

| Field | Description |
|---|---|
| Receiver Type | Who the goods are going to: Vendor, Customer or Location. Changing it clears the number and name. |
| Receiver No. | Code of the receiving vendor, customer or location. |
| Receiver Name | Name of the receiver, filled in automatically when the number is selected. |


1. Fill in **Location Code** and **Receiver Type** (Customer or Location) and optionally **Receiver No.**.
2. Choose the **Get Source Lines** action.
3. A list of available lines is shown:
   - **Customer**: item lines of sales orders for the location with outstanding quantity; filtered by customer if specified.
   - **Location**: transfer order lines shipping from the location with outstanding quantity; filtered by destination location if specified.
4. Select the lines and confirm: they are added to the shipment.


| Page | Field | Description |
|---|---|---|
| Purchase Lines | Warehouse Receipt No. | Warehouse receipt containing the purchase order line. |
| Warehouse Pick / Warehouse Put-away | Destination Type, Destination No., Destination Name | Show in the header who the activity is for (read-only). |
| Warehouse Picks / Warehouse Put-aways | Destination Name | Destination name in the list. |


- When a warehouse receipt is created with **Get Source Documents**, sender type and number are filled in automatically from the source document.
- Sender and receiver type, number and name are kept on posted receipts and shipments.