r18355 - gnucash/trunk/src/register/ledger-core - Improve original register running balance implementation.

Christian Stimming cstim at code.gnucash.org
Mon Sep 28 16:32:07 EDT 2009


Author: cstim
Date: 2009-09-28 16:32:05 -0400 (Mon, 28 Sep 2009)
New Revision: 18355
Trac: http://svn.gnucash.org/trac/changeset/18355

Modified:
   gnucash/trunk/src/register/ledger-core/split-register-model.c
Log:
Improve original register running balance implementation.

Patch by Tim M:

The attached patch is an enhancement to the original reg_run_balance patch
that was implemented.  This patch has been created off of a recent trunk (in
the last week).  It makes the following changes:

1. Add a gboolean to the argument list of the gnc_split_register_get_rbaln()
function.  If the new boolean value is set to TRUE, then the function will
return the running balance for the parent account and all subaccounts.  If
set to FALSE, the function will only return the running balance of the
parent account and will not include the subaccounts.  The function has been
modified also to accomodate this change.

2. Update existing calls to the function to add the boolean value.

This patch does not actually implement a runtime balance for single account
register view or normal balance column because of potential issues that will
need to be addressed, but it opens up the possibility for easy
implementation of such a change.

Signed-off-by: Christian Stimming <stimming at tuhh.de>



More information about the gnucash-patches mailing list