mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
apply partial debit before stopping due to blocker
This commit is contained in:
committed by
Dan Christian Bogos
parent
668f421842
commit
0aa5cf38e8
@@ -411,7 +411,10 @@ func (acc *Account) debitCreditBalance(cd *CallDescriptor, count bool, dryRun bo
|
||||
}
|
||||
// check for blocker
|
||||
if balance.Blocker {
|
||||
return // don't go to next balances
|
||||
if cd.GetDuration() != 0 {
|
||||
return
|
||||
}
|
||||
goto COMMIT // don't go to next balances
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -444,7 +447,10 @@ func (acc *Account) debitCreditBalance(cd *CallDescriptor, count bool, dryRun bo
|
||||
}
|
||||
// check for blocker
|
||||
if balance.Blocker {
|
||||
return // don't go to next balances
|
||||
if cd.GetDuration() != 0 {
|
||||
return
|
||||
}
|
||||
goto COMMIT // don't go to next balances
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user