small fix

This commit is contained in:
Radu Ioan Fericean
2014-04-30 19:19:44 +03:00
parent 7bda45fcce
commit f45833edeb
2 changed files with 1 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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
}
}