> 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/party-wise-settings/setup-branch+item-group-wise-cs-value-limit-for-po.md).

# Setup Branch+Item Group Wise CS Value Limit for PO

**YouTube:** [How to Set Up Branch- and Item Group-Wise Closing Stock Limits for Purchase Orders?](https://youtu.be/ruz26L0ON5M)

## How to Set Up Branch- and Item Group-Wise Closing Stock Limits for Purchase Orders?

In this tutorial, we will learn how to set up a **Branch + Item Group wise Closing Stock Value Limit** for Purchase Orders in Logic ERP.

***

### **Open Setup Window**

* Go to **Main Menu → Setup Module**
* Navigate to **Party Wise Settings**
* Open **“Setup Branch + Item Group Wise CS Value Limit for PO”**

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

***

### **Define Limit Settings**

* Select Transaction Type: **Purchase Order / Purchase / Challan**

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

* Choose Rate Source: **Lot Rate** or **Item Rate**

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

* Select **Rate As** option as required

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

* Choose **Item Group Level**

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

* Select the **Branch** and **Item Group**

<div><figure><img src="/files/04fXXvXbxO3HRwIEZqZn" alt=""><figcaption></figcaption></figure> <figure><img src="/files/AaKSu8c7KHGHycsXNTRN" alt=""><figcaption></figcaption></figure></div>

* Enter the **Limit Value**

<figure><img src="/files/9iqmmULTajqgLAMrvBrv" alt=""><figcaption></figcaption></figure>

* Click **Save**
* Review the saved details and entry mode.

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

***

### **Import via Excel (Optional)**

* You can also import settings using an Excel sheet by clicking **“Retrieve from Excel.”**

<figure><img src="/files/9JzW34eDXKYDR5Qpm0I8" alt=""><figcaption></figcaption></figure>

* Click the **Help** button to check the required columns.

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

* Browse and select the file from your device.
* Click **Refresh** to import the data.

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

* Once imported, click **Save**.

***

### **Enable Validation in Purchase Order**

* Open **Purchase Order Window**
* Go to **Configuration → Other Settings**
* Enable: **Check Closing Stock Limit for PO**

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

* Save settings

***

### **Create Purchase Order**

* Click **New Order**
* Enter item (from defined item group)

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

**To Verify Stock:**

* Check **Stock Query** for closing stock value
* Check **Pending Purchase Orders Report** for pending PO value

**System Validation**

* If **PO Value + Closing Stock Value > Defined Limit**
* System will show a **warning prompt** while saving

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

***

### **Apply Same Validation for Purchase / Challan**

**Steps:**

* Select **Branch & Item Group**
* (Optional) Select **Linked Branch**

<div><figure><img src="/files/mSivYiYXO72kvIwfEQuH" alt=""><figcaption></figcaption></figure> <figure><img src="/files/jwF1cAnnCMz31HdN7som" alt=""><figcaption></figcaption></figure></div>

* Enter **Limit Value**
* Define **Date Range**

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

* Click **Save**

***

### **Enable for Purchase / Challan**

* Open **Purchase / Challan Window**
* Go to **Configuration → Other Settings**
* Enable: **Check Closing Stock Value for Purchase**

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

* Save settings

***

### Implement in Purchase/Challan

* While saving Purchase / Challan
  * System will show a **warning** if limit is exceeded

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


---

# 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/party-wise-settings/setup-branch+item-group-wise-cs-value-limit-for-po.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.
