@ -389,8 +389,8 @@ export class ActivitiesTableComponent implements OnChanges, OnDestroy, OnInit {
if ( isNumber ( activity . valueInBaseCurrency ) ) {
if ( isNumber ( activity . valueInBaseCurrency ) ) {
if ( activity . type === 'BUY' || activity . type === 'ITEM' ) {
if ( activity . type === 'BUY' || activity . type === 'ITEM' ) {
totalValue = totalValue . plus ( activity . valueInBaseCurrency ) ;
totalValue = totalValue . plus ( activity . valueInBaseCurrency ) ;
} else if ( activity . type === 'SELL' ) {
} else if ( activity . type === 'SELL' || activity . type === 'LIABILITY' ) {
return null ;
totalValue = totalValue . minus ( activity . valueInBaseCurrency ) ;
}
}
} else {
} else {
return null ;
return null ;