account set with HRK currency behaves as EUR
Gour
gour at atmarama.net
Wed Oct 14 07:42:32 EDT 2015
Hello,
I've problem that two accounts in my tree are setup to use HRK
(Croatian) currency, but in certain (Equity - initial balance)
transactions they behave as set for EUR and therfore the amount of
Equity is multiplied by factor of 7.6.
Here is the source file:
<act:name>Barhi</act:name>
<act:id type="guid">c30c3b83e8e8317894e659114f3f7670</act:id>
<act:type>LIABILITY</act:type>
<act:commodity>
<cmdty:space>ISO4217</cmdty:space>
<cmdty:id>HRK</cmdty:id>
</act:commodity>
<act:commodity-scu>100</act:commodity-scu>
<act:description>Barhi</act:description>
and here is the example of transaction:
<gnc:transaction version="2.0.0">
<trn:id type="guid">9c948a1dcfcdc641d29efddcd37a2bb7</trn:id>
<trn:currency>
<cmdty:space>ISO4217</cmdty:space>
<cmdty:id>EUR</cmdty:id>
</trn:currency>
<trn:date-posted>
<ts:date>2012-01-01 00:00:00 +0100</ts:date>
</trn:date-posted>
<trn:date-entered>
<ts:date>2012-03-02 11:39:24 +0100</ts:date>
</trn:date-entered>
<trn:description>dug (4000€)</trn:description>
<trn:slots>
<slot>
<slot:key>date-posted</slot:key>
<slot:value type="gdate">
<gdate>2012-01-01</gdate>
</slot:value>
</slot>
</trn:slots>
<trn:splits>
<trn:split>
<split:id type="guid">ccedf76bc8f23e6a90d3f128e4226181</split:id>
<split:reconciled-state>n</split:reconciled-state>
<split:value>3000000/100</split:value>
<split:quantity>22800000/100</split:quantity>
<split:account type="guid">e5704d43041308a445cc1f51727ef2c9</split:account>
</trn:split>
<trn:split>
<split:id type="guid">036262ec4c0b544955da063b316dba6b</split:id>
<split:reconciled-state>n</split:reconciled-state>
<split:value>-3000000/100</split:value>
<split:quantity>-3000000/100</split:quantity>
<split:account type="guid">c30c3b83e8e8317894e659114f3f7670</split:account>
</trn:split>
</trn:splits>
</gnc:transaction>
The above transaction should increase Liability for 'Barhi' for 30000
HRK, but Equity was decreased by the amount of 30000 * 7.6 = 228000 HRK
since, somehow, 'Barhi' account shows <cmdty:id>EUR</cmdty:id>.
Any hint how to resolve it?
Sincerely,
Gour
--
What is night for all beings is the time of awakening
for the self-controlled; and the time of awakening for
all beings is night for the introspective sage.
More information about the gnucash-user
mailing list