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

Jeff Green jmgreen7 at gmail.com
Fri Nov 9 18:35:00 EST 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: owner-report.patch
Type: text/x-patch
Size: 2339 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20071109/b37f5112/attachment.bin 


More information about the gnucash-devel mailing list