gnucash maint: Allow only date entry for opening balances on new accounts

Geert Janssens gjanssens at code.gnucash.org
Sat Mar 4 06:26:05 EST 2017


Updated	 via  https://github.com/Gnucash/gnucash/commit/03ff5d37 (commit)
	from  https://github.com/Gnucash/gnucash/commit/de360cab (commit)



commit 03ff5d3778c9d3148f08b72dca0b984a36ec74df
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Sat Mar 4 12:25:56 2017 +0100

    Allow only date entry for opening balances on new accounts
    
    This anomaly was spotted by Christopher Lam

diff --git a/src/gnome-utils/dialog-account.c b/src/gnome-utils/dialog-account.c
index c4895b5..66a1317 100644
--- a/src/gnome-utils/dialog-account.c
+++ b/src/gnome-utils/dialog-account.c
@@ -1373,7 +1373,7 @@ gnc_account_window_create(AccountWindow *aw)
     gtk_label_set_mnemonic_widget (GTK_LABEL(label), amount);
 
     box = GTK_WIDGET(gtk_builder_get_object (builder, "opening_balance_date_box"));
-    date_edit = gnc_date_edit_new (gnc_time (NULL), 1, 1);
+    date_edit = gnc_date_edit_new (gnc_time (NULL), 0, 0);
     aw->opening_balance_date_edit = date_edit;
     gtk_box_pack_start(GTK_BOX(box), date_edit, TRUE, TRUE, 0);
     gtk_widget_show (date_edit);



Summary of changes:
 src/gnome-utils/dialog-account.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list