Browse Source
Bugfix/cash balance update related to activities in custom currency (#7616)
* Fix cash balance update related to activities in custom currency
* Update changelog
pull/7619/head
vicbentu
4 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
7 additions and
1 deletions
-
CHANGELOG.md
-
apps/api/src/app/activities/activities.service.ts
|
|
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. |
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
|
|
|
|
|
|
|
|
|
## Unreleased |
|
|
|
|
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
|
|
|
|
- Fixed the cash balance update related to activities in a custom currency |
|
|
|
|
|
|
|
|
## 3.50.0 - 2026-08-13 |
|
|
## 3.50.0 - 2026-08-13 |
|
|
|
|
|
|
|
|
### Changed |
|
|
### Changed |
|
|
|
|
|
@ -308,7 +308,7 @@ export class ActivitiesService { |
|
|
accountId, |
|
|
accountId, |
|
|
userId, |
|
|
userId, |
|
|
amount: amount.toNumber(), |
|
|
amount: amount.toNumber(), |
|
|
currency: data.SymbolProfile.connectOrCreate.create.currency, |
|
|
currency: activity.currency ?? activity.SymbolProfile.currency, |
|
|
date: data.date as Date |
|
|
date: data.date as Date |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|