mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
Bug #339027: Reconcile window displays the date, too
This patch adds an additional label statement date to the box below the Credits section. Patch by C. Ernst BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17820 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
0368e6fdda
commit
e23c2ebc25
@ -74,6 +74,7 @@ struct _RecnWindow
|
||||
|
||||
GtkWidget *starting; /* The starting balance */
|
||||
GtkWidget *ending; /* The ending balance */
|
||||
GtkWidget *recn_date; /* The statement date */
|
||||
GtkWidget *reconciled; /* The reconciled balance */
|
||||
GtkWidget *difference; /* Text field, amount left to reconcile */
|
||||
|
||||
@ -249,6 +250,10 @@ recnRecalculateBalance (RecnWindow *recnData)
|
||||
if (reverse_balance)
|
||||
starting = gnc_numeric_neg (starting);
|
||||
|
||||
/* update the statement date */
|
||||
amount = qof_print_date(recnData->statement_date);
|
||||
gtk_label_set_text(GTK_LABEL(recnData->recn_date), amount);
|
||||
|
||||
/* update the ending balance */
|
||||
ending = recnData->new_ending;
|
||||
if (reverse_balance)
|
||||
@ -1712,6 +1717,16 @@ recnWindowWithBalance (GtkWidget *parent, Account *account,
|
||||
value_vbox = gtk_vbox_new(FALSE, 3);
|
||||
gtk_box_pack_start(GTK_BOX(totals_hbox), value_vbox, TRUE, TRUE, 0);
|
||||
|
||||
/* statement date title/value */
|
||||
title = gtk_label_new(_("Statement Date:"));
|
||||
gtk_misc_set_alignment(GTK_MISC(title), 1.0, 0.5);
|
||||
gtk_box_pack_start(GTK_BOX(title_vbox), title, FALSE, FALSE, 0);
|
||||
|
||||
value = gtk_label_new("");
|
||||
recnData->recn_date = value;
|
||||
gtk_misc_set_alignment(GTK_MISC(value), 1.0, 0.5);
|
||||
gtk_box_pack_start(GTK_BOX(value_vbox), value, FALSE, FALSE, 0);
|
||||
|
||||
/* starting balance title/value */
|
||||
title = gtk_label_new(_("Starting Balance:"));
|
||||
gtk_misc_set_alignment(GTK_MISC(title), 1.0, 0.5);
|
||||
|
Loading…
Reference in New Issue
Block a user