wam

package
v0.0.0-...-afd3e11 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCalculationContext

func NewCalculationContext() *calculationContext

Types

type Calculator

type Calculator struct{}

func NewCalculator

func NewCalculator() *Calculator

func (*Calculator) CalculateBalance

func (cal *Calculator) CalculateBalance(beginingBalances models.BalanceSlice, entries models.EntrySlice, year int, options ...costmethod.Option) (models.BalanceSlice, error)

type Profit

type Profit struct {
	UnitPrice *decimal.Big `json:"unit_price"`
	Profit    *decimal.Big `json:"profit"`
}

Profit is a result of calculation

Jump to

Keyboard shortcuts

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