inventorylevel

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 4 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

	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) Init

func (l *InventoryLevel) Init(db *datastore.Datastore)

func (InventoryLevel) Kind

func (l InventoryLevel) Kind() string

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