@ -62,27 +62,28 @@ export class ImportActivitiesService {
const currency = this . parseCurrency ( { content , index , item } ) ;
const currency = this . parseCurrency ( { content , index , item } ) ;
activities . push ( {
activities . push ( {
accountId : this.parseAccount ( { item , userAccounts } ) ,
comment : this.parseComment ( { item } ) ,
currency ,
currency ,
dataSource ,
dataSource ,
symbol ,
accountId : this.parseAccount ( { item , userAccounts } ) ,
comment : this.parseComment ( { item } ) ,
date : this.parseDate ( { content , index , item } ) ,
date : this.parseDate ( { content , index , item } ) ,
fee : this.parseFee ( { content , index , item } ) ,
fee : this.parseFee ( { content , index , item } ) ,
quantity : this.parseQuantity ( { content , index , item } ) ,
quantity : this.parseQuantity ( { content , index , item } ) ,
symbol ,
type : this . parseType ( { content , index , item } ) ,
type : this . parseType ( { content , index , item } ) ,
unitPrice : this.parseUnitPrice ( { content , index , item } ) ,
unitPrice : this.parseUnitPrice ( { content , index , item } ) ,
updateAccountBalance : false
updateAccountBalance : false
} ) ;
} ) ;
// Create synthetic asset profile for MANUAL data source
if ( dataSource === DataSource . MANUAL ) {
if ( dataSource === DataSource . MANUAL ) {
// Create synthetic asset profile for MANUAL data source
assetProfiles . push ( {
assetProfiles . push ( {
currency ,
symbol ,
assetClass : null ,
assetClass : null ,
assetSubClass : null ,
assetSubClass : null ,
comment : null ,
comment : null ,
countries : [ ] ,
countries : [ ] ,
currency ,
cusip : null ,
cusip : null ,
dataSource : DataSource.MANUAL ,
dataSource : DataSource.MANUAL ,
figi : null ,
figi : null ,
@ -95,7 +96,6 @@ export class ImportActivitiesService {
name : symbol ,
name : symbol ,
scraperConfiguration : null ,
scraperConfiguration : null ,
sectors : [ ] ,
sectors : [ ] ,
symbol ,
symbolMapping : { } ,
symbolMapping : { } ,
url : null
url : null
} ) ;
} ) ;