*** empty log message ***

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2191 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2000-04-16 20:53:07 +00:00
parent 50646f04a9
commit b828099629
5 changed files with 31 additions and 11 deletions

View File

@ -1,3 +1,11 @@
2000-04-16 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/scm/prefs.scm: add an assets-expense choice to which kinds of
accounts are sign-reversed.
* src/gnome/top-level.c (gnc_configure_reverse_balance): handle the
asset-expense choice.
2000-04-15 Dave Peticolas <peticola@cs.ucdavis.edu>
* src/register/gnome/gnucash-style.c (gnucash_style_layout_init):

View File

@ -14,9 +14,12 @@
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License*
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA *
* 02111-1307, USA *
* along with this program; if not, contact: *
* *
* Free Software Foundation Voice: +1-617-542-5942 *
* 59 Temple Place - Suite 330 Fax: +1-617-542-2652 *
* Boston, MA 02111-1307, USA gnu@gnu.org *
* *
\********************************************************************/
#include "top-level.h"

View File

@ -1,7 +1,7 @@
/********************************************************************\
* dialog-utils.h -- utility functions for creating dialogs *
* for GnuCash *
* Copyright (C) 1999 Linas Vepstas *
* Copyright (C) 1999-2000 Linas Vepstas *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as *
@ -14,9 +14,12 @@
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License*
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA *
* 02111-1307, USA *
* along with this program; if not, contact: *
* *
* Free Software Foundation Voice: +1-617-542-5942 *
* 59 Temple Place - Suite 330 Fax: +1-617-542-2652 *
* Boston, MA 02111-1307, USA gnu@gnu.org *
* *
\********************************************************************/
#ifndef __DIALOG_UTILS_H__
@ -57,7 +60,7 @@ struct _AccountFieldStrings
};
enum
typedef enum
{
SOURCE_NONE = 0,
SOURCE_YAHOO,
@ -68,10 +71,10 @@ enum
SOURCE_ASX,
SOURCE_TIAA_CREF,
NUM_SOURCES
};
} PriceSourceCode;
enum
typedef enum
{
ACCOUNT_TYPE = 0,
ACCOUNT_NAME,
@ -83,7 +86,7 @@ enum
ACCOUNT_BALANCE, /* with sign reversal */
ACCOUNT_TOTAL, /* balance + children's balance with sign reversal */
NUM_ACCOUNT_FIELDS
};
} AccountFieldCode;
/* option button callback function */

View File

@ -589,6 +589,11 @@ gnc_configure_reverse_balance(void)
reverse_type[INCOME] = GNC_T;
reverse_type[CREDIT] = GNC_T;
}
else if (safe_strcmp(choice, "asset-expense") == 0)
{
reverse_type[ASSET] = GNC_T;
reverse_type[EXPENSE] = GNC_T;
}
else if (safe_strcmp(choice, "none") == 0)
{
}

View File

@ -317,6 +317,7 @@ the account instead of opening a register." #f))
'default
(list #(default "Income & Expense" "Reverse Income and Expense Accounts")
#(credit "Credit Accounts" "Reverse Credit Card, Liability, Equity, and Income Accounts")
#(asset-expense "Asset & Expense" "Reverse Asset and Expense Accounts")
#(none "None" "Don't reverse any accounts"))))