Karun Shrestha
2 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
1 additions and
12 deletions
-
apps/api/src/app/account/account.service.ts
-
apps/client/src/app/pages/portfolio/activities/create-or-update-activity-dialog/create-or-update-activity-dialog.component.ts
|
|
|
@ -337,7 +337,7 @@ export class AccountService { |
|
|
|
accountId, |
|
|
|
userId, |
|
|
|
balance: new Big(balance).plus(amountInCurrencyOfAccount).toNumber(), |
|
|
|
date: date.toISOString() |
|
|
|
date: format(new Date(), DATE_FORMAT) |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -297,17 +297,6 @@ export class GfCreateOrUpdateActivityDialogComponent { |
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
|
}); |
|
|
|
|
|
|
|
this.activityForm.get('date')?.valueChanges.subscribe(() => { |
|
|
|
if (isToday(this.activityForm.get('date')?.value)) { |
|
|
|
this.activityForm.get('updateAccountBalance')?.enable(); |
|
|
|
} else { |
|
|
|
this.activityForm.get('updateAccountBalance')?.disable(); |
|
|
|
this.activityForm.get('updateAccountBalance')?.setValue(false); |
|
|
|
} |
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
|
}); |
|
|
|
|
|
|
|
this.activityForm.get('searchSymbol')?.valueChanges.subscribe(() => { |
|
|
|
if (this.activityForm.get('searchSymbol')?.invalid) { |
|
|
|
this.data.activity.assetProfile = null; |
|
|
|
|