Fix missing date when reconciling from HBCI as suggested by Konstantin Goudkov, #372929.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15110 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2006-11-12 11:06:30 +00:00
parent c94218b42c
commit 6005e8deca

View File

@ -217,6 +217,10 @@ gnc_hbci_getbalance_finish (GtkWidget *parent,
ti=AB_Balance_GetTime(booked_grp);
if (ti)
booked_tt = GWEN_Time_toTime_t (ti);
else
/* No time found? Use today because the HBCI query asked for
today's balance. */
booked_tt = gnc_timet_get_day_start(time(NULL));
booked_val = AB_Balance_GetValue(booked_grp);
if (booked_val)
booked_value = AB_Value_GetValue (booked_val);