Opens the Purchase Advisor and optionally sets initial filter and behaviour parameters.
Parameter
| Description
|
WarehouseCode
| Optional. Code of the warehouse for which the purchase advice is to be generated.
|
SupplierCode
| Optional. When specified, filters the advice for this specific supplier.
|
SelectionMethod
| Optional. Supplier selection method. Default value -1 (system preference). Valid values: 0 = Fastest supplier, 1 = Cheapest supplier, 2 = Preferred supplier.
|
OrderType
| Optional. Order type. Default value -1 (system preference). Valid values: 0 = Stock items, 1 = Order items (linked to work orders).
|
WorkOrderNumber
| Optional. Work order number for which a specific purchase order is being created. Default value -1.
|
OriginalPONumber
| Optional. When specified together with OriginalReceiptNumber, a return order advice is generated. Default value 0.
|
OriginalReceiptNumber
| Optional. Specifies the supplier receipt for which a credit must be created. Only effective in combination with OriginalPONumber.
|
AutoStart
| Optional. When True, the advisor starts generating immediately. Default value False.
|