# Pricing Rule

<p class="doc-lead">Purchase Pricing Rules set supplier-specific or supplier-group purchase prices and discounts for items over a date range. Rules override Basic Pricing when their conditions match on purchase bill entry.</p>

<div class="doc-toc">
<p class="doc-toc-title">On this page</p>
<div class="doc-toc-section">
<div class="doc-toc-links">
<a href="#/purchase/pricing-rules?id=overview">Overview</a>
<a href="#/purchase/pricing-rules?id=fields">Fields</a>
<a href="#/purchase/pricing-rules?id=how-it-works">How It Works</a>
<a href="#/purchase/pricing-rules?id=actions">Actions</a>
<a href="#/purchase/pricing-rules?id=faq">FAQ</a>
<a href="#/purchase/pricing-rules?id=related">Related</a>
</div>
</div>
</div>

<hr class="doc-section-divider">

<h2 id="overview">Overview &amp; List View</h2>

Go to <b>Purchase → Settings → Pricing Rule</b> from the left menu.

Create rules when negotiated rates differ by supplier, supplier group, quantity slab, or promotional period. Rules apply on purchase quotation, order, invoice, and related bill entry when the transaction date falls within the rule's date range.

<b>Pricing Rule</b>

<img src="purchase/images/pricingrule.webp" alt="Pricing Rule" loading="lazy">

<b>List columns</b>

| **Column** | **Description** |
|------------|-----------------|
| Id | Rule record ID. |
| From Date | First date the rule is active. |
| To Date | Last date the rule is active. |
| Supplier Group | Group scope when set. |
| Supplier | Supplier scope when set. |

<b>Quick filter tabs</b>

| **Tab** | **Shows** |
|---------|-----------|
| Active | Active pricing rules (default). |
| Suspended | Suspended rules. |

<b>Advanced filters</b>

| **Filter** | **Description** |
|------------|-----------------|
| Supplier | Filter by supplier on the rule. |
| Supplier Group | Filter by supplier group. |
| Item | Filter rules that include a specific item. |
| Status | Active or Suspended. |
| Created Date | Date the rule was created. |

<b>List row actions</b>

| **Action** | **Description** |
|------------|-----------------|
| View | Opens read-only rule details. |
| Edit | Opens the pricing rule form. |
| Delete | Removes the rule. |

<hr class="doc-section-divider">

<h2 id="fields">Fields</h2>

<h3>Basic</h3>

| **Field** | **Description** |
|-----------|-----------------|
| From Date * | First date the rule is active. |
| To Date * | Last date the rule is active. |
| Supplier group | Optional. Applies to all suppliers in the group when no specific supplier is set. |
| Supplier (optional) | Optional. Narrows the rule to one supplier. Takes priority over supplier group when both could match. |

<h3>Price Discount Scheme</h3>

| **Field** | **Description** |
|-----------|-----------------|
| Price or Discount * | <b>Price</b> — fixed rate or discount on price. Other product-discount modes may be available depending on company setup. |

When <b>Price or Discount</b> is <b>Price</b>:

| **Field** | **Description** |
|-----------|-----------------|
| Price or Discount * (method) | <b>Price</b>, <b>Discount Percentage</b>, or <b>Discount Amount</b> |

<h3>Item lines</h3>

| **Column** | **Description** |
|------------|-----------------|
| Item | Purchasable item. Required. |
| Unit | Unit of measure. Required. Auto-filled from item default when available. |
| Min Qty (optional) | Lower quantity bound for slab pricing. |
| Max Qty (optional) | Upper quantity bound for slab pricing. |
| Qty | Fixed quantity for product-discount schemes when applicable. |
| Price * | Fixed purchase price when method is Price. |
| Discount % * | Percentage off when method is Discount Percentage. |
| Discount * | Fixed discount amount when method is Discount Amount. |

<hr class="doc-section-divider">

<h2 id="how-it-works">How It Works</h2>

<h3>When rules apply</h3>

On item selection (after previous supplier price if enabled), the system loads active pricing rules for the transaction date. A rule matches when:

<ul>
<li>Transaction date is between <b>From Date</b> and <b>To Date</b></li>
<li>Supplier, supplier group, or generic scope matches (see precedence below)</li>
<li>Item and unit match a line</li>
<li>Quantity falls within <b>Min Qty</b> / <b>Max Qty</b> when set</li>
</ul>

<h3>Rule precedence</h3>

When multiple rules could match:

<ol>
<li><b>Supplier</b> — rule with a specific supplier</li>
<li><b>Supplier group</b> — rule for the supplier's <a href="#/purchase/supplier-groups">Supplier Group</a></li>
<li><b>Generic</b> — rule with no supplier or supplier group</li>
</ol>

<p>Among matching lines for the same scope, quantity slabs narrow the match when <b>Min Qty</b> / <b>Max Qty</b> are set.</p>

<h3>Price vs discount schemes</h3>

| **Method** | **Effect on bill entry** |
|------------|--------------------------|
| Price | Sets the line <b>Rate</b> directly. |
| Discount Percentage | Fills discount percentage fields (tax exclusive or inclusive per bill type). |
| Discount Amount | Fills fixed discount amount fields. |

<p>Discount schemes do not set the base rate — after the discount is applied, the chain falls through to <a href="#/purchase/basic-pricing">Basic Pricing</a> and other price sources for the rate.</p>

<p>If no pricing rule matches, the chain continues to <a href="#/purchase/basic-pricing">Basic Pricing</a>.</p>

<p><b>Connected reports:</b> Resulting rates appear on <a href="#/purchase/reports/supplier-rate-tracking">Supplier Rate Tracking</a> and <a href="#/purchase/reports/purchase-bill-report">Bill Wise Purchase</a>.</p>

<hr class="doc-section-divider">

<h2 id="actions">Actions</h2>

<b>List header:</b> <b>New</b>

See <a href="#/purchase/pricing-rules?id=overview">List row actions</a> above for row-level actions.

<b>Form buttons:</b> <b>Save</b> / <b>Update</b>, <b>Reset</b>, <b>Cancel</b>

<hr class="doc-section-divider">

<h2 id="faq">FAQ</h2>

<b>How does a pricing rule interact with Basic Pricing?</b><br>
On item selection, the system checks active pricing rules for the supplier, date, and quantity first. If no rule matches, it falls back to Basic Pricing and other price sources configured in <a href="#/purchase/purchase-settings-config">Purchase Settings</a>.

<b>Can one rule cover multiple items?</b><br>
Yes. Add multiple rows in the item lines table on the same rule.

<b>What happens when two rules overlap?</b><br>
Supplier-specific rules take priority over supplier-group rules. Among equals, the matching quantity slab and date range determine which price applies.

<b>When does a pricing rule apply?</b><br>
Only when the purchase date falls within the rule's from/to dates, the supplier or supplier group matches, and line quantity fits the configured slab.

<b>What is the difference between Price and Product discount schemes?</b><br>
A <b>Price</b> scheme sets the line <b>Rate</b> directly. Discount schemes fill discount fields; the system may still look up a base rate from another rule or Basic Pricing.

<b>Can I target a supplier group instead of one supplier?</b><br>
Yes. Select a <a href="#/purchase/supplier-groups">Supplier Group</a> on the rule header — all suppliers in that group inherit the rule when dates and quantities match.

<b>Do pricing rules apply to quotations and orders?</b><br>
Yes. Active rules apply when items are selected on purchase quotations, orders, and invoices for the matching supplier and date.

<h2 id="related">Related Topics</h2>

<ul>
<li><a href="#/purchase/basic-pricing">Basic Pricing</a></li>
<li><a href="#/purchase/purchase-settings-config">Purchase Settings</a></li>
<li><a href="#/purchase/reports/supplier-rate-tracking">Supplier Rate Tracking</a></li>
<li><a href="#/purchase/purchase-settings">Purchase Settings hub</a></li>
</ul>
