shared

package
v1.0.68 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractNumber

func ExtractNumber(data InvoiceBillSettingModel, number string) string

func GenerateInvoiceBillNumber

func GenerateInvoiceBillNumber(data InvoiceBillSettingModel, before string) string

Types

type BaseModel

type BaseModel struct {
	ID        string         `gorm:"type:char(36);primary_key" bson:"-" json:"id,omitempty"`
	CreatedAt *time.Time     `json:"created_at" bson:"-"`
	UpdatedAt *time.Time     `json:"updated_at" bson:"updatedAt"`
	DeletedAt gorm.DeletedAt `gorm:"index" json:"-" bson:"-"`
}

type InvoiceBillSettingModel

type InvoiceBillSettingModel struct {
	ParentTemplate        string `json:"parent_template"`
	Template              string `json:"template"`
	DefaultFooter         string `json:"default_footer"`
	StaticCharacter       string `json:"static_character"`
	NumberFormat          string `json:"number_format"`
	AutoNumericLength     int    `json:"auto_numeric_length"`
	RandomNumericLength   int    `json:"random_numeric_length"`
	RandomCharacterLength int    `json:"random_character_length"`
	ShowFooter            bool   `json:"show_footer"`
	ShowSKU               bool   `json:"show_sku"`
	Title                 string `json:"title"`
	StoreID               string `json:"store_id"`
	SourceID              string `json:"source_id"`
	DestinationID         string `json:"destination_id"`
	DestinationCashID     string `json:"destination_cash_id"`
	TaxID                 string `json:"tax_id"`
	TaxMethod             string `json:"tax_method"`
	SecondaryTaxID        string `json:"secondary_tax_id"`
	SecondaryTaxMethod    string `json:"secondary_tax_method"`
	Notes                 string `json:"notes"`
	IsAutoStock           bool   `json:"is_auto_stock"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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