mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 00:28:44 +05:00
Debit account from *usage test
This commit is contained in:
committed by
Dan Christian Bogos
parent
acd9b527bd
commit
bd59b70694
@@ -285,7 +285,12 @@ func (eEc *ExtEventCharges) Equals(exCh *ExtEventCharges) (eq bool) {
|
||||
|
||||
// Equals returns the equality between two EventCharges
|
||||
func (eC *EventCharges) Equals(evCh *EventCharges) (eq bool) {
|
||||
if (eC.Abstracts == nil && evCh.Abstracts != nil ||
|
||||
if eC == nil && evCh == nil {
|
||||
return true
|
||||
}
|
||||
if (eC == nil && evCh != nil ||
|
||||
eC != nil && evCh == nil) ||
|
||||
(eC.Abstracts == nil && evCh.Abstracts != nil ||
|
||||
eC.Abstracts != nil && evCh.Abstracts == nil ||
|
||||
(eC.Abstracts != nil && evCh.Abstracts != nil &&
|
||||
eC.Abstracts.Compare(evCh.Abstracts) != 0)) ||
|
||||
|
||||
Reference in New Issue
Block a user