commerce

package
v0.0.0-...-d2a2bec Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer struct {
	alira.Model
	Class   string `gorm:"default:'SHOPOWNER'"` // DISTRIBUTOR
	Code    string
	Status  string `grom:"default:'INACTIVE'"`
	Payment bool   `grom:"default:false"`
}

func (Customer) TableName

func (Customer) TableName() string

type CustomerUser

type CustomerUser struct {
	alira.Model
	CustomerID    string
	UserID        string
	Username      string
	Email         string
	PrimaryMobile string
	Role          string `gorm:"default:'OWNER'"`
	Active        bool   `gorm:"default:false"`
	Delete        bool   `gorm:"default:false"`
}

func (CustomerUser) TableName

func (CustomerUser) TableName() string

type Order

type Order struct {
	alira.Model
	StoreID         string
	Code            string
	Currency        string
	Subtotal        float64
	ServiceTax      float64
	Total           float64
	Rounding        float64
	Status          string
	PaidDate        time.Time
	PaymentMode     string
	Channel         string
	Bank            string
	ReferenceNo     string
	LocalCurrency   string
	BuyRate         float64
	SellRate        float64
	EquivalentTotal float64
}

func (Order) TableName

func (Order) TableName() string

type OrderDetail

type OrderDetail struct {
	alira.Model
	OrderID   string
	ProductID string
	Unit      string
	Currency  string
	Price     string
	Quantity  string
	Total     string
}

func (OrderDetail) TableName

func (OrderDetail) TableName() string

type Product

type Product struct {
	alira.Model
	Barcode     string
	Name        string
	LongName    string
	Manufacture string
}

func (Product) TableName

func (Product) TableName() string

type Store

type Store struct {
	alira.Model
	CustomerID string
	Class      string `gorm:"default:'GENERAL'"`
	Code       string
	Name       string
	Address    string
	City       string
	State      string
	Country    string
	PostalCode string
	Geocode    string  `gorm:"default:null"`
	Longitude  float64 `gorm:"default:null"`
	Latitude   float64 `gorm:"default:null"`
	Status     string  `gorm:"default:'OPEN'"`
	Default    bool    `gorm:"default:false"`
}

func (Store) TableName

func (Store) TableName() string

type StoreProduct

type StoreProduct struct {
	alira.Model
	StoreID    string
	ProductID  string
	CategoryID string
	Name       string
	Image      string
	RackNo     string
	Available  int64 `gorm:"default:0"`
	Opname     int64 `gorm:"default:0"`
	Return     int64 `gorm:"default:0"`
	Sold       int64 `gorm:"default:0"`
}

func (StoreProduct) TableName

func (StoreProduct) TableName() string

type StoreProductCategory

type StoreProductCategory struct {
	alira.Model
	StoreID     string
	Code        string
	Name        string
	Description string
}

func (StoreProductCategory) TableName

func (StoreProductCategory) TableName() string

type StoreProductPrice

type StoreProductPrice struct {
	alira.Model
	StoreProductID string
	Quantity       int64 `gorm:"default:0"`
	Unit           string
	Currency       string
	BuyPrice       float64 `gorm:"default:0"`
	SellPrice      float64 `gorm:"default:0"`
	NotBefore      time.Time
	NotAfter       time.Time
}

func (*StoreProductPrice) BeforeCreate

func (model *StoreProductPrice) BeforeCreate(scope *gorm.Scope) error

func (StoreProductPrice) TableName

func (StoreProductPrice) TableName() string

type StoreUser

type StoreUser struct {
	alira.Model
	CustomerUserID string
	StoreID        string
	Role           string `gorm:"default:'TELLER'"`
	NotBefore      time.Time
	NotAfter       time.Time `gorm:"default:null"`
	Status         string
	Active         bool `gorm:"default:false"`
}

func (*StoreUser) BeforeCreate

func (model *StoreUser) BeforeCreate(scope *gorm.Scope) error

func (StoreUser) TableName

func (StoreUser) TableName() string

Jump to

Keyboard shortcuts

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