# Expiry/Near Expiry prompt at the time of billing

YouTube: [Expiry Prompt at the time of Billing](https://youtu.be/oP8mLxSwspI?si=mdDcuDwYJpX9Pepd)

### 🔔 Expiry Batch Alerts in Logic ERP (Sale Bill Window)

Let’s explore how Logic ERP notifies users about **expired and near-expiry batches** in the **Sale Bill window** under the **billing** option🧾⚠️.

***

### ❌**Expired Batch Alert**

📦 When trying to sell an **expired batch**, Logic ERP instantly triggers a **prompt**.

* 🔘The user is given an explicit choice to either proceed with the transaction or cancel it.
  * &#x20;Select **"Yes"**✅ to proceed with the sale and continue the transaction.
  * Choose **"No"**❌ to cancel and stop the process.
* In this scenario, as an item from a specific batch is prepared for sale, the system automatically triggers an alert🗓️ .
* The notification specifies the **batch expiry date**, which is a crucial piece of information for the user.

🔍 **Example**: The system detects a batch expired back in **2018** — and notifies you right away. 🛑

***

### 🟥 **Near-Expiry Batch Highlighting**

Logic ERP also flags **batches close to expiry** 🔴 so you can act quickly.

📌 **Examples**:

* **Batch 1** – Expires in **4 months** 🕓 (still okay, but still requiring tracking👀)
* **Batch 2** – Expires in **2 days** ⚡ (urgent need for its usage !)
* Example of **batch management**:
  * When items have **multiple batches** available, those batches that are **nearing their expiry dates** are given particular attention.
  * Such batches close to expiring are **highlighted in red**🔴 to make them easily identifiable.
  * This approach assists in prioritizing the usage of batches to **minimize waste**🚮 and ensure product effectiveness.
  * Highlighting helps staff quickly identify and take necessary action on batches that are about to expire⏳.
  * Maintaining a focus on expiry dates contributes to efficient inventory management and helps in **accurate Billing**🧾.

***

### ⚙️ **Customizing Near-Expiry Duration**

To adjust the duration for which a batch is highlighted as near-expiry, follow these steps:

* 🛠️ Navigate to the **settings** menu in  **Logic ERP**.
* At the time of **Lot or Batch Selection press F9**🖱️ to modify the current settings for **near-expiry batch highlighting**.
* Change the **Duration** in **Lot search configuration** window📅as per your choice.
* **Effect of Changes**:
  * Setting the duration to**3 months**, will remove **Batch 1** from **red highlighting**, as it's outside the new range.

***

#### 🎯 Why It Matters

Keeping track of batch expiries:

* 🔄 Improves inventory flow.
* 🧠 Helps staff make quicker decisions.
* ✅ Reduces waste.
* 💰 Enhances accuracy and profitability.

And that’s how Logic ERP helps you stay on top of **expired and near-expiry inventory** with timely alerts and flexible settings! 💡🧠📦


---

# 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/expiry-near-expiry-prompt-at-the-time-of-billing.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.
