Browse Source

Show correct quantity when editing

pull/3211/head
Nicolas Fedor 1 year ago
parent
commit
ca3189fcd5
  1. 12
      apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts

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

@ -424,11 +424,6 @@ export class CreateOrUpdateActivityDialog implements OnDestroy {
'feeInCustomCurrency'
].updateValueAndValidity();
// this.activityForm.controls['searchSymbol'].removeValidators(
// Validators.required
// );
// this.activityForm.controls['searchSymbol'].updateValueAndValidity();
this.activityForm.controls['unitPrice'].removeValidators(
Validators.required
);
@ -441,13 +436,6 @@ export class CreateOrUpdateActivityDialog implements OnDestroy {
'unitPriceInCustomCurrency'
].updateValueAndValidity();
// this.activityForm.controls['dataSource'].removeValidators(
// Validators.required
// );
// this.activityForm.controls['dataSource'].updateValueAndValidity();
this.activityForm.controls['quantity'].setValue(1);
this.activityForm.controls['updateAccountBalance'].disable();
this.activityForm.controls['updateAccountBalance'].setValue(false);
} else {

Loading…
Cancel
Save