Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountingEntity ¶
type AccountingEntity struct {
models.BaseModel
Label string `db:"label" json:"label"`
Description string `db:"description" json:"description"`
}
func (*AccountingEntity) TableName ¶
func (a *AccountingEntity) TableName() string
type Item ¶
type Item struct {
models.BaseModel
Parent string `db:"parent" json:"parent"`
ProfileImage string `db:"profileImage" json:"profileImage"`
SKU string `db:"sku" json:"sku"`
Icon string `db:"icon" json:"icon"`
Label string `db:"label" json:"label"`
Unit string `db:"unit" json:"unit"`
UnitPrice float64 `db:"unitPrice" json:"unitPrice"`
ExpiryInSecs int `db:"expiryInSecs" json:"expiryInSecs"`
}
type Recipe ¶
type RecipeIngredient ¶
type RecipeIngredient struct {
models.BaseModel
Recipe string `db:"recipe" json:"recipe"`
Item string `db:"item" json:"item"`
Quantity float64 `db:"quantity" json:"quantity"`
Unit string `db:"unit" json:"unit"`
}
func (*RecipeIngredient) TableName ¶
func (r *RecipeIngredient) TableName() string
type Transaction ¶
type Transaction struct {
models.BaseModel
Description string `db:"description" json:"description"`
Amount float64 `db:"amount" json:"amount"`
From string `db:"from" json:"from"`
Into string `db:"into" json:"into"`
}
Transaction is a wrapper for an accounting transaction.
func (*Transaction) TableName ¶
func (t *Transaction) TableName() string
type Transfer ¶
type Transfer struct {
models.BaseModel
Transaction string `db:"transaction" json:"transaction"`
From string `db:"from" json:"from"`
Into string `db:"into" json:"into"`
Overhead float64 `db:"overhead" json:"overhead"`
Description string `db:"description" json:"description"`
Committed bool `db:"committed" json:"committed"`
Scheduled time.Time `db:"scheduled" json:"scheduled"`
}
Transfer is a wrapper for a transfer record.
type TransferItem ¶
type TransferItem struct {
models.BaseModel
Transfer string `db:"transfer" json:"transfer"`
Item string `db:"item" json:"item"`
Quantity int `db:"quantity" json:"quantity"`
Unit string `db:"unit" json:"unit"`
UnitPrice float64 `db:"unitPrice" json:"unitPrice"`
TotalPrice float64 `db:"totalPrice" json:"totalPrice"`
}
TransferItem is a wrapper for a transfer item record.
func (*TransferItem) TableName ¶
func (t *TransferItem) TableName() string
type Transmute ¶
type Unit ¶
type UnitConversion ¶
type UnitConversion struct {
models.BaseModel
From string `db:"from" json:"from"`
Multiplier float64 `db:"multiplier" json:"multiplier"`
Into string `db:"into" json:"into"`
}
func (*UnitConversion) TableName ¶
func (u *UnitConversion) TableName() string
type Warehouse ¶
type WarehouseStock ¶
type WarehouseStock struct {
models.BaseModel
Warehouse string `db:"warehouse" json:"warehouse"`
Item string `db:"item" json:"item"`
Quantity int `db:"quantity" json:"quantity"`
Unit string `db:"unit" json:"unit"`
UnitPrice float64 `db:"unit_price" json:"unit_price"`
Virtual bool `db:"virtual" json:"virtual"`
Sellable bool `db:"sellable" json:"sellable"`
Expires time.Time `db:"expires" json:"expires"`
}
func (*WarehouseStock) TableName ¶
func (w *WarehouseStock) TableName() string
Click to show internal directories.
Click to hide internal directories.