Bug 467732 - Add an USD dividend to an account in CHF but otherwise base currency in EUR does not work
Summary: Add an USD dividend to an account in CHF but otherwise base currency in EUR d...
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: git (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-23 21:27 UTC by Robby Engelmann
Modified: 2023-04-17 12:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
example case (1.33 KB, application/x-kmymoney)
2023-04-08 20:59 UTC, Robby Engelmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robby Engelmann 2023-03-23 21:27:09 UTC
SUMMARY
Add dividend in USD to an account in CHF does not work

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT
two windows asking for currency conversion pop up
dividend not added

EXPECTED RESULT
dividend in list

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230321
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.8
Kernel Version: 6.2.6-1-default (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-10510U CPU @ 1.80GHz
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Manufacturer: TUXEDO
Product Name: TUXEDO
System Version: Not Applicable
Comment 1 Thomas Baumgart 2023-03-24 15:24:27 UTC
Can you create a sample .kmy file that contains the accounts and securities as you have them and explain which transaction cannot be created? Thanks in advance.
Comment 2 Robby Engelmann 2023-03-24 16:02:55 UTC
I tried to make a new Book with an Investment Account (Currency: CHF), but failed due to this message:

>Unable to create account: Account has no name /home/abuild/rpmbuild/BUILD/kmymoney-5.1.80git2428~48e4749/kmymoney/mymoney/mymoneyfile.cpp:1264

Whatsoever, I gave it a name.
Comment 3 Robby Engelmann 2023-04-04 11:49:23 UTC
In the git master version from Tumbleweed Unstable/Extra repo, it is not possible to add any transaction to accounts that are not in the base currency. If it is in base currency (here: EUR) I can add transactions.
Comment 4 Thomas Baumgart 2023-04-07 09:42:02 UTC
(In reply to Robby Engelmann from comment #2)
> I tried to make a new Book with an Investment Account (Currency: CHF), but
> failed due to this message:
> 
> >Unable to create account: Account has no name /home/abuild/rpmbuild/BUILD/kmymoney-5.1.80git2428~48e4749/kmymoney/mymoney/mymoneyfile.cpp:1264
> 
> Whatsoever, I gave it a name.

This was reported in bug 468144 and has been fixed.
Comment 5 Thomas Baumgart 2023-04-07 09:43:20 UTC
(In reply to Robby Engelmann from comment #3)
> In the git master version from Tumbleweed Unstable/Extra repo, it is not
> possible to add any transaction to accounts that are not in the base
> currency. If it is in base currency (here: EUR) I can add transactions.

Can you explain the steps (account creation, transaction creation) you perform with as much detail as possible? I am unable to duplicate the problem, so I must be doing something different. Thanks in advance.
Comment 6 Robby Engelmann 2023-04-08 08:47:42 UTC
Currently I cannot test the fix for account creation, because kmymoney fails to build in the Unstable:Extra repo against frameworks + plasma git master repos.
My approach to test this would be:
1. create a new kmy-file, base currency = EUR
2. create new account with CHF as currency
3. Try to add a new transaction to this account

Can also test here, when kmymoney will pass the build and the account fix then integrated.
Comment 8 Thomas Baumgart 2023-04-08 09:45:51 UTC
Build problem fixed in https://invent.kde.org/office/kmymoney/-/commit/aff549c165b7a5f0db5b94b2a7188d6fe34db528
Comment 9 Robby Engelmann 2023-04-08 20:59:03 UTC
Created attachment 157964 [details]
example case
Comment 10 Robby Engelmann 2023-04-08 21:01:05 UTC
Using the example case...

1. try to add an transaction to account TEST (EUR) --> works
2. try to add an transaction to account TEST2 (CHF) --> does not work, nothing added

hope you can replicate the issue here
Comment 11 Robby Engelmann 2023-04-17 12:39:12 UTC
Can you replicate using the test case kmy-file?