Bitcoin account

Thomas Baumgart thb at net-bembel.de
Sat Jan 9 17:45:13 GMT 2021


Philippe,

On Samstag, 9. Januar 2021 18:21:46 CET Philippe Debrabant wrote:

> Hi, thanks for your fast answer :-)
> 
> See my joined screen capture : currently, the currency's Price Precision 
> of BTC is already "9"... I think.
> 
> I tried to build the 5.1.1 version from sources but the make halts 
> immediately on :
> 
> *******************************************
> Scanning dependencies of target po-uk-docs-kmymoney-kmymoney-1
> [  0%] Generating po/uk/docs/kmymoney/kmymoney.1
> Note: Writing kmymoney.1
> [  0%] Built target po-uk-docs-kmymoney-kmymoney-1
> Scanning dependencies of target po-uk-docs-kmymoney-index-cache-bz2
> [  0%] Generating po/uk/docs/kmymoney/index.cache.bz2
> [  0%] Built target po-uk-docs-kmymoney-index-cache-bz2
> Scanning dependencies of target po-ca-docs-kmymoney-index-cache-bz2
> [  0%] Generating po/ca/docs/kmymoney/index.cache.bz2
> details-formats.docbook:105: parser error : Entity 'ASCII' not defined
>  >armadura &ASCII;</emphasis
>                   ^
> details-formats.docbook:174: parser error : chunk is not well balanced

Ah, that is just a documentation problem. You can simply replace that '&ASCII;' with 'ASCII'
and write the file back to disk. This may happen in other languages as well. Just
repeat that replacement and the build should continue.

[...]

> I don't know if I can correct this.

See above.

> So, if you can tell me how I can tweak/patch my data, it can help. I 
> have the 5.0.7 version.

Since you're on Linux, you can try to run the 5.1.1 AppImage version which
you can download from https://kmymoney.org/appimage. This page also
contains instructions on how to make that file executable. No need to uninstall
the version you have on your disk. Using this, you can make the necessary
modifications to your file and either use your 5.0.7 or stick with the AppImage,
whatever you prefer. Attached is a screenshot of the enhanced currency dialog.

In case you want to tweak the data file, here is how it works:

Given your data file is named xxx.kmy here are some instructions on how to tweak it:

% cp xxx.kmy xxx.kmy.ori

Just in case :) Now decompress it:

% zcat xxx.kmy > xxx.xml

Open the resulting xxx.xml in any text editor (vi/emacs/kate).

Search for the following line:

  <CURRENCY type="3" symbol="BTC" id="BTC" name="Bitcoin" scf="100" rounding-method="7" saf="100" pp="9"/>

The order of the XML attributes may be different, but 'id="BTC"' is what you are looking for as CURRENCY.

Changing the value of saf and scf from 100 to e.g. 10000 gives you e.g. 0.00001 as the smallest amount.
The more zeroes you add, the smaller the values get. Change both, saf and scf to the same value.

Save the file.

% kmymoney xxx.xml

will open that file and you can check what you did. Once you are confident, that you have what you need
simply replace the originating file with the new one

% mv xxx.xml xxx.kmy

No need to compress, KMyMoney handles that for you the next time you save that file. In case anything
goes wrong, you still have xxx.kmy.ori on your disk :)

Hope that helps.




-- 

Regards

Thomas Baumgart

https://www.signal.org/       Signal, the better WhatsApp
-------------------------------------------------------------
'Never underestimate the determination of a kid who is
time-rich and cash-poor.' -- Cory Doctorow: Little brother
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: currency-edit-dlg.png
Type: image/png
Size: 22671 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kmymoney/attachments/20210109/75ded87b/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 868 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney/attachments/20210109/75ded87b/attachment-0001.sig>


More information about the KMyMoney mailing list