inventorylevel

package
v1.36.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IgnoreFieldMismatch = datastore.IgnoreFieldMismatch

Functions

func Query

Types

type InventoryLevel

type InventoryLevel struct {
	mixin.Model[InventoryLevel]

	InventoryItemId  string `json:"inventoryItemId"`
	LocationId       string `json:"locationId"`
	StockedQuantity  int    `json:"stockedQuantity"`
	ReservedQuantity int    `json:"reservedQuantity"`
	IncomingQuantity int    `json:"incomingQuantity"`

	// Arbitrary key/value pairs
	Metadata  Map    `json:"metadata,omitempty" datastore:"-"`
	Metadata_ string `json:"-" datastore:",noindex"`
}

func New

func (InventoryLevel) AvailableQuantity

func (l InventoryLevel) AvailableQuantity() int

AvailableQuantity returns stock minus reserved.

func (*InventoryLevel) Defaults

func (l *InventoryLevel) Defaults()

func (*InventoryLevel) Load

func (l *InventoryLevel) Load(ps []datastore.Property) (err error)

func (*InventoryLevel) Save

func (l *InventoryLevel) Save() ([]datastore.Property, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL