StockMovement

StockMovement

StockMovement

A StockMovement is created whenever stock of a particular ProductVariant goes in or out.

Signature

class StockMovement extends VendureEntity {
  readonly @Column({ nullable: false, type: 'varchar' })
    readonly type: StockMovementType;
  @ManyToOne(type => ProductVariant, variant => variant.stockMovements)
    productVariant: ProductVariant;
  @Column()
    quantity: number;
}

Members

type

readonly property
type:
StockMovementType

productVariant

property

quantity

property
type:
number