# Alert during the Billing if the Product Margin goes negative with Red color

**YouTube:** [Negative Margin Alert in Billing](https://youtu.be/iXZFVeE-7dw?si=jQD9YAELO4JdlaPb)

### 📊🛑 **Margin Alert Feature in Sale Bill Touch Screen – Logic ERP**

In this tutorial, we'll explore how to use the **Margin Alert** feature in the **Sale Bill Touch Screen Window** of **Logic ERP.** This tool helps identify 💸 **negative margins** and avoid potential losses 🚫.

***

### ⚠️**Real-Time Margin Alerts**

🧾 While adding items to the **Sale Bill**:

* 😬 Suppose you accidentally enter a **40% discount** instead of **4%.**
* ❗As a result, the system detects a **negative margin** (loss!),  indicating a loss on the transaction.
* 🔴 **The entire line is highlighted in red** – alerting you to the issue.
* 🛠️ Reduce the discount to **4%.**
* ✅ Margin turns **positive**, removing the red alert.

***

### 👁️**Enabling the Margin Column**

🛠️ If **Margin Percent** is not visible in the **Sale Bill window**:

1. Navigate to the **Setup Column Attributes** ⚙️.
2. ✅ Tick **"Margin Percent"** to enable it.\
   Now you can **monitor margins** in real-time! 📉📈.

***

### 🧮 **Adjusting Margin Calculation**

To modify the **Margin Percent Calculations:**

1. 📋 Navigate to the **Sale Voucher Configuration** Window.
2. 🧾 Select the appropriate **Sale Bill Series.**
3. Navigate to:\
   `Other Settings 1 → Other Settings → Defaults-2`
4. 🧩 Select **"Define Bill-wise Profit".**
5. 🛒 Configure the following for accurate sales margin calculation:
   * **Purchase Rate As**
   * **Pick Rates From**
   * **Sale Value As**
6. ✅ Make sure **"Display Profitability in Bill"** is enabled.

***

#### ✅ **Why Use Margin Alerts?**

By activating and using this feature:

* ❌ Avoid pricing mistakes.
* 💰 Maintain profitability.
* 🧾 Ensure accurate and responsible discounting.

Stay on top of your margins and make smart selling decisions with Logic ERP! 📈💡


---

# Agent Instructions: 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:

```
GET https://kb.logicerp.com/logic-erp-in-action-a-feature-overview/distribution/billing/alert-during-the-billing-if-the-product-margin-goes-negative-with-red-color.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
