> For the complete documentation index, see [llms.txt](https://kb.logicerp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/setups/setup-accounts/setup-agents/agent-+-company-group-linking.md).

# 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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
