tax

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package tax is the algorithm to calculate taxes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectTaxYear added in v0.0.9

func SelectTaxYear(cfg *config.Config, user *user.User)

SelectTaxYear ask in console if you want Ask to the user if he wants to change the year of the tax metrics to calculate taxes from another year

func ShowTaxList added in v0.0.9

func ShowTaxList(cfg config.Config)

ShowTaxList show in the console the list of year metrics

func ShowTaxListUsed added in v0.0.9

func ShowTaxListUsed(cfg config.Config)

ShowTaxListUsed show the current tax used in the console

func StartReverseTaxCalculator added in v0.0.9

func StartReverseTaxCalculator(cfg *config.Config, user *user.User)

StartReverseTaxCalculator calculate income needed from remainder seized by user

func StartTaxCalculator added in v0.0.9

func StartTaxCalculator(cfg *config.Config, user *user.User)

StartTaxCalculator calculate taxes from income seized by user

Types

type Result

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

Result define the result after calculating tax

type TaxTranche

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

TaxTranche represent the tax calculating for each tranch when we calculate tax

Jump to

Keyboard shortcuts

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