Files
goodcalc/goodcalc.go
Andreas Schröpfer d646a0d610 first calculation logic
2020-12-23 21:27:12 +01:00

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
}