@if (mode === 'create') {

Add activity

} @else {

Update activity

}
Type {{ typesTranslationMap[activityForm.get('type').value] }} {{ typesTranslationMap['BUY'] }} Stocks, ETFs, bonds, cryptocurrencies, commodities {{ typesTranslationMap['FEE'] }} One-time fee, annual account fees {{ typesTranslationMap['DIVIDEND'] }} Distribution of corporate earnings {{ typesTranslationMap['INTEREST'] }} Revenue for lending out money {{ typesTranslationMap['LIABILITY'] }} Mortgages, personal loans, credit cards {{ typesTranslationMap['SELL'] }} Stocks, ETFs, bonds, cryptocurrencies, commodities {{ typesTranslationMap['ITEM'] }} Luxury items, real estate, private companies
Account @if ( !activityForm.get('accountId').hasValidator(Validators.required) || (!activityForm.get('accountId').value && mode === 'update') ) { } @for (account of data.accounts; track account) {
@if (account.Platform?.url) { } {{ account.name }}
}
Update Cash Balance
Name, symbol or ISIN
Name
Currency @for (currency of currencies; track currency) { {{ currency }} }
Data Source
Date
Quantity
@switch (activityForm.get('type')?.value) { @case ('DIVIDEND') { Dividend } @case ('INTEREST') { Value } @case ('ITEM') { Value } @case ('LIABILITY') { Value } @default { Unit Price } }
@for (currency of currencies; track currency) { {{ currency }} }
@if ( activityForm.get('unitPriceInCustomCurrency').hasError('invalid') ) { Oops! Could not get the historical exchange rate from {{ activityForm.get('date')?.value | date: defaultDateFormat }} }
@if ( currentMarketPrice && (data.activity.type === 'BUY' || data.activity.type === 'SELL') && isToday(activityForm.get('date')?.value) ) { }
@switch (activityForm.get('type')?.value) { @case ('DIVIDEND') { Dividend } @case ('FEE') { Value } @case ('INTEREST') { Value } @case ('ITEM') { Value } @case ('LIABILITY') { Value } @default { Unit Price } } {{ activityForm.get('currency').value }}
Fee
{{ activityForm.get('currencyOfUnitPrice').value }}
@if (activityForm.get('feeInCustomCurrency').hasError('invalid')) { Oops! Could not get the historical exchange rate from {{ activityForm.get('date')?.value | date: defaultDateFormat }} }
Fee {{ activityForm.get('currency').value }}
Note
Asset Class @for (assetClass of assetClasses; track assetClass) { {{ assetClass.label }} }
Asset Sub Class @for (assetSubClass of assetSubClasses; track assetSubClass) { {{ assetSubClass.label }} }