mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
small fix
This commit is contained in:
@@ -253,8 +253,7 @@ func (b *Balance) DebitUnits(cc *CallCost, count bool, ub *Account, moneyBalance
|
||||
nInc.UnitInfo = &UnitInfo{newCC.Destination, seconds, cc.TOR}
|
||||
if cost != 0 {
|
||||
nInc.BalanceInfo.MoneyBalanceUuid = moneyBal.Uuid
|
||||
moneyBal.Value -= cost
|
||||
moneyBal.Value = utils.Round(moneyBal.Value, roundingDecimals, utils.ROUNDING_MIDDLE)
|
||||
moneyBal.SubstractAmount(cost)
|
||||
}
|
||||
nInc.paid = true
|
||||
if count {
|
||||
|
||||
@@ -21,7 +21,6 @@ package engine
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"log/syslog"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -628,7 +627,6 @@ func (cd *CallDescriptor) MaxDebit() (cc *CallCost, err error) {
|
||||
return 0, err
|
||||
})
|
||||
} else {
|
||||
log.Print("cxcxxc")
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user