# Pay-to Vendor Validations

> **Note:** The system validates Pay-to Vendors linked to Media Vendors during Media Order creation. Validation is based on:
> 
> - Vendor status
> - Effective start and end dates relative to the plan duration

####  Multiple Pay-to Vendors Linked to a Media Vendor

**Scenario 1**

- 3 Pay-to Vendors linked:
    
    
    - 1 in *Created* status → **Invalid**
    - 1 in *Open* status → **Valid**
    - 1 with an end date outside the plan duration → **Invalid**

Result:

- Only one valid Pay-to Vendor exists.
- No selection popup appears.
- The Media Order is created automatically using the valid Pay-to Vendor.

**Scenario 2**

- 4 Pay-to Vendors linked:
    
    
    - 1 in *Created* status → **Invalid**
    - 2 in *Open* status → **Valid**
    - 1 with an end date outside the plan duration → **Invalid**

Result:

- A **Select Pay-to Vendor** popup appears.
- All Pay-to Vendors are displayed with status and date information.
- Only valid Pay-to Vendors can be selected.

**Scenario 3**

- All Pay-to Vendors are invalid.

Result:

- An error message is displayed.
- The Media Order cannot be created.

#### Single Pay-to Vendor Linked to a Media Vendor

If only one Pay-to Vendor exists:

- *Created* status → **Invalid** (error displayed)
- *Open* status → **Valid** (Media Order is created)
- End date outside plan duration → **Invalid** (error displayed)

#### No Pay-to Vendor Linked to a Media Vendor

If no Pay-to Vendor is linked:

- The system automatically assigns the **Media Vendor** as the Pay-to Vendor.
- Media Order creation is permitted.