assettax

package
v2.0.0-alpha.21 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalAssetTaxCount

func GetTotalAssetTaxCount(dbConnPgx utils.PgxIface) (*int, error)

func InsertAssetTax

func InsertAssetTax(dbConnPgx utils.PgxIface, assetTax *AssetTax) (int, int, error)

func InsertAssetTaxes

func InsertAssetTaxes(dbConnPgx utils.PgxIface, assetTaxes []AssetTax) error

func RemoveAssetTax

func RemoveAssetTax(dbConnPgx utils.PgxIface, taxID, assetID *int) error

func UpdateAssetTax

func UpdateAssetTax(dbConnPgx utils.PgxIface, assetTax *AssetTax) error

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 GetAllAssetTaxesByTaxType

func GetAllAssetTaxesByTaxType(dbConnPgx utils.PgxIface, taxTypeID *int) ([]AssetTax, error)

func GetAssetTax

func GetAssetTax(dbConnPgx utils.PgxIface, taxID, assetID *int) (*AssetTax, error)

func GetAssetTaxList

func GetAssetTaxList(dbConnPgx utils.PgxIface, assetIds []int, taxIds []int) ([]AssetTax, error)

func GetAssetTaxListByPagination

func GetAssetTaxListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]AssetTax, error)

for refinedev

Jump to

Keyboard shortcuts

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