Skip to main content

GRN

A goods receipt note: goods received from a vendor into a warehouse, usually against a purchase order.

type GRN {
baseTotalAmount: Float
createdAt: DateTime!
currency: String!
damageReported: Boolean!
deletedAt: DateTime
deletedBy: String
deliveryDate: DateTime!
driverName: String
enteredBy: String!
exchangeRate: Float
expectedDate: DateTime
grnNumber: String!
id: ID!
inspectedAt: DateTime
inspectedBy: ID
inspector: GRNUser
items: [GRNItem!]!
leadTimeActual: Int
metadata: JSON!
notes: String
orderDate: DateTime
organizationId: String!
purchaseOrder: GRNPurchaseOrder
purchaseOrderId: ID
qualityScore: Float
receiptDocument: String
receiver: GRNUser
shortageReported: Boolean!
status: String!
subtotal: Float!
taxAmount: Float!
totalAcceptedQuantity: Float!
totalAmount: Float!
totalItemsCount: Int!
totalReceivedQuantity: Float!
totalRejectedQuantity: Float!
updatedAt: DateTime!
updatedBy: String!
vehicleNumber: String
vendor: GRNVendor
vendorPartnerId: ID!
warehouse: GRNWarehouse
warehouseId: ID!
}

Fields​

GRN.baseTotalAmount ● Float scalar​

The total in the organization's base currency, frozen when the receipt was written. Null on older receipts.

GRN.createdAt ● DateTime! non-null scalar​

When the record was created.

GRN.currency ● String! non-null scalar​

ISO 4217 currency code.

GRN.damageReported ● Boolean! non-null scalar​

True when damage was reported on delivery.

GRN.deletedAt ● DateTime scalar​

When the record was deleted. Empty while the record is live.

GRN.deletedBy ● String scalar​

The ID of the user who deleted the record.

GRN.deliveryDate ● DateTime! non-null scalar​

The date the goods arrived.

GRN.driverName ● String scalar​

The name of the driver who delivered the goods.

GRN.enteredBy ● String! non-null scalar​

The ID of the user who created the record.

GRN.exchangeRate ● Float scalar​

The rate frozen when the receipt was written: 1 unit of the receipt currency in the organization's base currency.

GRN.expectedDate ● DateTime scalar​

The date the goods were expected.

GRN.grnNumber ● String! non-null scalar​

The receipt number, unique within the organization.

GRN.id ● ID! non-null scalar​

The unique ID of this record.

GRN.inspectedAt ● DateTime scalar​

When the goods were inspected.

GRN.inspectedBy ● ID scalar​

The ID of the user who inspected the goods.

GRN.inspector ● GRNUser object​

The user who inspected the goods.

GRN.items ● [GRNItem!]! non-null object​

The lines of the receipt.

GRN.leadTimeActual ● Int scalar​

The days between the order date and the delivery date.

GRN.metadata ● JSON! non-null scalar​

Additional data attached to the record, as JSON.

GRN.notes ● String scalar​

Notes about the receipt.

GRN.orderDate ● DateTime scalar​

The date the purchase order was placed.

GRN.organizationId ● String! non-null scalar​

The ID of the organization the record belongs to.

GRN.purchaseOrder ● GRNPurchaseOrder object​

The purchase order the goods were received against.

GRN.purchaseOrderId ● ID scalar​

The ID of the purchase order.

GRN.qualityScore ● Float scalar​

An overall quality score for the delivery.

GRN.receiptDocument ● String scalar​

A reference to the delivery document.

GRN.receiver ● GRNUser object​

The user who received the goods.

GRN.shortageReported ● Boolean! non-null scalar​

True when a shortage was reported on delivery.

GRN.status ● String! non-null scalar​

The receipt status: DRAFT, CONFIRMED, PARTIALLY_RECEIVED, RECEIVED or COMPLETED.

GRN.subtotal ● Float! non-null scalar​

The receipt amount before tax, in the receipt currency.

GRN.taxAmount ● Float! non-null scalar​

The tax on the receipt.

GRN.totalAcceptedQuantity ● Float! non-null scalar​

The total quantity accepted.

GRN.totalAmount ● Float! non-null scalar​

The receipt total including tax, in the receipt currency.

GRN.totalItemsCount ● Int! non-null scalar​

How many lines the receipt has.

GRN.totalReceivedQuantity ● Float! non-null scalar​

The total quantity that arrived.

GRN.totalRejectedQuantity ● Float! non-null scalar​

The total quantity rejected.

GRN.updatedAt ● DateTime! non-null scalar​

When the record was last changed.

GRN.updatedBy ● String! non-null scalar​

The ID of the user who last changed the record.

GRN.vehicleNumber ● String scalar​

The registration number of the delivery vehicle.

GRN.vendor ● GRNVendor object​

The vendor that delivered the goods.

GRN.vendorPartnerId ● ID! non-null scalar​

The ID of the vendor that delivered the goods.

GRN.warehouse ● GRNWarehouse object​

The warehouse that received the goods.

GRN.warehouseId ● ID! non-null scalar​

The ID of the warehouse.

Returned By​

createGRN mutation ● grn query ● grns query ● removeGRN mutation ● updateGRN mutation

Member Of​

ProductReturn object