Bug 367544

Summary: Please add support for CLF currency
Product: [Applications] kmymoney Reporter: Martin Zecher <martinzecher>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.8.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.0

Description Martin Zecher 2016-08-19 03:15:40 UTC
In Chile the "official" currency is CLP (Chilean Peso), but since late '60 most banking loans are recorded in CLF (Unidad de Fometo), which is basically CLP adjusted by inflation in a diary basis. I would really appreciate adding support for this currency since registering those accounts in CLP requieres a manual daily correction to be accurate.

More info: https://en.wikipedia.org/wiki/Unidad_de_Fomento

Thanks in advance.

Reproducible: Always
Comment 1 Martin Zecher 2016-08-19 03:34:15 UTC
Manually adding CLF works more or less. It is even recognized by yahoo financial when updating prices, but fails. Kmymoney tries to express CLF price in a CLP conversion coefficient, but since it's a very small number it cannot process it (1 : 26187, watch here: http://finance.yahoo.com/chart/CLPCLF=X?ltr=1#eyJtdWx0aUNvbG9yTGluZSI6ZmFsc2UsImJvbGxpbmdlclVwcGVyQ29sb3IiOiIjZTIwMDgxIiwiYm9sbGluZ2VyTG93ZXJDb2xvciI6IiM5NTUyZmYiLCJtZmlMaW5lQ29sb3IiOiIjNDVlM2ZmIiwibWFjZERpdmVyZ2VuY2VDb2xvciI6IiNmZjdiMTIiLCJtYWNkTWFjZENvbG9yIjoiIzc4N2Q4MiIsIm1hY2RTaWduYWxDb2xvciI6IiMwMDAwMDAiLCJyc2lMaW5lQ29sb3IiOiIjZmZiNzAwIiwic3RvY2hLTGluZUNvbG9yIjoiI2ZmYjcwMCIsInN0b2NoRExpbmVDb2xvciI6IiM0NWUzZmYiLCJyYW5nZSI6IjF5In0%3D)
Comment 2 Martin Zecher 2016-08-19 03:37:15 UTC
Sorry for the long link, here is the conversion for CLF in CLP:
http://finance.yahoo.com/chart/CLFCLP=X

And here CLP in CLF:
http://finance.yahoo.com/chart/CLPCLF=X

The last one is what kmymoney picks since CLP is my default currency
Comment 3 NSLW 2017-04-01 06:19:17 UTC
Git commit 98095cbb39897af89999d6f0a1372a06850df0f9 by Łukasz Wojniłowicz.
Committed on 01/04/2017 at 06:17.
Pushed by wojnilowicz into branch 'master'.

Add support for CLF currency

Webprice quotes won't work for CLPCLF (price = 0.0000), but works for
CLFCLP, and manual entering works for both.
FIXED-IN:5.0

M  +1    -0    kmymoney/views/kmymoneyview.cpp

https://commits.kde.org/kmymoney/98095cbb39897af89999d6f0a1372a06850df0f9