# 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FChUWGKTiBynfqXCxbPWI%2FDo%20Not%20Allow%20Sale%20of%20Lots%20with%20Pur%20Date%20greater%20than%20Bill%20Date.png?alt=media&#x26;token=4a990731-ac73-4c1e-b6f0-4b0151c7d637" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fu7D1BATxfWSlArEqkKUH%2FSale.png?alt=media&#x26;token=3e275ea9-71e1-442c-9ad4-a19914dbc35e" 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>
