* src/business/business-ledger/gncEntryLedgerLoad.c -- limit the

accounts in the pull-down list to accounts that are NOT
	  placeholder, A/R, A/P, Cash, Bank, or Equity accounts.  This
	  is also to encourage the user to "choose wisely" :)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7874 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2003-01-22 21:22:24 +00:00
parent d16e0d846e
commit 2a6bcf2897
2 changed files with 14 additions and 2 deletions

View File

@ -3,13 +3,18 @@
* src/business/business-reports/business-reports.scm -- need to
load business-gnome module, which loads gnome-utils module, for
a couple HTML definitions (which should eventually be moved
elsewhere so that the reports themselves don't depend on
elsewhere) so that the reports themselves don't depend on
gnome... This fixes Wilddev's report problem.
* src/business/business-ledger/gncEntryLedgerModel.c -- relabel
the "Account" column to "Income Account" or "Expense Account"
to better encourage the user to "choose wisely".
* src/business/business-ledger/gncEntryLedgerLoad.c -- limit the
accounts in the pull-down list to accounts that are NOT
placeholder, A/R, A/P, Cash, Bank, or Equity accounts. This
is also to encourage the user to "choose wisely" :)
2003-01-21 David Hampton <hampton@employees.org>
* src/quotes/finance-quote-helper.in: Fix problem getting quotes

View File

@ -96,7 +96,14 @@ static void load_xfer_cell (ComboCell * cell, AccountGroup * grp)
name = xaccAccountGetFullName (account, gnc_get_account_separator ());
if (name != NULL) {
GNCAccountType type = xaccAccountGetType (account);
/* Dont add placeholder, A/R, A/P, Bank, Cash, or Equity accounts */
if (! (xaccAccountGetPlaceholder (account) ||
type == PAYABLE || type == RECEIVABLE ||
type == CASH || type == BANK || type == EQUITY) )
gnc_combo_cell_add_menu_item (cell, name);
g_free(name);
}
}