gnucash maint: Correct the number field displayed in the reconcile window to correspond with the source specified in File->Options.
J. Alex Aycinena
alex.aycinena at code.gnucash.org
Mon Feb 23 21:25:35 EST 2015
Updated via https://github.com/Gnucash/gnucash/commit/80705551 (commit)
from https://github.com/Gnucash/gnucash/commit/e9972be9 (commit)
commit 80705551aec53e8c91db48b46875873f934eddaa
Author: Alex Aycinena <alex.aycinena at gmail.com>
Date: Mon Feb 23 18:04:50 2015 -0800
Correct the number field displayed in the reconcile window to correspond with the source specified in File->Options.
diff --git a/src/gnome/reconcile-view.c b/src/gnome/reconcile-view.c
index 05a1032..120bdef 100644
--- a/src/gnome/reconcile-view.c
+++ b/src/gnome/reconcile-view.c
@@ -31,6 +31,7 @@
#include "gnc-date.h"
#include "qof.h"
+#include "qofbook.h"
#include "Transaction.h"
#include "gnc-ui-util.h"
#include "gnc-prefs.h"
@@ -354,6 +355,8 @@ gnc_reconcile_view_init (GNCReconcileView *view)
{
GNCSearchParam *param;
GList *columns = NULL;
+ gboolean num_action =
+ qof_book_use_split_action_for_num_field(gnc_get_current_book());
view->reconciled = g_hash_table_new (NULL, NULL);
view->account = NULL;
@@ -374,7 +377,12 @@ gnc_reconcile_view_init (GNCReconcileView *view)
columns = gnc_search_param_prepend (columns, _("Description"), NULL,
GNC_ID_SPLIT, SPLIT_TRANS,
TRANS_DESCRIPTION, NULL);
- columns = gnc_search_param_prepend_with_justify (columns, _("Num"),
+ columns = num_action ?
+ gnc_search_param_prepend_with_justify (columns, _("Num"),
+ GTK_JUSTIFY_CENTER,
+ NULL, GNC_ID_SPLIT,
+ SPLIT_ACTION, NULL) :
+ gnc_search_param_prepend_with_justify (columns, _("Num"),
GTK_JUSTIFY_CENTER,
NULL, GNC_ID_SPLIT,
SPLIT_TRANS, TRANS_NUM, NULL);
Summary of changes:
src/gnome/reconcile-view.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list