21 lines
654 B
Go
21 lines
654 B
Go
// Package goodcalc is a good balance calculator
|
|
// The logic of the calculation is based on the
|
|
// excel calculator. The simple steps can be found
|
|
// inside the MatrixBerechnung.ods file inside this
|
|
// repository.
|
|
package goodcalc
|
|
|
|
// Aspect does contain the valuation of the company.
|
|
type Aspect struct {
|
|
No string `json:"no"`
|
|
Weight float32 `json:"weight"`
|
|
MaxValuationPoints int `json:"max_valuation_points"`
|
|
ValuationPoints int `json:"valuation_points"`
|
|
}
|
|
|
|
// NegativeAspect has the same fields like Aspect. But the
|
|
// business logic requieres a different handling.
|
|
type NegativeAspect struct {
|
|
Aspect
|
|
}
|