Documentation ¶
Index ¶
- func GetTotalAssetTaxCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertAssetTax(dbConnPgx utils.PgxIface, assetTax *AssetTax) (int, int, error)
- func InsertAssetTaxes(dbConnPgx utils.PgxIface, assetTaxes []AssetTax) error
- func RemoveAssetTax(dbConnPgx utils.PgxIface, taxID, assetID *int) error
- func UpdateAssetTax(dbConnPgx utils.PgxIface, assetTax *AssetTax) error
- type AssetTax
- func GetAllAssetTaxesByTaxType(dbConnPgx utils.PgxIface, taxTypeID *int) ([]AssetTax, error)
- func GetAssetTax(dbConnPgx utils.PgxIface, taxID, assetID *int) (*AssetTax, error)
- func GetAssetTaxList(dbConnPgx utils.PgxIface, assetIds []int, taxIds []int) ([]AssetTax, error)
- func GetAssetTaxListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]AssetTax, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertAssetTax ¶
func InsertAssetTaxes ¶
Types ¶
type AssetTax ¶
type AssetTax struct { TaxID *int `json:"taxId" db:"tax_id"` //1 AssetID *int `json:"assetId" db:"asset_id"` //2 UUID string `json:"uuid" db:"uuid"` //3 Name string `json:"name" db:"name"` //4 AlternateName string `json:"alternateName" db:"alternate_name"` //5 TaxRateOverride *decimal.Decimal `json:"taxRateOverride" db:"tax_rate_override"` //6 TaxRateTypeID *int `json:"taxRateTypeId" db:"tax_rate_type_id"` //7 Description string `json:"description" db:"description"` //8 CreatedBy string `json:"createdBy" db:"created_by"` //9 CreatedAt time.Time `json:"createdAt" db:"created_at"` //10 UpdatedBy string `json:"updatedBy" db:"updated_by"` //11 UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` //12 }
Asset
func GetAssetTax ¶
func GetAssetTaxList ¶
Click to show internal directories.
Click to hide internal directories.