> 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/order-processing/sale-order/so-configuration/show-sales-for-last-number-of-days.md).

# Show Sales For Last Number of Days

**YouTube:** [How to Configure Last N Days Sales Display in the Sales Order Entry Grid?](https://www.youtube.com/watch?v=bz3ExnHxkwk)

## How to Configure Last N Days Sales Display in the Sales Order Entry Grid?

In this tutorial, we will learn how to display an item's recent sales quantity in the Sales Order entry screen using the **Show Sales For Last Number of Days** feature in Logic ERP. This feature helps users view the quantity sold during a specified number of past days, enabling more informed order planning.

***

### Objective of This Feature

* Display recent sales quantities during Sales Order entry.
* Improve order planning using historical sales data.
* Help users make informed stocking decisions.
* Reduce the need to manually check sales reports.
* Increase efficiency during order creation.

***

### Access to Sales Order Configuration

* Go to the **Sales Order** module.
* Open **Configuration**.
* Select the required **Sales Order Configuration**.
* Locate the option labeled as:

> **"Show Sales For Last Number of Days"**

* Enter the required number of days.
  * For example: **10 Days**

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

* This means the Sales Order will display the total quantity sold for each item during the previous **10 days**.
* Save the configuration.

***

### Create a New Sales Order

* Click **New Order** to refresh the window.
* Proceed with creating a new Sales Order.

If the **Sale Quantity Units** column is not visible:

* Open **Setup Column Attributes**.
* Enable the **Sale Quantity Units** column in the Item Details grid.

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

**Observe the Functionality**

* Proceed to transact an item in the Sales Order.

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

**Result**

* The system automatically displays the sales quantity for that item based on the number of days defined in the configuration.
* For example, if **10 days** are configured, the Sales Quantity column displays the total quantity sold during the last **10 days**.

***

### Verify the Sales Quantity

To verify the displayed quantity:

* Open the **Sales Register Detailed Report**.
* Filter the same item.
  * Generate the report for the last **10 days**.

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

**Result**

As shown in the report:

* The total quantity sold for the item during the last **10 days** is **15 units**.

The same quantity is displayed in the **Sale Quantity Units** column within the Sales Order entry screen, confirming that the feature is working correctly.

***

### Key Benefits

* Displays recent sales history during order entry.
* Supports better inventory and replenishment planning.
* Reduces the need to switch between reports and transaction screens.
* Improves order accuracy.
* Speeds up the sales order creation process.

***

### Best Practice Tips

* Set the number of days based on your business cycle and sales trends.
* Keep the **Sale Quantity Units** column enabled for quick reference.
* Periodically review the configured number of days to ensure it aligns with your inventory planning requirements.
* Use the **Sales Register Detailed Report** to validate sales quantities whenever needed.

***

### Final Outcome

After enabling **Show Sales For Last Number of Days**, Logic ERP automatically displays the quantity sold for each item during the specified period directly within the Sales Order entry screen. This provides users with valuable recent sales history, enabling faster, more accurate, and better-informed order creation.


---

# 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/order-processing/sale-order/so-configuration/show-sales-for-last-number-of-days.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.
