Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Customer ¶
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 }
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 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"` }
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
Click to show internal directories.
Click to hide internal directories.