QuantityValue
A quantity in a product's unit of measure, with the whole number it is stored as. Products measured by weight, volume, length, or area store a metric unit (15.8 lb is stored as 7,167 g); count and packaging products store their own unit.
type QuantityValue {
amount: BigDecimal!
format: String!
maxDecimals: Int!
stored: Int!
storedFormat: String!
storedUnit: UnitOfMeasure!
unit: UnitOfMeasure!
}
Fields
QuantityValue.amount ● BigDecimal! non-null scalar common
The quantity in the product's unit, with up to maxDecimals places.
QuantityValue.format ● String! non-null scalar common
The amount rounded to 2 decimal places, with the unit symbol for measured units, such as 589.75 kg.
QuantityValue.maxDecimals ● Int! non-null scalar common
Most decimal places this product's quantities can carry.
QuantityValue.stored ● Int! non-null scalar common
The whole number in storedUnit. Stock is stored this way; a total of decimal
lines, such as incoming, rounds half up to it the way receiving does. amount
keeps the exact total.
QuantityValue.storedFormat ● String! non-null scalar common
The stored whole number with the stored unit symbol for measured units, such as 589,750 g.
QuantityValue.storedUnit ● UnitOfMeasure! non-null object products
The unit that stored is measured in. Equals unit until the product's quantities are converted to a metric storage unit.
QuantityValue.unit ● UnitOfMeasure! non-null object products
The product's unit of measure.
Member Of
IntegrationSyncStatus object ● InventoryItem object ● InventoryWarehouse object ● ItemLocation object ● Product object ● UomChangeLocation object ● UomChangePreview object