From e684ba66a715d59e32c280a38c7d3ae9a888c86c Mon Sep 17 00:00:00 2001 From: vicbentu <69422044+vicbentu@users.noreply.github.com> Date: Fri, 14 Aug 2026 07:52:43 +0200 Subject: [PATCH] Bugfix/cash balance update related to activities in custom currency (#7616) * Fix cash balance update related to activities in custom currency * Update changelog --- CHANGELOG.md | 6 ++++++ apps/api/src/app/activities/activities.service.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87b56c7d4..18fd207ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/), 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 ### Changed diff --git a/apps/api/src/app/activities/activities.service.ts b/apps/api/src/app/activities/activities.service.ts index fbcb2a6db..00ed2b407 100644 --- a/apps/api/src/app/activities/activities.service.ts +++ b/apps/api/src/app/activities/activities.service.ts @@ -308,7 +308,7 @@ export class ActivitiesService { accountId, userId, amount: amount.toNumber(), - currency: data.SymbolProfile.connectOrCreate.create.currency, + currency: activity.currency ?? activity.SymbolProfile.currency, date: data.date as Date }); }