Patch to allow reg run balances for single account registers (partial implementation)
Christian Stimming
stimming at tuhh.de
Mon Sep 28 16:34:21 EDT 2009
Am Samstag, 26. September 2009 18:30 schrieb Tim M:
> The attached patch is an enhancement to the original reg_run_balance patch
> that was implemented.
Applied as well. Thanks a lot!
(Just a small remark: For non-trivial patches, please create the patch/diff
from the top-level directory of the sources, rather than inside the directory
down in the source tree. Otherwise it's not always obvious to those who want
to apply and commit where this particular source file is located. One easy
way of creating the suitable patch is by running "svn diff" in the top-level
directory. Thanks!)
Christian
> 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.
More information about the gnucash-devel
mailing list