[PATCH] Fixed "Balance" row not appearing on owner reports (Vendor, etc...) if no transactions occur after "From" date

Derek Atkins warlord at MIT.EDU
Tue Dec 25 22:28:32 EST 2007

Applied to trunk as r16729.
Note that I had to make a small change because 'txns' might be null



"Jeff Green" <jmgreen7 at gmail.com> writes:

> The "balance" row should show the total for all transactions (if any)
> occurring before the "From" date selected in the report's options (defaults
> to beginning of current year). If all the transactions occurred before the
> "From" date then the "balance" row was not added to the table because the
> check for the "balance" row only occurred if there was a transaction being
> added that was after the "From" date.
> I split the code for the "balance" row off into a separate routine that gets
> called in the same place as the old code AND also gets run after all the
> transactions have been processed for being added to the table. Running it
> after all the transactions are processed ensures that if none of the
> transactions were before the "From" date then the "balance" row is still
> added to the table.
> (Note: While this was a very minor bug, it was a good way to get a better
> grasp on Scheme and the way reports are generated)
> Jeff
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel

       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available

More information about the gnucash-devel mailing list