Balance sheet report for a sub-group of accounts

Christian Stimming stimming@tuhh.de
Wed, 13 Jun 2001 11:15:46 +0200


-----BEGIN PGP SIGNED MESSAGE-----

Oops, that bug goes on me. The problem is that I didn't manage to get the 
sub-balance calculation and the account showing/not-showing to follow the 
same rules on which accounts to include and which not. The problem lies in 
html-utilities.scm at e.g. line 511, where the function for subbalance 
calculation simpy ignores any of the account selection options. At this 
point we would need to introduce a new function that does the subbalance 
calculation with regards to the account selection options.

Note, however, that the semantics of the account selection in the balance 
sheet and those in the profit and loss report are slightly different. 
(That's what you get if two different developers write different 
reports...) The semantics for the latter are explained in 
html-utilities.scm:309. If somebody fixes the subbalance bug, he might 
want to unify those two semantics in a consistent behaviour as well. 

I can do that, but I'm busy this week, i.e. I can work on that after June 
18th. If somebody else wants to go ahead before that date, please do it.

Christian

On Wednesday 13 June 2001 04:14, Ben Stanley wrote:
> Here is an IRC conversation I had with goonie, grib and conrad on how to
> solve a problem with performing a balance sheet report on a partial set
> of accounts.
>
> I have attached an example book which shows the problem. I have also
> attached the reports file - it's name will have to be changed to
> indicate where you put the test.gnucash file on your system.
>
> There are two sets of reports - one set (Balance Sheet, Profit and Loss)
> which covers the entire set of accounts. The other set of reports
> (Working Accounts Balance Sheet, and Working Accounts Profit and Loss)
> attempts to privide a Balance sheet report for the Bank Account only,
> excluding the Savings account. The Working Accounts Profit and Loss
> report displays a bug - the totals for assets and liabilities don't
> match with the sums displayed.
>
> As far as I'm concerned, for the reports on my Working Accounts sub-set,
> any money moved from savings to Bank account should be regarded as
> income by the report, and any money moved from Bank Account to Savings
> should be regarded as an expense by the report. Thus, the total of the
> Working Accounts Profit and Loss report should be $5,300.00
>
> Bill Gribble thought that he had a way to achive this. Bill, could you
> please modify the accounts to demonstrate and post back?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)

iQCVAwUBOycvQmXAi+BfhivFAQEgNQP/Whm8bVHJo2KLSGJeUWcFa2mW6lp2ZhvR
osltzUaZdGUmuQmNTT1f9TpXbDV5FedJOT6Tk0tsGwkZ76ljBgCb3wq4Z5c0cLEo
X9teYLV8Zxt1XTHyNJRXAv6TBRnl+dFMe2mDQ5mka5dTRvOnnt0IWny/8cVtzjE6
RtCBwsR8xbg=
=t30+
-----END PGP SIGNATURE-----