Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SchemaJson string
Functions ¶
func DefaultCurrency ¶
func DefaultCurrency() string
func LoadConfig ¶ added in v0.4.1
Types ¶
type AllocationTarget ¶ added in v0.4.1
type Commodity ¶ added in v0.4.1
type Commodity struct { Name string `json:"name" yaml:"name"` Type CommodityType `json:"type" yaml:"type"` Code string `json:"code" yaml:"code"` Harvest int `json:"harvest" yaml:"harvest"` TaxCategory TaxCategoryType `json:"tax_category" yaml:"tax_category"` }
type CommodityType ¶ added in v0.4.1
type CommodityType string
const ( MutualFund CommodityType = "mutualfund" NPS CommodityType = "nps" Stock CommodityType = "stock" Unknown CommodityType = "unknown" )
type Config ¶
type Config struct { JournalPath string `json:"journal_path" yaml:"journal_path"` DBPath string `json:"db_path" yaml:"db_path"` LedgerCli string `json:"ledger_cli" yaml:"ledger_cli"` DefaultCurrency string `json:"default_currency" yaml:"default_currency"` Locale string `json:"locale" yaml:"locale"` FinancialYearStartingMonth time.Month `json:"financial_year_starting_month" yaml:"financial_year_starting_month"` Retirement Retirement `json:"retirement" yaml:"retirement"` ScheduleALs []ScheduleAL `json:"schedule_al" yaml:"schedule_al"` AllocationTargets []AllocationTarget `json:"allocation_targets" yaml:"allocation_targets"` Commodities []Commodity `json:"commodities" yaml:"commodities"` }
type Retirement ¶ added in v0.4.1
type ScheduleAL ¶ added in v0.4.1
type TaxCategoryType ¶ added in v0.4.1
type TaxCategoryType string
const ( Debt TaxCategoryType = "debt" Equity TaxCategoryType = "equity" Equity65 TaxCategoryType = "equity65" Equity35 TaxCategoryType = "equity35" UnlistedEquity TaxCategoryType = "unlisted_equity" )
Click to show internal directories.
Click to hide internal directories.