Skip to main content

GoodsReceiptLineItem

A single line on a GoodsReceipt. Tracks the product, optional batch, the quantity moved and the per-unit and total price. Optional FKs (supplierOrderId, returnOrderId) link the line back to its originating document.

type GoodsReceiptLineItem implements Node {
id: ID!
goodsReceiptId: ID!
quantity: Int!
productId: ID
batchId: ID
unitPrice: Float
totalPrice: Float
supplierOrderId: ID
returnOrderId: ID
goodsReceipt: GoodsReceipt
product: Product
batch: Batch
destinationBinLocation: BinLocation
supplierOrder: SupplierOrder
}

Fields

GoodsReceiptLineItem.id ● ID! non-null scalar

Global identifier for this entity.

GoodsReceiptLineItem.goodsReceiptId ● ID! non-null scalar

ID of the parent goods receipt.

GoodsReceiptLineItem.quantity ● Int! non-null scalar

Number of units moved. Signed: negative quantities represent outgoing movements (e.g. corrections).

GoodsReceiptLineItem.productId ● ID scalar

ID of the product being received.

GoodsReceiptLineItem.batchId ● ID scalar

ID of the batch the units belong to, when batch tracking is enabled for the product.

GoodsReceiptLineItem.unitPrice ● Float scalar

Per-unit price in the parent receipt's currency.

GoodsReceiptLineItem.totalPrice ● Float scalar

Line total in the parent receipt's currency (unitPrice * quantity).

GoodsReceiptLineItem.supplierOrderId ● ID scalar

ID of the originating supplier order, when the receipt was opened from one.

GoodsReceiptLineItem.returnOrderId ● ID scalar

ID of the originating return order, when the receipt was opened from a customer return.

GoodsReceiptLineItem.goodsReceipt ● GoodsReceipt object

GoodsReceiptLineItem.product ● Product object

GoodsReceiptLineItem.batch ● Batch object

GoodsReceiptLineItem.destinationBinLocation ● BinLocation object

GoodsReceiptLineItem.supplierOrder ● SupplierOrder object

Interfaces

Node interface

Any entity that can be loaded by its global id through the node(id: ID!) query.

Returned By

goodsReceiptLineItem query

Member Of

GoodsReceiptLineItemEdge object