accounting

package
v0.0.0-...-1ae7d1a Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TaxFreeAfter = time.Hour * 24 * 365
View Source
const TimeFormat = "02.01.2006"

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	// contains filtered or unexported fields
}

func NewBook

func NewBook(records []*transaction.Tx, taxYear int) (*Book, error)

func (*Book) Calculate

func (b *Book) Calculate() error

func (*Book) String

func (b *Book) String() string

func (*Book) TaxRecords

func (b *Book) TaxRecords() []*TaxRecord

func (*Book) TaxReport

func (b *Book) TaxReport(full bool) string

type TaxRecord

type TaxRecord struct {
	Currency            transaction.Currency
	BuyTs               time.Time
	SellTs              time.Time
	SellPrice           *big.Float
	BuyPrice            *big.Float
	AdvertisingCosts    *big.Float //Werbungskosten
	HoldLongerThenAYear bool
	TaxYear             int
}

Jump to

Keyboard shortcuts

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