Bug 286640 - Chilean Peso shouldn't have decimals
Summary: Chilean Peso shouldn't have decimals
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (other bugs)
Version First Reported In: 4.6.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-15 00:30 UTC by Martin Zecher
Modified: 2026-02-19 07:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.2.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Zecher 2011-11-15 00:30:53 UTC
Version:           4.6.1 (using KDE 4.7.3) 
OS:                Linux

That's all, just like yen we don't use cents in Chile. Thus, having all operations with decimals may lead to errors especially when converting to other currencies (it doesn't round to the appropriate digit).

Reproducible: Always

Steps to Reproduce:
Not applicable


Expected Results:  
CLP without decimals.

OS: Linux (x86_64) release 3.1.1-1-ck
Compiler: gcc
Comment 1 Cristian Oneț 2011-12-14 18:24:42 UTC
According to http://en.wikipedia.org/wiki/Chilean_peso#Second_peso.2C_1975.E2.80.93present and the report there are no more 'centavos' (peso subdivisions) in circulation. Thomas you've said that you'll fix this, I can take care of it if it's OK with you.
It's just a matter of setting:
PPU=1
SCF=1
SAF=1
for the chilean peso (but you know that :) ).
Comment 2 Alvaro Soliverez 2011-12-14 18:37:16 UTC
The big solution here is to make KMyMoney use KCurrency instead of own classes. That would certainly help avoid issues like these.
Comment 3 Cristian Oneț 2011-12-14 18:39:24 UTC
You mean this whish bug 255492?
Comment 4 Alvaro Soliverez 2011-12-14 18:42:43 UTC
Yes, that's the definitive answer to all these cents-here, new-currency-there, old-currency-over-there issue.
Comment 5 Cristian Oneț 2011-12-14 18:53:56 UTC
Since that feature was on the waiting list because it needed KDE 4.4 and we already have that as a requirement I'll mark this as a duplicate of the port to the KDE currency system.

*** This bug has been marked as a duplicate of bug 255492 ***
Comment 6 Thomas Baumgart 2026-02-19 07:13:23 UTC
Git commit adac8edfe13cb681b85b8703299ef6b6f3befcf8 by Thomas Baumgart.
Committed on 19/02/2026 at 07:13.
Pushed by tbaumgart into branch '5.2'.

The chilean peso has no fractional part
FIXED-IN: 5.2.2
(cherry picked from commit df5133800fb7be7886adf6008f07e9c8f54dfd55)

M  +1    -1    kmymoney/mymoney/mymoneyfile.cpp

https://invent.kde.org/office/kmymoney/-/commit/adac8edfe13cb681b85b8703299ef6b6f3befcf8
Comment 7 Thomas Baumgart 2026-02-19 07:13:49 UTC
Git commit df5133800fb7be7886adf6008f07e9c8f54dfd55 by Thomas Baumgart.
Committed on 19/02/2026 at 07:12.
Pushed by tbaumgart into branch 'master'.

The chilean peso has no fractional part
FIXED-IN: 5.2.2

M  +1    -1    kmymoney/mymoney/mymoneyfile.cpp

https://invent.kde.org/office/kmymoney/-/commit/df5133800fb7be7886adf6008f07e9c8f54dfd55