Auto Purchase Replenishment in iDempiere for Retail

Step-by-step guide to configure Auto Purchase Replenishment in iDempiere for retail stock control, replenishment rules, scheduler setup, and PO generation.

Introduction

Auto Purchase Replenishment in iDempiere automatically monitors product stock and generates a Purchase Order whenever inventory falls below a configured minimum.

In retail operations, it is set up at the product-warehouse level to maintain shelf availability without manual stock monitoring.

Once triggered by the scheduler, the system calculates the required quantity and creates a draft Purchase Order, directly impacting inventory planning and procurement workflow.

Prerequisites

  • Vendor Master configured with Purchase Price List and Payment Term.
  • Product Master configured as Active, Stocked, and Purchased.
  • Product Purchasing tab configured with vendor and PO Price.
  • Warehouse and Locator setup completed.
  • Tax Category assigned to the product.
  • Replenishment rule configured on the Product Replenish tab.
  • Scheduler configured to run the Replenish Report process.

Business Rules

  • Product must be Active, Stocked, and Purchased to qualify for replenishment.
  • Vendor purchasing configuration is mandatory for automatic PO generation.
  • Replenishment setup must exist for the product and warehouse combination.
  • Replenishment triggers only when Available Quantity drops below Minimum Level.
  • If Available Quantity equals Minimum Level, replenishment is not triggered.
  • Maximum Level defines the target stock quantity after replenishment.
  • Purchase quantity is calculated automatically as Maximum Level minus Available Quantity.
  • Scheduler execution is required to trigger replenishment processing.
  • Source Warehouse must remain blank for Purchase Order replenishment.
  • If Source Warehouse is configured, the system creates an Inventory Transfer instead.
  • Automatically generated Purchase Orders are created in Drafted status.
  • Generated Purchase Orders must be searched manually after scheduler execution.

Navigation

Product Replenishment Setup

Menu → Material Management → Product → Replenish Tab

Scheduler Execution

Menu → System Admin → Scheduler

Purchase Order Verification

Menu → Requisition-to-Invoice (Purchasing) → Purchase Order

Each window opens to a list of existing records. The Replenish tab is configured per product, the Scheduler window runs the replenishment process, and the Purchase Order window is used to verify auto-generated documents.

Step-by-Step Configuration

Step 1: Configure Product Master for Replenishment

The product must be correctly flagged before it can be evaluated by the replenishment engine.

  • Open the Product window and confirm the product is Active, Stocked, and Purchased.
  • Assign the correct Product Category, UOM, and Tax Category.
FieldSample ValueMandatoryDescription
Search KeyBRI-GDBC-200YesUnique identifier for the product
Product CategoryBiscuits & CookiesYesGroups the product for reporting
Tax CategoryGST 18%YesDetermines tax applied on procurement and sales
UOMEachYesBase unit of measure for the product
Product TypeItemYesIdentifies the product as a stocked inventory item
StockedEnabledYesAllows inventory tracking for the product
PurchasedEnabledYesAllows the product to be procured from a vendor
SoldEnabledYesAllows the product to be sold to customers

Step 2: Configure Vendor Purchasing Information

The Purchasing tab supplies the vendor and pricing details used when the system auto-generates a Purchase Order.

  • Open the Purchasing tab on the Product window and add a vendor line.
  • Set the PO Price, UOM, and order quantities, and mark the vendor as Current Vendor.
FieldSample ValueMandatoryDescription
Business PartnerBritannia Distributor – ChennaiYesVendor used for replenishment procurement
CurrencyINRYesProcurement currency
List Price66.00NoStandard catalog price from the vendor
PO Price60.00YesPrice used on the auto-generated Purchase Order
Last PO Price55.00AutoPrice from the most recent Purchase Order
UOMEachYesProcurement unit of measure
Minimum Order Qty12NoSmallest quantity the vendor will fulfill
Order Pack Qty12NoProcurement pack size for rounding order quantity
Partner Product KeyBRIT-GD200-TNNoVendor-side product code
Current VendorEnabledNoMarks this vendor as the default for procurement

Step 3: Verify the Vendor Business Partner Record

The vendor must be flagged correctly and carry settlement terms for the auto-generated Purchase Order to process.

  • Open the Business Partner window for the vendor.
  • Confirm the Vendor flag is enabled and that Payment Rule, PO Payment Term, and Purchase Price List are set.
FieldSample ValueMandatoryDescription
Search KeyBritannia_Distributor_CHNYesUnique identifier for the Business Partner
Business Partner GroupStandardYesGroups the partner for accounting defaults
VendorEnabledYesIdentifies the partner as a procurement vendor
Payment RuleOn CreditYesVendor settlement method
PO Payment TermWeekly SettlementYesSettlement schedule for purchase invoices
Purchase Price ListPurchase Price ListYesDefault pricing structure for this vendor

Step 4: Configure the Product Replenishment Rule

The Replenish tab defines the warehouse-level reorder logic that the scheduler evaluates.

  • Open the Replenish tab on the Product window.
  • Select the Warehouse and Locator, set Replenish Type to Reorder below Minimum Level, and enter Minimum and Maximum Level.
FieldSample ValueMandatoryDescription
WarehouseChennai Selling FloorYesWarehouse monitored for replenishment
LocatorSelling LocatorYesInventory locator within the warehouse
Replenish TypeReorder below Minimum LevelYesLogic used to evaluate replenishment
Minimum Level10.00YesStock threshold that triggers replenishment
Maximum Level50.00YesTarget stock quantity after replenishment
Source WarehouseBlankNoMust remain blank for Purchase Order replenishment
Qty Batch Size12NoRounds the calculated order quantity into batches

If Source Warehouse is set to another warehouse, such as CDC Godown, iDempiere generates an Inventory Transfer instead of a Purchase Order for that replenishment rule.

Step 5: Configure the Replenishment Scheduler

The scheduler executes the replenishment evaluation at a defined interval and is required for automatic PO generation.

  • Open the Scheduler window and create or select a process.
  • Set the Process to the replenishment report, define the run Schedule, and start the scheduler.
FieldSample ValueMandatoryDescription
NameDaily ReplenishmentYesIdentifies the scheduled process
ProcessReplenish Report_RV_T_Replenish_ProductionYesProcess executed by the scheduler
Report Output TypePDFNoOutput format for the process log/report
Schedule10 MinutesYesFrequency at which the process runs
SupervisorPotsAdminYesUser account that owns the scheduled process
Days to keep Log7YesRetention period for scheduler log entries
Scheduler StateScheduler StartedYesConfirms the scheduler is actively running

Step 6: Monitor Scheduler Execution Log

The Log tab confirms whether each scheduled run completed without errors.

  • Open the Log tab on the Scheduler window after each run.
  • Review the Summary and confirm the Error checkbox is unchecked for a clean execution.
FieldSample ValueDescription
Created06/19/2026 10:03:01 AMTimestamp of the scheduler run
SummaryMScheduler[1000000-Daily Replenishment] – Report Logs deleted=0System-generated execution summary
ErrorUncheckedIndicates the run completed without technical errors
ReferenceAD_PInstance_ID referenceInternal process instance reference for traceability

Step 7: Validate Stock Position Using the Storage Detail Report

Confirms the actual Available Quantity that determines whether replenishment is triggered.

  • Run the Storage Detail report for the product.
  • Review On Hand Qty, Reserved Qty, Ordered Qty, and Qty Available against the configured Minimum and Maximum Level.
ColumnDescription
On Hand QtyPhysical quantity currently in the locator
Reserved QtyQuantity committed to open Sales Orders
Ordered QtyQuantity on open Purchase Orders awaiting receipt
Qty AvailableNet quantity available for replenishment evaluation

Step 8: Verify the Auto-Generated Purchase Order

Confirms the scheduler produced a Purchase Order with the correct vendor, warehouse, and quantity.

  • Open the Purchase Order window and search recent Drafted documents.
  • Verify Vendor, Warehouse, and Generated Qty, then review the order before completing it manually.
FieldSample ValueDescription
Document StatusDraftedAuto-generated POs are created in Drafted status, not Completed
VendorBritannia Distributor – ChennaiVendor derived from the product’s Current Vendor
WarehouseChennai Selling FloorWarehouse from the matching Replenish rule
Generated QtyMaximum Level − Qty AvailableQuantity calculated automatically by the replenishment engine

The generated Purchase Order number is not displayed directly in the scheduler log.

Source Warehouse Behavior

Source Warehouse Blank

When Source Warehouse is blank:

System creates Purchase Order

Used for vendor procurement replenishment.

Source Warehouse Configured

When Source Warehouse contains a warehouse value:

System creates Inventory Transfer

Used for internal warehouse replenishment.

Common Issues and Resolutions

IssueCauseResolution
Replenishment not triggeringAvailable Qty is not below Minimum LevelVerify the current stock quantity using the Storage Detail report.
Purchase Order not generatedVendor purchasing setup is missingConfigure the Purchasing tab with a Current Vendor and PO Price.
Scheduler completed but no PO visiblePO not searched manuallyOpen the Purchase Order window and search for recent Drafted documents.
Incorrect replenishment quantityMinimum or Maximum Level configured incorrectlyVerify the Replenish tab values for the product and warehouse.
Inventory Transfer generated instead of POSource Warehouse field is configuredLeave Source Warehouse blank for Purchase Order replenishment.
Product not considered for replenishmentProduct is inactive or not StockedEnable the Active, Stocked, and Purchased flags on the product.
No stock reduction after salesShipment not completedComplete the Shipment document to update Available Qty.
Scheduler not runningScheduler State is not StartedOpen the Scheduler window and confirm Scheduler State is Started.

Next Steps

Configure additional Replenish rules for other product-warehouse combinations.

  • Complete the auto-generated Purchase Order to proceed with procurement.
  • Generate Material Receipt (GRN) once goods arrive from the vendor.
  • Generate Vendor Invoice for supplier billing against the receipt.
  • Review replenishment levels periodically against seasonal demand.

Leave a Reply

Your email address will not be published. Required fields are marked *