2001-07-05 Dave Peticolas <dave@krondo.com>

* doc/sgml/C/xacc-common-report-options.sgml: fix my fix

	* doc/sgml/C/xacc-price-sources.sgml: fix warnings

	* src/guile/gnc.gwp: wrap new func

	* src/gnome/druid-stock-split.c: use new func

	* src/gnome/window-register.c: use new func

	* src/gnome/window-reconcile.c: use new func

	* src/gnome/reconcile-list.c: use new func

	* src/gnc-ui-util.c (gnc_account_print_info): new func. this
	replaces 'quantity' and 'value' print info for the currency-
	in-transaction switch. Delete the 'quantity' version.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4900 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas
2001-07-05 08:32:40 +00:00
parent e892559620
commit 57d8eee0da
9 changed files with 46 additions and 45 deletions
+22 -1
View File
@@ -1,3 +1,23 @@
2001-07-05 Dave Peticolas <dave@krondo.com>
* doc/sgml/C/xacc-common-report-options.sgml: fix my fix
* doc/sgml/C/xacc-price-sources.sgml: fix warnings
* src/guile/gnc.gwp: wrap new func
* src/gnome/druid-stock-split.c: use new func
* src/gnome/window-register.c: use new func
* src/gnome/window-reconcile.c: use new func
* src/gnome/reconcile-list.c: use new func
* src/gnc-ui-util.c (gnc_account_print_info): new func. this
replaces 'quantity' and 'value' print info for the currency-
in-transaction switch. Delete the 'quantity' version.
2001-07-04 Dave Peticolas <dave@krondo.com>
* AUTHORS: credits
@@ -44,7 +64,8 @@
2001-07-03 Dave Peticolas <dave@krondo.com>
* src/scm/report/register.scm: add exported functions and needed modules
* src/scm/report/register.scm: add exported functions and needed
modules
* AUTHORS: credits
+2 -2
View File
@@ -5,7 +5,7 @@
<sect1>
<title></title>
<para>Many reports share similar sorts of options. Some common ones
include:
include:</para>
<itemizedlist>
<listitem>
@@ -106,6 +106,6 @@ prices at current values, or prices at the time of the report date.</para>
will be placed in a slice marked "other".
</para>
</listitem></itemizedlist>
</para>
</sect1>
</article>
+3 -1
View File
@@ -15,7 +15,7 @@ any time by selecting the account in an account window, and chosing
section called "Price Quote Source".
</PARA>
<para>To enable automatic price updates, do the following:
<para>To enable automatic price updates, do the following:</para>
<ITEMIZEDLIST>
<LISTITEM>
@@ -84,9 +84,11 @@ TIMEZONE SETTING???)
</para></listitem>
</ITEMIZEDLIST>
<note>
<para>Instructions for updating prices are found in the documentation
on the <link linkend="xacc-price-editor">price editor</link>.
</para>
</note>
<TABLE>
+9 -10
View File
@@ -887,14 +887,6 @@ gnc_account_print_info_helper(Account *account, gboolean use_symbol,
return info;
}
GNCPrintAmountInfo
gnc_account_quantity_print_info (Account *account, gboolean use_symbol)
{
return gnc_account_print_info_helper(account, use_symbol,
xaccAccountGetCommodity,
xaccAccountGetCommoditySCU);
}
GNCPrintAmountInfo
gnc_account_value_print_info (Account *account, gboolean use_symbol)
{
@@ -903,6 +895,14 @@ gnc_account_value_print_info (Account *account, gboolean use_symbol)
xaccAccountGetCurrencySCU);
}
GNCPrintAmountInfo
gnc_account_print_info (Account *account, gboolean use_symbol)
{
return gnc_account_print_info_helper(account, use_symbol,
xaccAccountGetCommodity,
xaccAccountGetCommoditySCU);
}
GNCPrintAmountInfo
gnc_split_quantity_print_info (Split *split, gboolean use_symbol)
{
@@ -913,8 +913,7 @@ gnc_split_quantity_print_info (Split *split, gboolean use_symbol)
return info;
}
return gnc_account_quantity_print_info (xaccSplitGetAccount (split),
use_symbol);
return gnc_account_print_info (xaccSplitGetAccount (split), use_symbol);
}
GNCPrintAmountInfo
+2 -2
View File
@@ -170,10 +170,10 @@ GNCPrintAmountInfo gnc_default_print_info (gboolean use_symbol);
GNCPrintAmountInfo gnc_commodity_print_info (const gnc_commodity *commodity,
gboolean use_symbol);
GNCPrintAmountInfo gnc_account_quantity_print_info (Account *account,
gboolean use_symbol);
GNCPrintAmountInfo gnc_account_value_print_info (Account *account,
gboolean use_symbol);
GNCPrintAmountInfo gnc_account_print_info (Account *account,
gboolean use_symbol);
GNCPrintAmountInfo gnc_split_quantity_print_info (Split *split,
gboolean use_symbol);
+2 -2
View File
@@ -115,7 +115,7 @@ fill_account_list (StockSplitInfo *info, Account *account)
security = xaccAccountGetSecurity (account);
print_info = gnc_account_quantity_print_info (account, FALSE);
print_info = gnc_account_print_info (account, FALSE);
strings[0] = xaccAccountGetFullName (account,
gnc_get_account_separator ());
@@ -176,7 +176,7 @@ refresh_details_page (StockSplitInfo *info)
g_return_if_fail (account != NULL);
print_info = gnc_account_quantity_print_info (account, FALSE);
print_info = gnc_account_print_info (account, FALSE);
gnc_amount_edit_set_print_info (GNC_AMOUNT_EDIT (info->distribution_edit),
print_info);
+1 -6
View File
@@ -667,12 +667,7 @@ gnc_reconcile_list_fill(GNCReconcileList *list)
account_type = xaccAccountGetType (list->account);
strings[5] = NULL;
if ((account_type == STOCK) ||
(account_type == MUTUAL) ||
(account_type == CURRENCY))
print_info = gnc_account_quantity_print_info (list->account, FALSE);
else
print_info = gnc_account_value_print_info (list->account, FALSE);
print_info = gnc_account_print_info (list->account, FALSE);
for (splits = xaccQueryGetSplits (list->query); splits; splits=splits->next)
{
+4 -20
View File
@@ -236,16 +236,8 @@ recnRecalculateBalance (RecnWindow *recnData)
reverse_balance = gnc_reverse_balance(account);
/* update the starting balance */
if (recnData->use_shares)
{
starting = xaccAccountGetShareReconciledBalance(account);
print_info = gnc_account_quantity_print_info (account, TRUE);
}
else
{
starting = xaccAccountGetReconciledBalance(account);
print_info = gnc_account_value_print_info (account, TRUE);
}
starting = xaccAccountGetShareReconciledBalance(account);
print_info = gnc_account_print_info (account, TRUE);
if (reverse_balance)
starting = gnc_numeric_neg (starting);
@@ -593,16 +585,8 @@ startRecnWindow(GtkWidget *parent, Account *account,
auto_interest_xfer_option =
gnc_recn_interest_xfer_get_auto_interest_xfer_allowed( account );
if( data.use_shares )
{
ending = xaccAccountGetShareReconciledBalance(account);
print_info = gnc_account_quantity_print_info (account, TRUE);
}
else
{
ending = xaccAccountGetReconciledBalance(account);
print_info = gnc_account_value_print_info (account, TRUE);
}
ending = xaccAccountGetShareReconciledBalance(account);
print_info = gnc_account_print_info (account, TRUE);
if (gnc_reverse_balance(account))
{
+1 -1
View File
@@ -2368,7 +2368,7 @@ gnc_register_redraw_all_cb (GnucashRegister *g_reg, gpointer data)
if (regData->shares_label != NULL)
{
print_info = gnc_account_quantity_print_info (leader, TRUE);
print_info = gnc_account_print_info (leader, TRUE);
amount = xaccAccountGetShareBalance (leader);
if (reverse)