Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteBackups(file LedgerFile) gin.H
- func GetAllocation(db *gorm.DB) gin.H
- func GetCapitalGains(db *gorm.DB) gin.H
- func GetDiagnosis(db *gorm.DB) gin.H
- func GetExpense(db *gorm.DB) gin.H
- func GetFile(file LedgerFile) gin.H
- func GetFiles(db *gorm.DB) gin.H
- func GetGain(db *gorm.DB) gin.H
- func GetHarvest(db *gorm.DB) gin.H
- func GetIncome(db *gorm.DB) gin.H
- func GetInvestment(db *gorm.DB) gin.H
- func GetLedger(db *gorm.DB) gin.H
- func GetOverview(db *gorm.DB) gin.H
- func GetPortfolioAllocation(db *gorm.DB) gin.H
- func GetPrices(db *gorm.DB) gin.H
- func GetScheduleAL(db *gorm.DB) gin.H
- func GetTransactions(db *gorm.DB) gin.H
- func Listen(db *gorm.DB)
- func SaveFile(file LedgerFile) gin.H
- func Sync(db *gorm.DB, request SyncRequest) gin.H
- func ValidateFile(file LedgerFile) gin.H
- type Aggregate
- type AllocationTarget
- type AllocationTargetConfig
- type CapitalGain
- type CommodityBreakdown
- type FYCapitalGain
- type Gain
- type Graph
- type HarvestBreakdown
- type Harvestable
- type Income
- type Issue
- type LedgerFile
- type Level
- type Link
- type Node
- type Overview
- type Pair
- type PortfolioAggregate
- type PortfolioDimension
- type PostingPair
- type Rule
- type ScheduleALConfig
- type ScheduleALEntry
- type ScheduleALSection
- type SyncRequest
- type Tax
- type Transaction
- type YearlyCard
Constants ¶
View Source
const DATE_FORMAT string = "02 Jan 2006"
Variables ¶
View Source
var CII_START_DATE, _ = time.Parse("2006-01-02", "2001-03-31")
View Source
var EQUITY_GRANDFATHER_DATE, _ = time.Parse("2006-01-02", "2018-02-01")
View Source
var Sections []ScheduleALSection
Functions ¶
func DeleteBackups ¶ added in v0.3.2
func DeleteBackups(file LedgerFile) gin.H
func GetFile ¶ added in v0.3.2
func GetFile(file LedgerFile) gin.H
func SaveFile ¶ added in v0.3.1
func SaveFile(file LedgerFile) gin.H
func ValidateFile ¶ added in v0.3.1
func ValidateFile(file LedgerFile) gin.H
Types ¶
type AllocationTarget ¶ added in v0.1.3
type AllocationTargetConfig ¶ added in v0.1.3
type CapitalGain ¶ added in v0.2.2
type CapitalGain struct { Account string `json:"account"` TaxCategory string `json:"tax_category"` FY map[string]FYCapitalGain `json:"fy"` }
type CommodityBreakdown ¶ added in v0.3.0
type CommodityBreakdown struct { ParentCommodityID string `json:"parent_commodity_id"` CommodityName string `json:"commodity_name"` SecurityName string `json:"security_name"` SecurityRating string `json:"security_rating"` SecurityIndustry string `json:"security_industry"` Percentage float64 `json:"percentage"` SecurityID string `json:"security_id"` SecurityType string `json:"security_type"` Amount float64 `json:"amount"` }
type FYCapitalGain ¶ added in v0.2.2
type FYCapitalGain struct { Gain float64 `json:"gain"` TaxableGain float64 `json:"taxable_gain"` ShortTermTax float64 `json:"short_term_tax"` LongTermTax float64 `json:"long_term_tax"` Units float64 `json:"units"` PurchasePrice float64 `json:"purchase_price"` SellPrice float64 `json:"sell_price"` PostingPairs []PostingPair `json:"posting_pairs"` }
type HarvestBreakdown ¶ added in v0.2.2
type HarvestBreakdown struct { Units float64 `json:"units"` PurchaseDate time.Time `json:"purchase_date"` PurchasePrice float64 `json:"purchase_price"` CurrentPrice float64 `json:"current_price"` PurchaseUnitPrice float64 `json:"purchase_unit_price"` UnrealizedGain float64 `json:"unrealized_gain"` TaxableUnrealizedGain float64 `json:"taxable_unrealized_gain"` }
type Harvestable ¶ added in v0.2.2
type Harvestable struct { Account string `json:"account"` TaxCategory string `json:"tax_category"` TotalUnits float64 `json:"total_units"` HarvestableUnits float64 `json:"harvestable_units"` UnrealizedGain float64 `json:"unrealized_gain"` TaxableUnrealizedGain float64 `json:"taxable_unrealized_gain"` HarvestBreakdown []HarvestBreakdown `json:"harvest_breakdown"` CurrentUnitPrice float64 `json:"current_unit_price"` GrandfatherUnitPrice float64 `json:"grandfather_unit_price"` CurrentUnitDate time.Time `json:"current_unit_date"` }
type LedgerFile ¶ added in v0.3.1
type PortfolioAggregate ¶ added in v0.3.0
type PortfolioDimension ¶ added in v0.3.0
type PortfolioDimension struct { Group string GroupFn func(CommodityBreakdown) string SubGroup string SubGroupFn func(CommodityBreakdown) string FilterFn func(CommodityBreakdown, int) bool }
type PostingPair ¶ added in v0.2.6
type ScheduleALConfig ¶ added in v0.2.5
type ScheduleALEntry ¶ added in v0.2.5
type ScheduleALEntry struct { Section ScheduleALSection `json:"section"` Amount float64 `json:"amount"` }
type ScheduleALSection ¶ added in v0.2.5
type SyncRequest ¶ added in v0.3.0
type Transaction ¶ added in v0.2.9
type YearlyCard ¶ added in v0.1.5
type YearlyCard struct { StartDate time.Time `json:"start_date"` EndDate time.Time `json:"end_date"` Postings []posting.Posting `json:"postings"` GrossSalaryIncome float64 `json:"gross_salary_income"` GrossOtherIncome float64 `json:"gross_other_income"` NetTax float64 `json:"net_tax"` NetIncome float64 `json:"net_income"` NetInvestment float64 `json:"net_investment"` NetExpense float64 `json:"net_expense"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.