Patch to allow reg run balances for single account registers (partial implementation)

Tim M tim at filmchicago.org
Sat Sep 26 12:30:34 EDT 2009


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reg_run_single_acct_patch.diff
Type: text/x-patch
Size: 3829 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20090926/077f1ef9/attachment.bin>


More information about the gnucash-devel mailing list