From 66c6efab96cdf996ca91d49e1f78c29ccdf42987 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Tue, 3 Dec 2013 17:03:20 +0200 Subject: [PATCH] fixed debit bug --- engine/{realcalls_test_unsolved.go => realcalls_test.go} | 0 engine/userbalance.go | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename engine/{realcalls_test_unsolved.go => realcalls_test.go} (100%) diff --git a/engine/realcalls_test_unsolved.go b/engine/realcalls_test.go similarity index 100% rename from engine/realcalls_test_unsolved.go rename to engine/realcalls_test.go diff --git a/engine/userbalance.go b/engine/userbalance.go index b209cf6df..9589e39b0 100644 --- a/engine/userbalance.go +++ b/engine/userbalance.go @@ -132,7 +132,7 @@ func (ub *UserBalance) getBalancesForPrefix(prefix string, balances BalanceChain if b.IsExpired() || (ub.Type != UB_TYPE_POSTPAID && b.Value <= 0) { continue } - if b.DestinationId != "" { + if b.DestinationId != "" && b.DestinationId != "*any" { dest, err := storageGetter.GetDestination(b.DestinationId, false) if err != nil { continue