Debit account from *usage test

This commit is contained in:
porosnicuadrian
2021-07-27 12:02:39 +03:00
committed by Dan Christian Bogos
parent acd9b527bd
commit bd59b70694
3 changed files with 10 additions and 6 deletions

View File

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