Skip to main content
inputRestockSuggestionSourceSettingsInput

Fields

sourceSelection
String

Which sources may cover the demand. Known values: ALL_SUPPLIERS (every supplier of the item, active or not, except the company's own production; the supplier created last is used first, the others only get what it cannot cover), CHEAPEST_SUPPLIER (the supplier with the lowest purchase price for the item, without currency conversion, on a tie the default supplier; not the own production), FASTEST_SUPPLIER (the supplier with the shortest delivery time, on a tie the default supplier; not the own production), DEFAULT_SUPPLIER (the item's default supplier, also the own production), START_AREA (the entries of a start area, in their priority), SUPPLIER (one supplier; calculation only). A client treats an unknown value as not supported. The server refuses an unknown value. When omitted: 'ALL_SUPPLIERS'.

startAreaId
ID

The start area whose entries are the sources, in their priority; an active one. Required exactly when 'sourceSelection' is 'START_AREA'.

supplierId
ID

The one supplier whose items are suggested. Required exactly when 'sourceSelection' is 'SUPPLIER'.

includeItemsWithoutSupplier
Boolean

Whether items that no supplier delivers are suggested as well, as suggestions without a source. When omitted: true.

limitToSupplierStock
Boolean

Whether a suggestion from a supplier stays within the supplier stock recorded for the item, also when the supplier's stock is not maintained, which then usually limits it to 0. A suggestion from a source warehouse always stays within what that warehouse can give. When omitted: false.

applyOrderQuantityRules
Boolean

Whether a suggestion from a supplier is raised to the supplier's minimum order quantity and rounded up to its order interval, without going beyond the maximum stock and the supplier stock. When omitted: false.