r17708 - gnucash/trunk/src - Add a new account selection filter, disallowing bill post to wrong commodity account

Christian Stimming cstim at cvs.gnucash.org
Thu Nov 20 12:00:39 EST 2008


Author: cstim
Date: 2008-11-20 12:00:37 -0500 (Thu, 20 Nov 2008)
New Revision: 17708
Trac: http://svn.gnucash.org/trac/changeset/17708

Modified:
   gnucash/trunk/src/business/business-gnome/business-gnome-utils.c
   gnucash/trunk/src/business/business-gnome/business-gnome-utils.h
   gnucash/trunk/src/business/business-gnome/dialog-date-close.c
   gnucash/trunk/src/business/business-gnome/dialog-date-close.h
   gnucash/trunk/src/business/business-gnome/dialog-employee.c
   gnucash/trunk/src/business/business-gnome/dialog-invoice.c
   gnucash/trunk/src/engine/gnc-commodity.c
   gnucash/trunk/src/engine/gnc-commodity.h
   gnucash/trunk/src/gnome-utils/dialog-book-close.c
   gnucash/trunk/src/gnome-utils/dialog-options.c
   gnucash/trunk/src/gnome-utils/gnc-account-sel.c
   gnucash/trunk/src/gnome-utils/gnc-account-sel.h
   gnucash/trunk/src/gnome/druid-loan.c
   gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c
Log:
Add a new account selection filter, disallowing bill post to wrong commodity account

This patch adds a new account selection filter allowing valid commodity
to be restricted, and makes use of it for bill posting.  This filter is
allowed to be NULL (just as with the 'account type' filter) and when
NULL, isn't used.  The patch also fixes a bug where gnc commodity copy
wasn't copying mnemonic, thus erroneously making a copy not equal to the
original when comparison happens.  The behaviour is that the user isn't
able to select a post account in the wrong currency.  If there is no
possible account (aka, EVERYTHING gets filtered out) they get a blank
combo box.  This is consistent with what the account type filter does
when there are no valid account-type accounts.

Patch by Jamie Campbell and Mark Jenkins.



More information about the gnucash-patches mailing list