Patch for guide file "ch_basics.xml"
Geert Janssens
janssens-geert at telenet.be
Sat Oct 30 11:05:25 EDT 2010
On Saturday 16 October 2010, jh wrote:
> Hi Geert,
>
> On Thu, 2010-10-14 at 20:24 +0200, Geert Janssens wrote:
> > I didn't know either how this value is calculated. But I looked it up in
> > the code for you:
>
> thank you! Can you please let me know, where in the code this happens,
> just for me to gain some understanding of the programming.
>
Sorry, I missed this question.
The code that calculates the net assets and profits can be found in
src/gnome-utils/window-main-summarybar.c
At line 126, you will find a function called gnc_ui_accounts_recurse. The body
of this function runs some sums over the account tree. Based on the account
type the amount is added to the net assets total or to the profits total.
Geert
More information about the gnucash-devel
mailing list