# Show Sale for Last No of Days

**YouTube:** [How to Show Sales for the Last Defined Number of Days in Purchase Orders?](https://youtu.be/LOaJzviteR8)

## How to Show Sales for the Last Defined Number of Days in Purchase Orders?

This tutorial explains how to **display Sales Quantity for the last defined number of days** directly in the Purchase Order screen in Logic ERP. This feature helps users make **data-driven purchasing decisions** by showing recent sales trends during order creation.

***

### **Objective of This Feature**

* View **recent sales quantity** while creating Purchase Orders
* Improve **purchase planning based on demand**
* Reduce **overstocking and understocking**
* Enable **quick decision-making**

***

### Access to the Configuration

* Open **Configuration Window**
* Navigate to **General Options**
* Locate and enable the option labeled as:

> **“Show Sale for Last No. of Days”**

**Define Sale Days**

* Enter the number of days (e.g., **15 days**)

<figure><img src="/files/gLuc3luC1pJOrfuuGaif" alt=""><figcaption></figcaption></figure>

* This defines:
  * Sales data period to be displayed in Purchase Order
* Click **OK** to apply changes

***

### **Add Sales Quantity Column**

* Open **Purchase Order Window**
* Go to **Column Attributes**
* Select and enable:
  * **Sale Quantity (Packs)**

<figure><img src="/files/gihP1ZO89NHVMPJJNicZ" alt=""><figcaption></figcaption></figure>

***

### **Implement Purchase Order**

* Start a **New Purchase Order**
* Enter item details

<figure><img src="/files/sXanYIjwFOwSYJBhYDc9" alt=""><figcaption></figcaption></figure>

**System Behavior**

* Displays **Sales Quantity** in the column
* Based on the **defined number of days**

***

### **Verify Sales Data**

* Navigate to **Reports/Queries → Sales Register (Detailed)**

**Apply Filters**

* Select:
  * Same Item
  * Same Date Range (e.g., last 15 days)

<figure><img src="/files/7KvUainnQDA3z99w6HKQ" alt=""><figcaption></figcaption></figure>

**Validation**

* Compare:
  * Sales Report Quantity
  * Purchase Order displayed quantity

***

### **Key Benefits**

* Enables **smart purchasing decisions**
* Provides **real-time sales insights**
* Reduces dependency on manual report checking
* Improves **inventory planning accuracy**

***

### **Best Practice Tips**

* Use realistic **sales period (7 / 15 / 30 days)**
* Combine with **stock reports for better planning**
* Regularly verify sales data accuracy

***

### **Final Outcome**

* Sales quantity is **visible during Purchase Order entry**
* Purchase decisions become **data-driven**
* Inventory levels are **better optimized**
* Workflow becomes **faster and more efficient**


---

# 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-learning-hub-tutorials-and-best-practices/order-processing/purchase-order/po-configuration/show-sale-for-last-no-of-days.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.
