mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 16:18:44 +05:00
Update MaxCost for GetSuppliers
This commit is contained in:
committed by
Dan Christian Bogos
parent
e6abae9fd4
commit
84e3ac80fe
@@ -56,7 +56,7 @@ func (lcs *LeastCostSorter) SortSuppliers(prflID string,
|
||||
return nil, err
|
||||
}
|
||||
utils.Logger.Debug(fmt.Sprintf("maxCost : %+v and cost costData[utils.Cost] %+v", float64(*lcs.spS.maxCost), cost))
|
||||
if cost > float64(*lcs.spS.maxCost) {
|
||||
if cost > *lcs.spS.maxCost && *lcs.spS.maxCost != 0 {
|
||||
continue
|
||||
}
|
||||
srtData := map[string]interface{}{
|
||||
|
||||
Reference in New Issue
Block a user