Browse Source

Fix creation of activities with type FEE, INTEREST or LIABILITY

pull/6378/head
Thomas Kaul 2 months ago
parent
commit
ce0c3cd5b1
  1. 7
      apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts

7
apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts

@ -501,11 +501,12 @@ export class GfCreateOrUpdateActivityDialogComponent implements OnDestroy {
comment: this.activityForm.get('comment').value || null, comment: this.activityForm.get('comment').value || null,
currency: this.activityForm.get('currency').value, currency: this.activityForm.get('currency').value,
customCurrency: this.activityForm.get('currencyOfUnitPrice').value, customCurrency: this.activityForm.get('currencyOfUnitPrice').value,
date: this.activityForm.get('date').value, dataSource: ['FEE', 'INTEREST', 'LIABILITY', 'VALUABLE'].includes(
dataSource: this.activityForm.get('type').value
this.activityForm.get('type').value === 'VALUABLE' )
? 'MANUAL' ? 'MANUAL'
: this.activityForm.get('dataSource').value, : this.activityForm.get('dataSource').value,
date: this.activityForm.get('date').value,
fee: this.activityForm.get('fee').value, fee: this.activityForm.get('fee').value,
quantity: this.activityForm.get('quantity').value, quantity: this.activityForm.get('quantity').value,
symbol: symbol:

Loading…
Cancel
Save