Bug 471461 - TEMPLATE: Accounts recreated from template with wrong currency
Summary: TEMPLATE: Accounts recreated from template with wrong currency
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.3
Platform: Other All
: NOR wishlist
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-26 09:19 UTC by alecn2002
Modified: 2023-06-26 15:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alecn2002 2023-06-26 09:19:41 UTC
# SUMMARY
When I save current .kmy as a template and then create new .kmy using that template, all accounts in foreign currencies are recreated with default currency instead of the one defined in template

# STEPS TO REPRODUCE
1. Create accounts of different types with currency other than default (I've created cash, investment and checking accounts in USD and EUR)
2. Export your current .kmy as a template (.kmt)
3. Create new .kmy using template created in step 2
4. You will see that all foreign currency accounts are recreated with default currency instead of the one defined in original file.

# OBSERVED RESULT
All foreign currency accounts are recreated with default currency instead of the one defined in original file.

# EXPECTED RESULT
All foreign currency accounts are recreated with currencies defined in original file (the one used to export to template)

# SOFTWARE/OS VERSIONS
KMyMoney: 5.1.3-4e975a6ff
Windows: Windows 10 Version 2009 (x86_64)
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5

# ADDITIONAL INFORMATION
Comment 1 Thomas Baumgart 2023-06-26 14:41:27 UTC
Templates currently don't support multiple currencies (only the base currency) so I turn this into a wish list item for all platforms.
Comment 2 alecn2002 2023-06-26 15:06:32 UTC
(In reply to Thomas Baumgart from comment #1)
> Templates currently don't support multiple currencies (only the base
> currency) so I turn this into a wish list item for all platforms.

User should be informed that all foreign currency accounts are converted to default currency upon template creation. 
Absence of this notification IS a bug.