Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DateTimeTZ ¶
type DateTimeTZ struct {
lkdr.DateTimeTZ
}
func (DateTimeTZ) GormDataType ¶
func (dt DateTimeTZ) GormDataType() string
func (*DateTimeTZ) Scan ¶
func (dt *DateTimeTZ) Scan(value any) error
type FiscalData ¶
type FiscalData struct { ReceiptKey string `json:"-" gorm:"primaryKey"` Receipt Receipt `json:"-" gorm:"constraint:OnDelete:CASCADE"` BuyerAddress string `json:"buyerAddress"` CashTotalSum float64 `json:"cashTotalSum"` CreditSum float64 `json:"creditSum"` DateTime DateTime `json:"dateTime"` EcashTotalSum float64 `json:"ecashTotalSum"` FiscalDocumentFormatVer string `json:"fiscalDocumentFormatVer"` FiscalDocumentNumber int64 `json:"fiscalDocumentNumber"` FiscalDriveNumber string `json:"fiscalDriveNumber"` FiscalSign string `json:"fiscalSign"` InternetSign *int `json:"internetSign"` Items []FiscalDataItem `json:"items" gorm:"constraint:OnDelete:CASCADE;foreignKey:ReceiptKey"` KktRegId string `json:"kktRegId"` MachineNumber *string `json:"machineNumber"` Nds10 *float64 `json:"nds10"` Nds18 *float64 `json:"nds18"` OperationType int `json:"operationType"` Operator *string `json:"operator"` PrepaidSum float64 `json:"prepaidSum"` ProvisionSum float64 `json:"provisionSum"` RequestNumber int64 `json:"requestNumber"` RetailPlace string `json:"retailPlace"` RetailPlaceAddress *string `json:"retailPlaceAddress"` ShiftNumber int64 `json:"shiftNumber"` TaxationType int `json:"taxationType"` TotalSum float64 `json:"totalSum"` User *string `json:"user"` UserInn string `json:"userInn"` }
func (FiscalData) TableName ¶
func (fd FiscalData) TableName() string
type FiscalDataItem ¶
type FiscalDataItem struct { ReceiptKey string `json:"-" gorm:"primaryKey"` DbIdx int `json:"dbIdx" gorm:"primaryKey"` Name string `json:"name"` Nds int `json:"nds"` PaymentType int `json:"paymentType"` Price float64 `json:"price"` ProductType int `json:"productType"` ProviderInn *string `json:"providerInn"` Quantity float64 `json:"quantity"` Sum float64 `json:"sum"` }
type Receipt ¶
type Receipt struct { UserPhone string `json:"-" gorm:"index"` User User `json:"-" gorm:"constraint:OnDelete:CASCADE"` BrandId *int64 `json:"brandId" gorm:"index"` Brand *Brand `json:"-" gorm:"constraint:OnDelete:CASCADE"` Buyer string `json:"buyer"` BuyerType string `json:"buyerType"` CreatedDate DateTime `json:"createdDate" gorm:"index"` FiscalDocumentNumber string `json:"fiscalDocumentNumber"` FiscalDriveNumber string `json:"fiscalDriveNumber"` Key string `json:"key" gorm:"primaryKey"` KktOwner string `json:"kktOwner"` KktOwnerInn string `json:"kktOwnerInn"` ReceiveDate DateTime `json:"receiveDate" gorm:"index"` TotalSum string `json:"totalSum"` }
type Tokens ¶
type Tokens struct { UserPhone string `json:"-" gorm:"primaryKey"` User User `json:"-" gorm:"constraint:OnDelete:CASCADE"` RefreshToken string `json:"refreshToken"` RefreshTokenExpiresIn *DateTimeTZ `json:"refreshTokenExpiresIn,omitempty"` Token string `json:"token"` TokenExpireIn DateTimeTZ `json:"tokenExpireIn"` }
Click to show internal directories.
Click to hide internal directories.