Batch
A batch of a product (e.g. lot, serial group). Used to track stock down to a batch level for products with expiry dates or batch-traceable inventory. The (productId, number) pair is unique.
type Batch implements Node {
id: ID!
productId: ID!
number: String
comment: String
physicalStock: Int!
product: Product
goodsReceiptLineItems(
first: Int = 10
after: String
filter: GoodsReceiptLineItemFilterInput
): GoodsReceiptLineItemConnection
tags(
first: Int = 10
after: String
filter: TagFilterInput
): TagConnection
}
Fields
Batch.id ● ID! non-null scalar
Global identifier for this entity.
Batch.productId ● ID! non-null scalar
ID of the product this batch belongs to.
Batch.number ● String scalar
Batch identifier (lot number, serial group, …). Unique per product.
Batch.comment ● String scalar
Free-form note attached to the batch (handling instructions, source, …).
Batch.physicalStock ● Int! non-null scalar
Total units of this batch present across all warehouses.
Batch.product ● Product object
Batch.goodsReceiptLineItems ● GoodsReceiptLineItemConnection object
Batch.goodsReceiptLineItems.first ● Int scalar
Batch.goodsReceiptLineItems.after ● String scalar
Batch.goodsReceiptLineItems.filter ● GoodsReceiptLineItemFilterInput input
Batch.tags ● TagConnection object
Batch.tags.first ● Int scalar
Batch.tags.after ● String scalar
Batch.tags.filter ● TagFilterInput input
Interfaces
Node interface
Any entity that can be loaded by its global id through the node(id: ID!) query.
Returned By
batch query ● createBatch mutation
Member Of
BatchEdge object ● GoodsReceiptLineItem object