[GNC-dev] Fraction in splits.value_denom is only 100 although the value in the qif file has more then decimal places 2

Alexander Damm <[email protected]>
Newsgroups gmane.comp.gnome.apps.gnucash.devel
Message-ID <CAOxY-Gcj+LUmENXPRLe0eUooVYxo+2jyhKRb4hcsXQ_P5G1nNw@mail.gmail.com>
Hello,

I recognized, that although my qif imports has 6 decimal places, only 2
decimal places seem to be imported and rounded up.

Example 1:
QIF File:

!Type:Invst
D05-01-2023 00:00:00
NBuyX
YAMGN
T1506.114762
I251.019127
Q6
MBuy: AMGEN INC Symbol:AMGN ISIN:US0311621009
L[Bank]
$-1506.114762
^

Database:
name | value_num | value_denom
AMGN| 150611 | 100


Example 2:
!Type:Invst
D05-01-2023 00:00:00
NBuyX
YKHC
T1414.6985574
I39.29718215
Q36
MKauf: KRAFT HEINZ CO/THE Symbol:KHC ISIN:US5007541064
L[Bank]
$-1414.6985574
^

Database:
name | value_num | value_denom
KHC| 141470 | 100



This leads to incorrect amounts.Is this correct and/or wanted?

Source:
https://github.com/hjacobs/gnucash-qif-import



-- 
Alexander Damm (ehemals Ritzer)
Drosselweg 4
61440 Oberursel
Tel.: 016092173081
<https://hangouts.google.com/?action=chat&pn=+4916092173081&hl=en&authuser=0>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.