Purchase order scripts serves to automatically acquire additional items to devices when physical quantity of item in device is bellow defined threshold (maximum quantity, minimum quantity, order point).
How to define these thresholds is described in Manage item assignments. In each purchase order script one or more rules can be selected. When script is started, script checks if any item in monitored device fulfill at least one of the selected rules.
If at least one of the rules is fulfilled, action is performed according the stock setup. In case that items in normal or central stock are about to acquire, system will add these items to purchase order.
Based on scheduled script settings and vendor settings this order can be then automatically send to vendor. In case that items in satellite stock are about to acquire, these items are added to transfer list to request transfer of these items from central stock to device in satellite stock.
Only if item is assigned in the satellite device with option Order directly to satellite, this item will be placed to purchase order for this device directly instead of requesting this item from central stock.
System takes in account package size of items. For purchase orders, items are added only if whole purchase package can be added (set on item’s supplier information).
For transfer lists, items are added only if whole dispense package can be added (set on item’s general information).
Items with state “Obsolete” are ignored by scripts and will not be added to any order or list. Items with state “Phase out (Outgoing)” will not be added to orders, but still they can be added to transfer lists.
Items set as quoted (defined in item detail) will be ignored by purchase scripts. These items must be added to an order manually by user. Items of type “Assembly” can be only added to transfer list to be requested from central stock by a purchase script. Assemblies will not be added to any purchase order.
Script supports following rules:
Fill to max
Rule is fulfilled when available quantity of item in device (including picked durable items and items in service list/order) is bellow maximum quantity. Quantity ordered is determined to obtain items to reach maximum quantity.

Quantity ordered is to fill up to Max quantity. Information related to durable items only marked in bold. Purchase and service orders are considered in status Suggested or Active.
Order point
Rule is fulfilled when available quantity of item in device (including picked durable items and items in service list/order) is at or below order point. Quantity ordered is determined to obtain items to reach maximum quantity.

Quantity ordered is to fill up to Max quantity. Information related to durable items only marked in bold. Purchase and service orders are considered in status Suggested or Active.
Min in stock (all available items)
Rule is fulfilled when available quantity of durable item in device is at or below min in stock quantity. Durable items in any condition (excluding items needing service) are considered as available. Quantity ordered is determined to obtain items to reach min in stock quantity.

Quantity ordered is to fill up to Min quantity. Information related to durable items only marked in bold Purchase orders are considered in status Suggested or Active.
Min in stock (new items only)
Rule is fulfilled when available quantity of durable item in device in condition New is at or bellow min in stock quantity. 
Quantity ordered is to fill up items in condition New to min in stock quantity:

Information related to durable items only marked in bold Purchase orders are considered in status Suggested or Active.
Rule cannot be applied for consumable items
Out of stock
Rule is fulfilled when available quantity of item in device (including picked durable items and items in service list/order) 
Quantity ordered is to fill up to Max quantity. Information related to durable items only marked in bold Purchase and service orders are considered in status Suggested or Active.
Consider transfer demands
When option is activated, script will consider also quantity on transfer lists when rules are checked for devices of central stock. System will get total quantity of items remaining to be picked for transfer lists from central stock (Requested quantity – Picked quantity) and check, if this quantity is available (or is expected to be available) within all devices of this central stock:

Information related to durable items only marked in bold Purchase and service orders are considered in status Suggested or Active. If this quantity is not available in central stock, system will try to find this item in any device of this central stock and increase its purchase information in this device by quantity demand from transfer lists.
If item on transfer list is not assigned in any device of related central stock, this item will not be ordered. If item is assigned in more devices of central stock, purchase information is increased only for first device found and only this device will handle additional demand
Script will then consider this increased purchase information when checking device against specified rules. Once script is finished, purchase information is returned to original values.
This setting will not affect script behavior for devices of normal and satellite stocks Satellite stock devices are always checked before central stock devices within the script. Single script can create transfer list for satellite device and right after consider this demand for order for central stock device
Example Device 1 is in central stock with order point 20 and maximum quantity 50. Current quantity in device is 25. Transfer list exists for this central stock with 30 items remaining to be picked to be transferred to a device in satellite stock. If Consider transfer demands option is turned off, purchase script with rule Order point will not order additional items to this device as current quantity is higher than order point. Stock cannot provide 30 items needed by transfer list. If Consider transfer demands option is turned on, script will find out that central stock cannot provide all items requested by transfer list. Based on this, it will temporarily increase purchase information in Device 1 for requested item by 30 pieces from transfer list, to maximum quantity 80 and order point 50. Order point rule will then order 55 items – 30 to cover demand from transfer list, 25 to fill up to maximum quantity.
Consider pick list demands
When option is activated, script will consider also quantity in active predefined pick lists when rules are checked for a device. System will get total quantity of items what remains to be picked from all active pick lists for a device (pick lists without target device are not considered) and check, if this quantity is available (or is expected to be available from Suggested or Active orders) for pick in the device:

Information related to durable items only marked in bold. If required quantity is not available in the device and the item is assigned in this device, system will increase purchase information of its assignment by quantity required by active pick lists. Script will then consider this increased purchase information when checking device assignments against specified script rules. Once script is finished, purchase information is returned to original values.
If item required by a pick list is not assigned in target device, such item will not be ordered.
Process is similar to considering transfer demands. For detailed explanation of the option, please see previous section.