> 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/billing/link-retail-customers-with-sales-bills.md).

# Link Retail Customers with Sales Bills

**YouTube:** [How to Link Retail Customers with Sales Bills After Saving?](https://www.youtube.com/watch?v=fn6TKE0c5fg)

## How to Link Retail Customers with Sales Bills After Saving?

In this tutorial, we will learn how to **link a retail customer with an already generated sales bill** in Logic ERP.

***

### Generate a Retail Bill Without Customer Details

* Open the **Sales Bill** module.
* Scan or select the product.
* Proceed with billing **without entering any retail customer details**.
* Enter the **payment information**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F08IydnSIOSX2z56bt0fd%2FWithout%20Customer.png?alt=media&#x26;token=54a9b7b7-7303-4077-afed-732d01b661e2" alt=""><figcaption></figcaption></figure>

* Save the bill.

**Result:**

The sales bill is generated successfully **without a retail customer linked**.

***

### Link a Retail Customer to an Existing Bill

For a faster and more efficient process, use the dedicated linking feature:

* Open the **Link Retail Customers with Bills** module.
* Tick **Select Bills** and pick the bill to which you want to link a retail customer.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FVXjj9UqKHLzye5mdMysx%2FSearch.png?alt=media&#x26;token=a45e64b9-0a09-46bb-9839-e3cd8aeb88b2" alt=""><figcaption></figcaption></figure>

* Click **OK**.
* Select the bill and click **Link Retail Customer**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FzFK07J3kCCtNhvR8IpT1%2FLink%20Retail%20Customer.png?alt=media&#x26;token=3bb91e5f-9d9d-4990-ab44-3a0c8e51f45b" alt=""><figcaption></figcaption></figure>

* Choose the appropriate **retail customer** from the list.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F8rQWUa3rwT0zrWteLzsa%2FChoose%20Reatil%20Cusotmer.png?alt=media&#x26;token=7d1769a6-f781-487e-9e72-ae3e10a83e18" alt=""><figcaption></figcaption></figure>

* Click **OK**.
* Confirm the action by clicking **Yes** on the update confirmation message.

**Result:**

The selected retail customer is now successfully linked to the sales bill.

**Points to note:**

* Only bills of the current branch and financial year that do not have a retail customer are listed.
* One bill is linked each time you click **Link Retail Customer**.
* A bill that is already linked to a customer cannot be changed here; the message "This bill is already linked to a Retail Customer..." appears.
* You need modify rights for sale bills, and the bill date must be open for changes.
* The customer's loyalty points for that bill are given when it is linked, unless **Do not Update Points in Modify Case** is ticked in **Set Customer Points Configuration**, or the series or customer is set not to use loyalty points.

***

### Verify the Update

* Open the same **Sales Bill**.
* Review the **customer details section**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F78QqFoKd5qEKWEFo3YOw%2FSale%20Bill%20With%20Retail%20Customer.png?alt=media&#x26;token=00f4694c-11ec-4a75-b978-ab7a4d187248" alt=""><figcaption></figcaption></figure>

You will notice that the **retail customer information has been updated correctly** in the bill.

***

### Summary

* Retail bills can be generated **without customer details**
* Existing bills can later be linked to **retail customers**
* Dedicated module ensures **quick and accurate linking**
* Customer details are **updated instantly** in the sales bill


---

# 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/billing/link-retail-customers-with-sales-bills.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.
