> 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/configurations/sale-voucher-configuration/other-settings-1/do-not-allow-sale-of-lots-with-pur-date-greater-than-bill-date.md).

# Do Not Allow Sale of Lots with Pur Date greater than Bill Date

**YouTube:** [How to Prevent Billing of Lots / Batches With Purchase Date later than the Sale Bill Date ?](https://www.youtube.com/watch?v=vNe2tdh-54c)

## How to Prevent Billing of Lots / Batches With Purchase Date later than the Sale Bill Date?

In this tutorial, we will demonstrate how to set up a control in Logic ERP that prevents the sale of lots with a purchase date later than the bill date, ensuring data accuracy in transactions.

### **Access Sales Voucher Configuration**

* Navigate to **Sales Voucher Configuration**.
* Select the appropriate **Billing Series**.
* Locate the option **"Do Not Allow Sale of Lots with Purchase Date Greater than Bill Date."**

<figure><img src="/files/uc1y3jUFWkHCvyZFqwK2" alt=""><figcaption><p>Let's keep this feature disabled to observe its impact in Billing.</p></figcaption></figure>

### **Observe the Impact with the Feature Disabled**

* Keep the feature **disabled** and proceed with a test transaction.
* Before billing, review an existing **Purchase Voucher** entered with the current date.
* In the **Billing System**, select a bill date that is earlier than the purchase date of the lot.
* Since the feature is disabled, the system **allows** the sale of the lot, even when its purchase date is later than the bill date.

### **Enable the Feature and Re-test**

* Go back to **Sales Voucher Configuration** and **enable** the feature.
* Now, when attempting to process the same transaction, the system **restricts** the sale of lots with purchase dates greater than the bill date.
* The lot no longer appears in the **Lot Search Window**, ensuring compliance with billing accuracy rules.

<figure><img src="/files/qxJZddHAXbHWIlC6dABh" alt=""><figcaption><p>As you can see in the widgets, the LOT quantity is available, but the LOT is not being displayed.</p></figcaption></figure>

This feature helps maintain accurate and controlled inventory sales, preventing errors in lot-based transactions.<br>


---

# 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/configurations/sale-voucher-configuration/other-settings-1/do-not-allow-sale-of-lots-with-pur-date-greater-than-bill-date.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.
