Description

Within a Warehouse in Inventory, you have the ability to set a minimum and maximum stock value per item per Warehouse. You would set the minimum value as the lowest a single Item's stock could or should be in that Warehouse, along with the maximum total quantity a Warehouse can have of one particular Item. Each Warehouse can only have one relationship with an Item for its minimum and maximum quantities, but those values can be edited.


Where is it?

This is located in Inventory>Warehouse>Clicking into Warehouse Number for Details>Clicking on Warehouse Items tab:


In addition, you can see the existing minimum and maximum stock values on the Details or Warehouse Items tab:


Rules

  • Min & Max values can be decimals

  • Only ONE Pair of Item & Warehouse can exist

  • Min ≥ 0

  • Max > Min

  • Max > 0


API Endpoints 



Create
{
    tenantId: string // required
    ItemId: string // required, must exist in DB
    WarehouseId: string // required, must exist in DB
    minValue: number // required, >= 0
    maxValue: number // required, > 0,  > minValue
    // tenantId, ItemId & WarehouseId pairs are UNIQUE
}
Read/Search
{
    order: string,
    cursor: string,
    filter: object,
    filterType: string,
    limit: number
}
Update
{
    minValue: number // optional, >= 0
    maxValue: number // optional, > 0, > minValue (either provided in same package or internal minValue)
}
Delete
{
    tenantId: string
    _id: string
}