SmartCost: disable on static tariffs (#11808)

This commit is contained in:
andig 2024-01-22 11:03:09 +01:00 • committed by GitHub
parent bc0343ab7d
commit 3e23dd12e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -760,7 +760,7 @@ func (site *Site) update(lp Updater) {
}
var smartCostActive bool
if tariff := site.GetTariff(PlannerTariff); tariff != nil {
if tariff := site.GetTariff(PlannerTariff); tariff != nil && tariff.Type() != api.TariffTypePriceStatic {
rates, err := tariff.Rates()
var rate api.Rate