> 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/smart-purchase-order-planner/smart-purchase-order-planner-configuration.md).

# Smart Purchase Order Planner - Configuration

## How the planner works out quantities and picks suppliers

Click **Configuration** on the [**Smart Purchase Order Planner**](https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/order-processing/smart-purchase-order-planner.md) to open its settings. A configuration is saved under a name, so you can keep several (for example one per region) and pick one on the planner. Settings that are filled in, ticked, or set to other than the first choice are shown in **bold**.

***

### **General**

* **Branches Allowed** - **Login branch only**: the planner works for the branch you are logged in to. **Any branch**: you can pick several branches with **Branches...** and create their orders in one run.
* **Show Only Items To Order** - list only the items that need ordering. Untick to also see items whose stock is enough.

***

### **Quantity**

* **Quantity Based On** - **Order levels (Min / Reorder / Max)**: order when stock, plus what is on order or in transit, falls to a set level. **Sales cover (days of sale)**: order enough for a number of days of sale; only items sold in the **Sale Period** are listed.
* **Order Levels From** - **Branch levels, else item master**, **Branch levels only** or **Item master only**.
* **Order When** (order levels only) - **Stock at or below reorder level** or **Stock at or below minimum level**. If the chosen level is 0, the other one is used.
* **Order Up To** (order levels only) - bring the stock back up to the **maximum level** or the **reorder level**.
* **Sale Period (Days)** - the past days of sale used to work out the average daily sale.
* **Cover Days** and **Safety Days** (sales cover only) - the days of sale each order should cover, and extra days kept as a buffer. An item is ordered only when its stock, plus what is on order or in transit, would not last until the supplier delivers plus the safety days.
* **Default Lead Days** - the days a supplier takes to deliver when no lead time is set up for the supplier and item. It is used for the quantity under sales cover, for the delivery-time part of the supplier score and for the delivery date. Every item is first checked with these days, so set them to your usual delivery time.
* Lead days come from the chosen supplier: first [**Branch + Supplier + Items**](https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/setups/party-wise-settings/branch-+-supplier-+-items/branch-+-supplier-+-items-rate-lead-days-and-remarks.md), then the supplier's lead time set up for this branch, then for any branch, then **Default Lead Days**.
* **Deduct Pending Purchase Orders** - reduce the quantity by what is already on order. **Count Orders Awaiting Approval** treats orders waiting for approval as on order too.
* **Ignore Pending Orders Older Than (Days)** - older pending orders are not counted; 0 sets no age limit. Orders past their valid date are never counted.
* **Deduct Goods In Transit** - reduce the quantity by stock already sent to the branch from another branch in the current financial year and not yet received.
* **Add Pending Sale Orders** - add what customers have ordered from the branch and not yet received.
* **Round Quantity To** - **No rounding**, **Pack size (CF 1)**, **Pack size (CF 2)**, **Pack size (CF 3)** or **Set quantity (branch levels)**. The quantity is always rounded up.

> **Example - sales cover**
>
> An item sold 60 units in the last 30 days at CHD BRANCH, so it sells 2 a day. The chosen supplier delivers in 4 days. With **Cover Days** 15 and **Safety Days** 3, the branch needs 2 x (15 + 3 + 4) = 44 units. It has 6 in stock and 4 on order, 10 in all. That is below the 2 x (4 + 3) = 14 units needed to last until delivery, so the planner suggests 44 - 10 = 34. Had the branch held 30 units in all, nothing would be suggested.

***

### **Purchase History**

* **Rates From** - **Purchase bills**, **Supplier quotations** or **Purchase bills and quotations**. With both, a dated quotation newer than the last purchase replaces the purchase rate. A branch's own quotation ([**Branch + Supplier + Items**](https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/setups/party-wise-settings/branch-+-supplier-+-items/branch-+-supplier-+-items-rate-lead-days-and-remarks.md)) comes before the company-wide one ([**Supplier + Items**](https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/setups/party-wise-settings/supplier-+-items.md)). Transfers between branches and purchase returns are never counted.
* **History Period (Months)** - only purchases of this many past months are used; 0 means the last 12 months.
* **Last N Purchases Per Supplier** - use only each supplier's latest N purchase bills; 0 uses every purchase in the period.
* **Purchases Of** - **Same branch** or **All branches**.
* **Rate Basis** - the invoice rate or the net rate after discounts.
* **Spread Free Goods Into Rate** - lower the rate for free quantity received, so a supplier who gives free goods compares fairly with one who gives a lower rate.
* **Supplier Rate Is** - **Last purchase**, **Average (quantity weighted)** or **Lowest**.
* **Ignore Quotations Older Than (Days)** - older quotations are not used; 0 uses all. A quotation without a date is used, but never in place of a purchase rate.

> **Example - free goods**
>
> A supplier billed 10 units at ₹100 and gave 2 units free. With **Spread Free Goods Into Rate** ticked, the planner compares the supplier at ₹1,000 / 12 = ₹83.33 a unit.

***

### **Margin**

* **Selling Price** - the item price the margin is worked out against: sale rate, MRP, one of the special rates or the basic rate. Supplier rates are before tax, so a margin on MRP looks higher.
* **Margin Formula** - margin on the selling price, or markup on cost.
* **Minimum Margin %** - suppliers below it are flagged **LOW MARGIN**; an item with no selling price is flagged **NO SELLING PRICE**. 0 turns the check off.
* **Below Minimum Margin** - **Warn only** still recommends the supplier. **Do not recommend** never recommends it, but it stays in the supplier list marked LOW MARGIN and you can still choose it yourself. With **Do not recommend**, when every supplier is below the minimum, no supplier is chosen and the line shows **LOW MARGIN, NONE RECOMMENDED**.
* **Flag Rate Rise Above %** - flag a line when the chosen supplier's rate is higher than the branch's last purchase rate by more than this. 0 turns the check off.

***

### **Supplier Ranking**

* **Suppliers Considered** - **any supplier bought from**, **branch-linked, else item-linked, else any**, **branch-linked only** or **item-linked only**. Item links are set up in [**Setup\Party Wise Settings\Supplier + Items**](https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/setups/party-wise-settings/supplier-+-items.md), branch links in [**Setup\Party Wise Settings\Branch + Supplier + Items**](https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/setups/party-wise-settings/branch-+-supplier-+-items.md). When **Rates From** includes quotations, a linked supplier with a usable quotation counts as bought from.
* **Rank Suppliers By** - **Lowest rate**, **Weighted score** or **Most recent purchase**.
* **Weight - Rate / Recent Purchase / Purchase Frequency / Delivery Time** (weighted score only) - how much a low rate, a recent purchase, buying often and a short delivery time count. With weighted score, the supplier list shows a **Score** column.
* **When Equal** - which supplier goes first when two rank the same: **Most recent purchase** or **Most frequent supplier**.
* **Alternatives To Show** - how many suppliers to list for the selected line; 0 lists all. The supplier you chose is always listed.
* **No Purchase History** - the rate for a supplier with no purchase of the item in the period: **Quotation rate** (a quotation within **Ignore Quotations Older Than**, else the item master purchase rate), **Item master purchase rate**, or **Leave blank** (the supplier has no rate and cannot be ordered from).

***

### **Order Creation**

* **Purchase Order Configuration** - offered first at **Generate POs** (it can be changed there). The one saved here also decides which suppliers can be recommended. Its own settings are explained in [**PO - Configuration**](https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/order-processing/purchase-order/po-configuration.md).
* **Order Prefix** - the prefix of the order numbers. Blank uses APO. Up to 15 characters, without an apostrophe.
* **Delivery Within (Days)** - days from the order date to the delivery date. 0 uses the suppliers' lead times - the slowest item on an order sets its date.
* **Minimum Order Value** - orders below it are flagged in the preview; they can still be created. The value is before tax. 0 turns the check off.

***

### **Saving**

The configuration is not saved when no **Purchase Order Configuration** is chosen, when **Sale Period** is 0 under sales cover, when the **Order Prefix** is not valid, or when a weight is below 0 or every weight is 0 under weighted score.

**Available on:** Desktop · Web


---

# 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/order-processing/smart-purchase-order-planner/smart-purchase-order-planner-configuration.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.
