goods_receipt_lines table

The goods_receipt_lines table in the Inventory Management Database Schema schema has 7 columns, keyed by id, with 3 foreign keys to goods_receipts, purchase_order_lines and locations.

Only quantity_accepted writes a positive stock_movement. Rejected goods are recorded but never enter sellable stock.

Columns (7)

Columns of the goods_receipt_lines table
ColumnTypeConstraintsDescription
iduuidprimary key
goods_receipt_iduuidnot null, references goods_receipts.id
purchase_order_line_iduuidnot null, references purchase_order_lines.id
location_iduuidnot null, references locations.id
quantity_acceptedintegernot null
quantity_rejectedintegernot null
rejection_reasonvarchar(255)

Indexes (2)

  • (goods_receipt_id)
  • (purchase_order_line_id)

Relationships