Bug 471461

Summary: TEMPLATE: Accounts recreated from template with wrong currency
Product: [Applications] kmymoney Reporter: alecn2002
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version: 5.1.3   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.