diff --git a/engine/cdrs.go b/engine/cdrs.go index 1566aa068..896baf85a 100644 --- a/engine/cdrs.go +++ b/engine/cdrs.go @@ -227,7 +227,7 @@ func (cdrS *CDRServer) rateCDR(cdr *CDRWithAPIOpts) ([]*CDR, error) { cdr.CGRID, utils.MetaSessionS, cdr.RunID, cdr.OriginID, cdr.OriginHost)) } if cdr.CostDetails != nil { - if cdr.Usage == cdr.CostDetails.GetUsage() { // Costs were previously calculated, make sure they cover the full usage + if cdr.Usage <= cdr.CostDetails.GetUsage() { // Costs were previously calculated, make sure they cover the full usage cdr.Cost = cdr.CostDetails.GetCost() cdr.CostDetails.Compute() return []*CDR{cdr.CDR}, nil