stocklocation

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 StockLocation

type StockLocation struct {
	mixin.Model

	// Name of stock location
	Name string `json:"name"`

	// Address fields
	AddressLine1 string `json:"addressLine1"`
	AddressLine2 string `json:"addressLine2"`
	City         string `json:"city"`
	Country      string `json:"country"`
	Province     string `json:"province"`
	PostalCode   string `json:"postalCode"`
	Phone        string `json:"phone"`

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

func New

func (*StockLocation) Defaults

func (s *StockLocation) Defaults()

func (*StockLocation) Init

func (s *StockLocation) Init(db *datastore.Datastore)

func (StockLocation) Kind

func (s StockLocation) Kind() string

func (*StockLocation) Load

func (s *StockLocation) Load(ps []datastore.Property) (err error)

func (*StockLocation) Save

func (s *StockLocation) Save() ([]datastore.Property, error)

Jump to

Keyboard shortcuts

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