> 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-customer-database/set-customer-points-configuration/calculate-points-on-basis-of-items-skip-items-if-any-of-the-below-is-greater-than-0.md).

# Calculate Points on Basis of Items, Skip Items if any of the below is greater than 0

**YouTube:** [How to Exclude Discounted Items from Loyalty Point Calculation in Sales Bill?](https://www.youtube.com/watch?v=bo0iopPklWU)

## How to Exclude Discounted Items from Loyalty Point Calculation in Sales Bill?

In this tutorial, we will learn how to exclude items with specific discounts from loyalty point calculation in Sales Bills using the **"Calculate Points on Basis of Items, Skip Items if any of the below is greater than 0"** option in Logic ERP.

***

### Objective of This Feature

* Exclude discounted items from loyalty point calculation
* Define which discount types should make an item ineligible
* Calculate loyalty points only on eligible items
* Prevent loyalty points from being awarded on discounted items
* Ensure accurate loyalty point calculation

***

### Access to the Customer Points Configuration

* Navigate to the **Set Customer Points Configuration** module.
* Locate and enable the option labeled as:

> **"Calculate Points on Basis of Items, Skip Items if any of the below is greater than 0"**

**Configure Discount Parameters**

* The discount parameter section becomes active.
* Select the discount type that should be excluded from loyalty point calculation.
* For this example, select **Cash Discount (CD)**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FlXU6y6KBc7gF2gh0hZu1%2FCNF.png?alt=media&amp;token=c2987b4e-f366-4a74-9c30-5fe5f025de2d" alt=""><figcaption></figcaption></figure>

* Save the configuration changes.

***

### Configure Loyalty Point Settings

For this example:

* **₹100 Purchase = 1 Loyalty Point**
* **1 Loyalty Point = ₹10**

<div><figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FP7Fb9K7JpCsUh1h7THSn%2FLP.png?alt=media&amp;token=dac4a412-7f35-4d34-ab86-efd76f2abbd0" alt=""><figcaption></figcaption></figure> <figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FxHfu8hemp4vtOHMK8FVg%2FVL.png?alt=media&amp;token=52e7eb1f-6d0a-4243-8edc-88d445ced263" alt=""><figcaption></figcaption></figure></div>

These settings determine the loyalty points earned on eligible purchase amounts.

***

### Create a Sales Bill

* Navigate to the **Sales Bill** module.
* Create a new **Loyalty Customer**.
* Create a Sales Bill containing multiple items.
* Apply **Cash Discount (CD)** to one item.
* Keep the remaining items without any CD.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FvSCqbU52bp1WxLjY3q1I%2FDefined%20CD.png?alt=media&amp;token=d48d5a59-823c-40d3-8eb0-96fe75bfb636" alt=""><figcaption></figcaption></figure>

* Save the Sales Bill.

#### Verify Loyalty Points

* Create a new Sales Bill.
* Search for the same loyalty customer.
* Check the loyalty points earned from the previous transaction.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FWlU8oggtJMnIHcslQHZv%2FLoyalty.png?alt=media&amp;token=7f2c28dd-4467-468e-a164-4f0a72ec613b" alt=""><figcaption></figcaption></figure>

**Observation**

* The customer has earned **40 loyalty points**.
* To understand the calculation, open the previously created Sales Bill and review the individual items.

#### Observe the Excluded Item

**Discounted Item**

* The Last item has **Cash Discount (CD)** applied.
* Since **CD** is selected in the configuration, the software automatically excludes this item from loyalty point calculation.

**Eligible Items**

* The remaining items do not have any CD.
* Therefore, these items remain eligible for earning loyalty points.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F88BNfu2FpXBdvbr0BBE7%2FModify.png?alt=media&amp;token=b13e8925-6134-4866-bfd7-ec92f1296737" alt=""><figcaption></figcaption></figure>

***

### Verify the Loyalty Point Calculation

The total eligible purchase value is **₹4,000**.

Since the configured loyalty rule is:

* **₹100 = 1 Loyalty Point**
* **₹2000 + ₹2000 = ₹4,000**
* **₹4000  = 40 Loyalty Points**

The software awards **40 loyalty points** to the customer.

The item with CD is excluded from the calculation, ensuring that loyalty points are awarded only on eligible items.

***

### Key Benefits

* **Accurate Point Calculation:** Awards points only on eligible items.
* **Discount-Based Exclusion:** Automatically skips items with selected discounts.
* **Flexible Configuration:** Allows businesses to define applicable discount parameters.
* **Prevents Excess Rewards:** Avoids awarding loyalty points on discounted items.
* **Better Loyalty Management:** Ensures loyalty rewards follow defined business rules.

***

### Important Note

Only the discount parameters selected under **"Calculate Points on Basis of Items, Skip Items if any of the below is greater than 0"** will be considered for excluding items from loyalty point calculation.

***

### Final Outcome

By enabling **"Calculate Points on Basis of Items, Skip Items if any of the below is greater than 0"** and selecting **Cash Discount (CD)**, Logic ERP automatically excludes items having CD from loyalty point calculation. Loyalty points are then calculated only on the eligible items, ensuring accurate and controlled reward allocation.


---

# 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 dynamically by asking a question.

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

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/setups/setup-accounts/setup-customer-database/set-customer-points-configuration/calculate-points-on-basis-of-items-skip-items-if-any-of-the-below-is-greater-than-0.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
