> 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/purchase-order/po-configuration/po-item-group-expression-configuration.md).

# PO Item Group Expression Configuration

**YouTube:** [How to Set Up a Default PO Item Group Expression in Purchase Orders?](https://www.youtube.com/watch?v=zmwleWDr9OI)

## How to Set Up a Default PO Item Group Expression in Purchase Orders?

This tutorial explains how to automatically generate Purchase Orders using Item Group Expression Configuration in Logic ERP. With this feature, the system intelligently calculates Purchase Order quantities based on predefined expression formulas configured item group-wise.

***

### Objective of This Feature

* Automate Purchase Order quantity calculation.
* Generate PO quantities using predefined formulas.
* Reduce manual quantity calculations.
* Improve procurement planning and efficiency.
* Apply Item Group-wise purchase logic automatically.

***

### Access to Purchase Order Configuration

* Open **Purchase Order Configuration Window.**
* Navigate to **Defaults Section.**
* Locate the option labeled as:

> **“PO Item Group Expression Configuration”**

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

**Available Configurations**

* The dropdown displays all predefined expression configurations available in the system.

**Action**

* Select required Expression Configuration.
* **Save** the Configuration.

***

### Create a New Purchase Order

**Transaction Process**

* Initiate **New Purchase Order Entry.**
* Define **Supplier.**
* Proceed to **Item Details Section.**

***

### Retrieve Items Using Expression Configuration

* Click **Retrieve Button.**
* Select **Retrieve from Item Group Expression.**

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

* Click **OK**

***

### Select Item Group and Retrieve Items

**System Behavior**

* A new window appears displaying:
  * Item Groups.

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

**Important**

* By default:
  * Only those Item Groups are displayed for which expressions are already configured.

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

* Click **Refresh.**

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

**System Behavior**

* The system automatically:
  * Calculates PO Quantity according to the defined expression formula.

**Final Step**

* Click **OK**

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

**Result**

* Items along with calculated PO quantities:
  * Are automatically retrieved into the Purchase Order

***

### Configure Item Group Wise Expressions

* Go to **Main Menu → Setup Module**
* Open **Configurations Menu**
* Select **Setup Item Group Wise Expression for PO Calculations**

**Create a New Expression Configuration**

* Define Configuration Name

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

* Select Item Group.

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

**Define Expression Formula**

* Press **Space Key** in the Expression column.
* Script Editor opens.

**Formula Setup**

* Using:
  * Available Fields
  * Functions
* Create Required Formula for PO Quantity Calculation.

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

* Save the Expression Configuration

***

### Customize and Reuse Configurations

**Additional Features**

* Customize Configuration settings as per business requirements
* Copy PO Expressions from Source Groups to Destination Groups

<figure><img src="/files/4Jt2vb2l8L6AnksOPj8B" alt=""><figcaption></figcaption></figure>

***

### Key Benefits

* Automates Purchase Order quantity calculations
* Reduces manual effort and errors
* Supports intelligent procurement planning
* Enables flexible Item Group-wise PO generation
* Improves inventory management efficiency

***

### Best Practice Tips

* Define accurate formulas for each Item Group
* Review expression configurations periodically
* Use standardized calculation logic across departments
* Test configurations before applying them in live transactions

***

### Final Outcome

* Purchase Order quantities are automatically calculated using predefined expressions
* Item Group-wise procurement becomes faster and smarter
* Manual quantity calculations are minimized
* Purchase planning becomes more accurate and efficient in Logic ERP


---

# 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:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/order-processing/purchase-order/po-configuration/po-item-group-expression-configuration.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.
