> 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-version-release-notes/november-2019/billing/retail-margin-on-mrp-column-attribute-added-in-data-entry-grid-of-sale-bill.md).

# Retail Margin on MRP Column Attribute added in Data Entry Grid of Sale Bill

In the ‘**Setup Column Attributes**‘ of Sale Bill, a new column attribute has been added i.e., “**Retail Margin on MRP**“.

For calculating the Retail Margin, the **Sale Bill** of the item will be subtracted from **MRP**, then divided by MRP. The outcome will be then multiplied with 100, which will give you the **Retail Margin on MRP** value for the item.

**((MRP-Sale Bill)/MRP)\*100**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FRw6DNC77TwDk7z0vcim5%2Fimage.png?alt=media&amp;token=4dedab2d-c6ad-400b-a0c2-374ec3407a1c" alt=""><figcaption></figcaption></figure>

To make this work, first, you have to enable **Display Profitability in Bill** option in the **Sale Voucher Configuration** as shown in the figure below:

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FrZjQq28FWqkXbsKqPxUB%2Fimage.png?alt=media&amp;token=e39c0a4f-8b30-42ce-a619-3aaea44141ff" alt=""><figcaption></figcaption></figure>

### Retail Margin(%)

There’s another column attribute i.e. **Retail Margin(%)** to display the percentage value of profitability. For calculating Retail Margin(%), the **Sale Rate** value will get subtracted from **Purchase Rate**. Then, it will be divided with **Sale Rate** value. The outcome will then multiply with **100**, which will give you Retail Margin(%) value for the item.

**((Sale Rate-Purchase Rate)/Sale Rate)\*100**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FQY7abcK2naObfHOd34ts%2Fimage.png?alt=media&amp;token=b1aa8426-2e3a-40f6-8298-14058ad816cb" alt=""><figcaption></figcaption></figure>

But first, you have to set Purchase Rate in the Sale Voucher Configuration settings.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FqVPogOoUyvHNQTmcIPaF%2Fimage.png?alt=media&amp;token=2cbc094c-44ae-48a5-a561-d8685b400d9a" alt=""><figcaption></figcaption></figure>


---

# 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-version-release-notes/november-2019/billing/retail-margin-on-mrp-column-attribute-added-in-data-entry-grid-of-sale-bill.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.
