> 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/purchase-voucher-configurations/other-settings-2/expiry-date.md). Agents can also search and read this documentation through its [MCP server](https://kb.logicerp.com/~gitbook/mcp).

# Expiry Date

YouTube: [How to Automate Expiry Date calculation in purchase ?](https://www.youtube.com/watch?v=v6m9IKVOAUg)

## How to Automate Expiry Date calculation in purchase ?

### Introduction

This tutorial will walk you through the process of automating expiry dates in purchase transactions.&#x20;

### **Setup in Item Master:**

* Navigate to the Setups/Setup Items and then click on "Setup Items Multiple Packs/Sizes".
* Mark the option with the name of "Perishable/Expiry Item" - (Fig-1)
  * Note: If Perishable/Expiry Option is not showing in Item Master. Enable it from Column Locks.
* Locate the option "Days to Expiry" Under Purchase Defaults in Pack/Size Column. (Fig-2)

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FuHsUSTq3nmCtZCr1iJun%2FFig%201.png?alt=media&amp;token=e0622a30-efb0-44e2-9f45-2d6d5ef110d2" alt=""><figcaption><p>(Fig-1)</p></figcaption></figure>

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FIxArkLBwi7JwpFqRncCc%2FDays%20to%20Expire%20in%20item.png?alt=media&amp;token=05a12758-2438-4322-bb2a-beea86798ab1" alt=""><figcaption><p>(Fig-2)</p></figcaption></figure>

### **Configuration Settings for Expiry Date:**

* Navigate to the "Purchase Voucher Configuration".
* Click on "Other Settings-2".
* Locate the option "Expiry Dat&#x65;**."**
* Firstly, let us Choose "Doc Date + Days to Expire".

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fn2h4uX8sHZi6BfEl13Sa%2FExpiry%20Date%20as%20doc%20date.png?alt=media&amp;token=ea2a4a64-3b9f-461f-9438-36cd45702b09" alt=""><figcaption></figcaption></figure>

### **Observe Impact on Purchase:**

* Create a "New a Purchase Voucher".
* As soon as you define the **document date** in the header and select an item, the software will automatically generate the **expiry date** for that product.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fta9SuAfDHra1mCsWtQev%2FDays%20Calculated.png?alt=media&amp;token=25e406d1-5971-480e-9f02-bb85c3c7a737" alt=""><figcaption></figcaption></figure>

### **Auto-Calculation Based on Manufacturing Date**

* The expiry date is determined by adding the **defined days to expiry** to the **manufacturing date**.
* **Steps:**
  * Enable the **Manufacturing Date** column under **Setup Column Attributes**.
  * Once the **Manufacturing Date** is entered, the system **automatically calculates** the expiry date.

**Benefits of Expiry Date Automation in Logic ERP**

* **Reduces manual effort** and increases accuracy.
* Ensures **efficient inventory management** and smooth operations.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/setups/configurations/purchase-voucher-configurations/other-settings-2/expiry-date.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
