Skip to main content
objectSupplierRestockSuggestion

Implements

Fields

restockSuggestionType

The discriminator: where the suggestion gets its goods from.

itemId
ID!

The ID of the item.

sku
String!

The item's SKU.

itemName
String!

The item's name in the default language.

warehouseId
ID!

The ID of the destination warehouse the suggestion is for.

suggestedQuantity
Decimal!

The quantity suggested, 0 or more.

demandQuantity
Decimal!

The quantity needed before the minimum order quantity, the order interval and the percentage surcharge are applied.

openSalesOrderQuantity
Decimal!

The open quantity, still to be picked, of the open sales orders and stock transfers that count as demand, for the item in all warehouses. It is set off against the destination warehouse with the highest priority only.

forecastQuantity
Decimal

The forecast demand of the coming days from the past consumption. Empty without a forecast.

consumedQuantity
Decimal!

The consumption in the measured period, without the order peaks left out: the quantity of the sales orders created in the period, delivered from the destination warehouse plus still open. Without a forecast the period is the last 30 days.

consumedQuantityLast30Days
Decimal!

The consumption in the last 30 days.

dailyConsumption
Decimal

The consumption per day in the measured period. Empty when nothing was consumed.

peakQuantity
Decimal

The consumption of the period left out as order peaks. Empty when peaks are not left out or none occurred.

averageQuantityPerDelivery
Decimal

The average quantity per delivery in the period, the basis of the peak detection. Empty when peaks are not left out.

daysWithStock
Int

On how many days of the period the item was in stock. Only with 'onlyDaysWithStock'.

availabilityRequestCount
Int!

How many open availability requests exist for the item. They count, one unit each, only with 'includeAvailabilityRequests', and only for the destination warehouse with the highest priority.

manualDemandQuantity
Decimal

The demand planned by hand that counts. Empty when such demand does not count.

stockQuantity
Decimal!

The stock counted for the destination warehouse: its stock without what is not available, plus, by the stock settings, the stock in transit, the open stock transfers to it and the purchase list quantities.

availableQuantity
Decimal!

The stock counted, plus the supplier stock where the settings count it, minus what open sales orders and external reservations take.

shortageQuantity
Decimal!

What is missing when the available quantity is below 0; else 0.

blockedForDeliveryQuantity
Decimal

The stock that is not counted as available: on locked storage locations or storage locations locked for delivery, and on clearance and return storage locations, as the stock settings decide. Empty when 'includeStockOnStorageLocationsLockedForDelivery' is set.

externallyReservedQuantity
Decimal!

The quantity of the item in orders of sales channels that are not imported yet; 0 when there are none. It counts as demand only with 'includeExternalReservations'.

purchaseListQuantity
Decimal!

The quantity of the item on the purchase list for the destination warehouse; quantities without a warehouse are added for the warehouse with the highest priority. It counts as stock only with 'includePurchaseListQuantities'.

minimumStock
Decimal

The item's minimum stock for the destination warehouse; with 'fillGlobalMinimumStock', the part of the minimum stock over all warehouses that falls on this warehouse. It is added to the suggestion only when a minimum stock is topped up. Empty when the item has none.

globalMinimumStock
Decimal

The item's minimum stock over all warehouses. Empty when it has none.

maximumStock
Decimal

The item's maximum stock of the destination warehouse. Empty when it has none or the settings do not limit to it.

consideredInflowQuantity
Decimal!

The inflow from purchase orders set off against this suggestion: the open quantity of the source supplier's purchase orders to the destination warehouse; with 'inflowAllocation' 'FIRST_WAREHOUSE', the share of the inflow of all suppliers taken by this warehouse. 0 for suggestions from a source warehouse or without a source.

inflowAllWarehousesQuantity
Decimal!

The open quantity of the purchase orders that count as inflow, for all warehouses.

totalInflowQuantity
Decimal!

The open quantity of all sent and partially delivered purchase orders of the item, whatever the settings.

surchargeQuantity
Decimal

The quantity the percentage surcharge added. Empty without a surcharge.

averageNetPurchasePrice
Decimal

The item's average net purchase price, in the base currency.

lastNetPurchasePrice
Decimal

The item's last net purchase price, in the base currency.

supplierId
ID!

The ID of the supplier. For the own production, the ID of the production supplier; it can be ordered from, but the supplier queries do not list it.

isProduction
Boolean!

Whether the supplier is the company's own production. Ordering from it starts the production planning.

supplierSku
String

The supplier's number for the item.

isDefaultSupplier
Boolean!

Whether the supplier is the item's default supplier.

supplierStockQuantity
Decimal!

The supplier stock recorded for the item. It counts as stock only with 'includeSupplierStock' and only where the supplier item's stock is maintained.

minimumOrderQuantity
Decimal

The supplier's minimum order quantity for the item.

orderInterval
Decimal

The supplier's order interval: the item is ordered in multiples of it.

supplierNetPurchasePrice
Decimal

The supplier's net purchase price for the item, in 'currencyCode'.

currencyCode
String

The currency of 'supplierNetPurchasePrice' as currency code (ISO 4217 alpha-3, or with the prefix 'x-' for a currency defined by the tenant).