# Agent + Company/Group Linking

**YouTube:** [How to Configure Agent and Company/Group Linking for Sales Bill?](https://www.youtube.com/watch?v=g994G4hyVw8)

## How to Configure Agent and Company/Group Linking for Sales Bill?

In this tutorial, we will learn how to **link agents with brands or item groups in Logic ERP**, enabling automatic agent selection during billing.

***

### Link Agents with Brands or Groups

* From the **Main Menu**, open the **Setup Module**
* Navigate to **Setup Accounts** and select **Setup Agent**
* Click to open **Agent + Company / Group Linking**

**Configure Agent Linking**

* Select the **required agent** from the dropdown list
* Under **Linking Type**, choose:
  * **Company** (Brand-wise linking),
  * **Group** (Item group-wise linking)
* If **Company** is selected, choose the **required brand** from the list

<figure><img src="/files/VtaziXkPcq6YWUbhnewm" alt=""><figcaption></figcaption></figure>

With this configuration, whenever a bill is generated for any item belonging to the selected brand, the **agent will be automatically picked item-wise**

* Click **Save** to complete the linking

**Verify Linking**

* Switch to **Entry Mode**
* Review the linking to confirm which agents are assigned to the selected brand or group

<figure><img src="/files/Qli7PEwjL7Ixp7aITmGo" alt=""><figcaption></figcaption></figure>

***

### Verify Agent Auto-Pick During Billing

* Open the **Sales Bill** window and initiate a new transaction
* Skip agent selection in the **voucher header**
* Move directly to the **Item Details** section

If the **Agent Name column** is not visible, enable it from **Setup Column Attributes**

* Transact an item belonging to the **linked brand**
* You will notice that the **agent's name is automatically fetched**

<figure><img src="/files/BWgT3wc1AlLTVY4Lg4Dl" alt=""><figcaption></figcaption></figure>

**Implement with an Unlinked Brand**

* Transact an item from a different brand
* Since no agent is linked to that brand, **no agent is picked**

<figure><img src="/files/Y438Hssl6XaziOFjE12P" alt=""><figcaption></figcaption></figure>

***

### Update Another Brand&#x20;

* Return to the **Agent + Company / Group Linking** window
* Select the agent

<figure><img src="/files/Fjcru4gcLbWYjrUNwA44" alt=""><figcaption></figcaption></figure>

* Choose another brand

<figure><img src="/files/brLflZY19kAabY04zEzu" alt=""><figcaption></figcaption></figure>

* **Save** the changes.
* Now go back to the **Sales Bill** window and transact the item again.
* This time, the agent is automatically selected as per the updated configuration.

<figure><img src="/files/iqZmP94gM0xlyPa2a8Ev" alt=""><figcaption></figcaption></figure>

***

### View Agent-Wise Sales Reports

* Go to **Reports & Queries**
* Open **Agent Wise Reports**
* View **Agent-wise and Product-wise Sales Analysis**

**This report provides:**

* Item-wise sales details
* Agent-wise contribution
* Better visibility into agent performance by product or brand

<figure><img src="/files/SEhFExXhzhAPAXiaNDOj" alt=""><figcaption></figcaption></figure>

***

### Link Multiple Agents to a Brand or Group

* Open **Entry Mode**
* Go to **Set Column Attributes**
* Enable the **Multiple Agents** column

<figure><img src="/files/UUE4nf8bEqgwIkiuHUjs" alt=""><figcaption></figcaption></figure>

* Click **Refresh**
* Press the **Space key** in the Multiple Agents column to select multiple agents

<figure><img src="/files/X0GpnTWvueHwOX90Xw4B" alt=""><figcaption></figcaption></figure>

All selected agents will now be linked to the chosen brand or group.

***

### Conclusion

Agent-to-brand or item-group linking in Logic ERP helps automate agent allocation, reduces manual errors during billing, and enables accurate **agent-wise sales tracking and performance analysis**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/setups/setup-accounts/setup-agents/agent-+-company-group-linking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
