inventory

package
v0.0.0-...-dafc34e Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInsufficientStocks = errors.New("insufficient warehouse item stocks")

ErrInsufficientStocks is returned when there are insufficient stocks.

View Source
var ErrTransferAlreadyCommitted = errors.New("transfer already committed")

ErrTransferAlreadyCommitted is returned when the transfer is already committed.

Functions

This section is empty.

Types

type TransferManager

type TransferManager struct {
	// contains filtered or unexported fields
}

TransferManager is a utility for drafting and committing a transfer.

func NewTransferManager

func NewTransferManager(dao *daos.Dao) (*TransferManager, error)

NewTransferManager creates a new stocks manager.

func (*TransferManager) Commit

func (sm *TransferManager) Commit(transferID string) error

Commit commits the given transfer.

Jump to

Keyboard shortcuts

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