Using Gnucash 2.2.1 on Linux Ubuntu Gutsy 7.10 or Windows XP SP2, when I create a printable invoice of a invoice that doesn't contain any taxes, Gnucash will always show taxes if I don't check the "Individual taxes" option in report options, and it will not show the taxes if I check the "Individual taxes" option. Gnucash is expected to do exactly the opposite in that case. Here's a screenshot. http://launchpadlibrarian.net/10464157/Capture.png
While I believe this is intended behaviour (the code explicitly mentions an if-branch with the comment below) I do believe this bug can be rephrased as: "the wording of the option "Individual taxes" can be confusing". The option may be changed to a droplist for example stating "Display individual taxes per account" and "Only display total tax"). Code taken from current SVN 2.4.99 [From invoice.scm both simple invoice & printable invoice show the same behavior) (if display-all-taxes (hash-for-each (lambda (acct value) (let ((collector (gnc:make-commodity-collector)) (commodity (xaccAccountGetCommodity acct)) (name (xaccAccountGetName acct))) (collector 'add commodity value) (add-subtotal-row table used-columns collector "grand-total" name))) acct-hash) ; nope, just show the total tax. (add-subtotal-row table used-columns tax-collector "grand-total" (_ "Tax")))
Hmm, this bug has been lingering needlessly. Sorry about that. I'm not too fond of changing the option to a drop down list. Can we just try better wording instead ? I would propose: - Next to the check box: "Use detailed tax summary" - As tooltip: "Display all tax categories separately (one per line) instead of one single tax line." I'm open for improvements to this.
As there has been no more feedback on this bug I have carried this forward and set the option name and tooltip as I proposed. The new texts will be included in gnucash 3.4.