How to Generate PO from Sales Order in iDempiere

Configure the Generate PO from Sales Order window in iDempiere to auto-create vendor purchase orders from retail sales order lines by current vendor.

Introduction

Generate PO from Sales Order is an iDempiere process window that automatically creates Purchase Orders from confirmed Sales Order lines, using each product’s active current vendor.

It shortens replenishment cycles, keeps sales and purchase documents linked for traceability, and reduces duplicate ordering across busy retail sales desks.

Business Rules

  • Only Sales Orders with IsSOTrx = Y are eligible for PO generation.
  • Sales Order lines already linked to a Purchase Order line are excluded automatically.
  • One Purchase Order is created per vendor per Sales Order.
  • Only products with an active Current Vendor in Product Purchasing are processed.
  • If a Vendor parameter is entered, only that vendor’s products are processed.
  • Header-level SO-to-PO link is set only when exactly one PO is created.
  • Line-level links between SO and PO lines are always created for traceability.
  • Drop Shipment copies Delivery Via Rule and Shipper from the Sales Order.
  • At least one selection filter must be entered before running the process.

Process Flow

Generate PO From SO

Navigation

Menu → Sales → Sales Order → Generate PO from Sales Order

TenthPlanet iDempiere Sales GeneratePOFromSO

Configuration Steps

Step 1: Confirm Product Purchasing Setup

Open Product Purchasing on each item, tick Current Vendor and Active, and confirm the linked Vendor Price List covers the product.

Step 2: Open the Generate PO from Sales Order Window

Navigate via the menu, or run it directly from an open Sales Order so that order is auto-selected.

Step 3: Enter Selection Criteria

Enter at least one of Date Ordered range, Business Partner, Vendor, or Order to scope which Sales Orders qualify.

FieldSample ValueDescription
Date Ordered07/01/2026 – 07/31/2026Restricts Sales Orders to a date range.
Business PartnerAlpha Retail SolutionsFilters Sales Orders for a specific customer.
VendorAakash and CoGenerates POs only for the selected vendor.
Order50007_06/15/2026Processes one specific Sales Order document.

Step 4: Set the Drop Shipment Option

Set Drop Shipment to Yes for direct-to-customer delivery, or leave it as No for standard warehouse receipt.

FieldSamplePurpose
Drop ShipmentNoControls whether the PO is flagged for direct customer delivery.
Run as JobUncheckedRuns the process in the background instead of immediately.

Step 5: Execute the Process

Click OK to run immediately, or check Run as Job for large batches. Review the process log for the number of POs created.

Step 6: Verify Generated Purchase Orders

Open the Purchase Order window, locate the new order via the Link Order reference, and verify vendor, lines, and pricing.

Common Issues and Resolutions

IssueCauseResolution
“You need to restrict selection” errorNo filter criteria enteredEnter at least one of Date, Order, Customer, or Vendor.
No Purchase Order created for a productProduct has no active Current VendorFlag Current Vendor = Y in Product Purchasing for that item.
Sales Order line skipped silentlyLine already linked to an existing PO lineCheck the Purchase Order window before re-running the process.
Multiple POs created for one Sales OrderProducts belong to different vendorsExpected behavior; review vendor assignment if consolidation is needed.
Incorrect PO line priceVendor Price List missing or inactive for the productActivate the correct Price List Version for the vendor.
Sales Order not showing Link to POMore than one PO was generated for that orderHeader link only applies when exactly one PO is created; use line links instead.
PO currency differs from Sales OrderVendor Price List uses a different currencyConfirm the vendor price list currency matches business requirements.

Next Steps

  • Configure Product Purchasing to maintain accurate Current Vendor records.
  • Review and update Vendor Price List Versions regularly.
  • Set up Organization Info for Drop Ship Warehouse defaults.
  • Process the generated Purchase Orders for vendor confirmation and receipt.