mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 18:46:24 +05:00
founding for the new call cost
This commit is contained in:
@@ -433,6 +433,10 @@ func (cd *CallDescriptor) GetCost() (*CallCost, error) {
|
||||
}
|
||||
}
|
||||
cc.Cost = cost
|
||||
// global rounding
|
||||
roundingDecimals, roundingMethod := cc.GetLongestRounding()
|
||||
cc.Cost = utils.Round(cc.Cost, roundingDecimals, roundingMethod)
|
||||
|
||||
return cc, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user