# 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FFDDNuEVDLH4OAwGhK3Ah%2FSetup%20-%20Company%20WIse.png?alt=media&#x26;token=2a7afcc4-0cfa-4cdc-8590-310ee98a7fd3" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F3vRuDyzrv50FrlXPh3c6%2FEntry%20Mode.png?alt=media&#x26;token=e46880ba-d857-464c-977f-91dfc94f34f4" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FHE2l4tvqiEwYNP59SIGa%2FAgent%20with%20Company.png?alt=media&#x26;token=8c33e104-fcf0-4328-8883-8c78f225d620" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FMzSosgD7vpmLjzFMgYJl%2FAgent%20without%20comapny.png?alt=media&#x26;token=72f4700f-4be9-4c00-951a-db9c3753992c" alt=""><figcaption></figcaption></figure>

***

### Update Another Brand&#x20;

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

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FzMRBoj1rurmE16jFWKBa%2FAnother%20Agent.png?alt=media&#x26;token=98f25fff-e774-41c6-a145-d14dc6abec7c" alt=""><figcaption></figcaption></figure>

* Choose another brand

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FGRkaz72Ey9jlk4ZcHtPW%2FAnother%20Brand.png?alt=media&#x26;token=f6935ae9-2ccd-496b-a9bc-4e8a62711fc4" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FL4HItHtRzwDB8zubDpeY%2FAnother%20-%20Sale%20Bill.png?alt=media&#x26;token=7116b5b3-f4da-412e-a8ed-a61b401b1e35" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FnxdgSeV2MDd9PQzDJkBm%2FReport.png?alt=media&#x26;token=c0dc7de6-9685-4223-81be-25bc427c4913" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fx6DnOdqhQbYMYgSwg58w%2FSet%20Column%20Attribute.png?alt=media&#x26;token=5a88e819-4622-401b-b635-0e195927c85e" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FLp5zVakbDdk2VyO39Cz4%2FMultiple%20Agent.png?alt=media&#x26;token=79e342af-1a39-4f7b-abc7-6cd6a16a4180" 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**.
