SmartCost: disable on static tariffs (#11808)
This commit is contained in:
parent
bc0343ab7d
commit
3e23dd12e9
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue