<br><br><div class="gmail_quote">2012/4/19 Thomas Baumgart <span dir="ltr"><<a href="mailto:thb@net-bembel.de">thb@net-bembel.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wednesday 18 April 2012 19:02:03 Marek Laane wrote:<br>
> >   2: There was a bunch of strings "shares set to value in split of<br>
> ><br>
> >>> transaction" or "value set to shares in split of transaction" and so<br>
> >>> on. What does that exactly mean? What is set to what? Share isn't<br>
> >>> here like stock but rather like a part, is it?<br>
> >>><br>
> >>><br>
> >>><br>
> >>> It looks like these are all within the consistency check.  There are<br>
> >>> comments in the code referring to currency, so this may refer to<br>
> >>> cases<br>
> >>> where there is a currency conversion, and the two values should be<br>
> >>> the same if they are in the same currency.  I know that doesn't<br>
> >>> really help with the definition - but I think the "value" is the<br>
> >>> value of that split of the transaction, and "shares" is either<br>
> >>> really a number of shares of an investment, or else just the value<br>
> >>> on the other side of the currency conversion.  I would have to<br>
> >>> understand the code better to be sure.>><br>
> >> So you think "shares" are real shares as stock? Not shares as part of<br>
> >> something? It was my first reaction, too, but the syntax made me<br>
> >> doubt...><br>
<br>
> > I am not completely certain, but it is part of an error message during<br>
> > the consistency check, so it would still lead the user to look to the<br>
> > correct transaction for the problem.<br>
><br>
> OK, let's wait to step forward somebody with deep knowledge :-)<br>
<br>
</div>Sounds like you're calling me ;)<br>
<br>
Since we support multi-currency we have two numbers for each split in a<br>
transaction: the number of 'shares' and it's value. They are related such:<br>
<br>
   value = price * shares<br>
<br>
The number of shares is always kept in the currency of the account this split<br>
references whereas the value is always kept in the currency assigned to the<br>
transaction. So in case the currency for account and transaction are<br>
identical, 'value' and 'share' are identical since the price is 1.<br>
<br>
The messages you translate are caused by a consistency check. The comment<br>
says:<br>
<br>
      // make sure, that shares and value have the same number if they<br>
      // represent the same currency.<br>
<br>
In case the sum of all values of all splits in a transaction is zero (the<br>
transaction is balanced) the amount of shares is adjusted, if it is not, the<br>
value is adjusted.<br>
<br>
A second instance of those messages pop up where they deal with scheduled<br>
transactions.<br>
<br>
They should not pop up nowadays anymore since the application does not create<br>
'invalid' splits anymore. They could still arise when you import from other<br>
sources though.<br>
<br>
I hope that gives enough information for you to continue your very welcome and<br>
appreciated work.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br></font></span></blockquote><div>Well, great thanks for thorough explanation! That was I suspected but was not sure at all I do understand correctly. I just want to ask once more: so "shares" here are shares as stock you can trade, not shares as part of something? Because in Estonian there isn't possible to use same word for both of them </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
<br>
Regards<br>
<br>
Thomas Baumgart<br></font></span></blockquote><div> </div><div>Marek Laane,</div><div>Estonian translator </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888">
<br>
GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA<br>
-------------------------------------------------------------<br>
On Windoze it helps to reboot, on UNIX it helps to be root!<br>
-------------------------------------------------------------<br>
</font></span></blockquote></div><br>