2002-11-28 Christian Stimming <stimming@tuhh.de>

* src/import-export/hbci/gnc-hbci-gettrans.c: Give correct
	feedback when no transactions are there.

	* src/import-export/generic-import.glade: Add explaning label for
	importer window.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7565 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming
2002-11-27 23:00:46 +00:00
parent a9f1f75243
commit 52243c7548
3 changed files with 56 additions and 13 deletions

View File

@@ -1,3 +1,11 @@
2002-11-28 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/gnc-hbci-gettrans.c: Give correct
feedback when no transactions are there.
* src/import-export/generic-import.glade: Add explaning label for
importer window.
2002-11-27 Benoit Gr<47>goire <bock@step.polymtl.ca>
* Makefile.am configure.in src/doc/Makefile.am
src/doc/doxygen.cfg src/doc/doxygen_main_page.c: Added doxygen documentation support, and integrated it into the build system. There is a new target, make doc, that can be used to build the documentation if you have doxygen installed. Any file in the src tree will be included in the documentation if it follows doxygen conventions. The doc created in src/doc/html. Doxygen is now required for make dist.

View File

@@ -846,6 +846,28 @@
</widget>
</widget>
</widget>
<widget>
<class>GtkLabel</class>
<name>explanation_label</name>
<label>For a new transaction, click on the &quot;Other Account&quot; entry to choose the other (destination) account of this transaction.
For a transaction that is a duplicate of an existing one, click on the &quot;Other Account&quot; or &quot;Description&quot; entry to
check whether GnuCash chose the right existing transaction.
To switch transactions between both states, click on the checkmark in the &quot;New&quot; column.
When all new transactions have the correct destination account and all duplicates are matched with the right existing transaction,
click &quot;Ok&quot;.</label>
<justify>GTK_JUSTIFY_LEFT</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
<child>
<padding>0</padding>
<expand>False</expand>
<fill>False</fill>
</child>
</widget>
</widget>
</widget>
</widget>

View File

@@ -113,7 +113,6 @@ gnc_hbci_gettrans (GtkWidget *parent, Account *gnc_acc)
HBCI_Date *from_date, *to_date;
gboolean use_last_date = TRUE,
use_earliest_date = TRUE, use_until_now = TRUE;
GNCGenTransaction *importer_gui;
/* Get time of last retrieval */
last_timespec = gnc_hbci_get_account_trans_retrieval (gnc_acc);
@@ -174,29 +173,43 @@ gnc_hbci_gettrans (GtkWidget *parent, Account *gnc_acc)
/* Store the date of this retrieval */
gnc_hbci_set_account_trans_retrieval (gnc_acc, until_timespec);
importer_gui = gnc_gen_trans_new (NULL, NULL);
gnc_gen_trans_freeze (importer_gui);
gnc_gen_trans_set_fuzzy_amount (importer_gui, 0.0);
{
/* Now add the retrieved transactions to the gnucash account. */
const list_HBCI_Transaction *trans_list;
struct trans_list_data data;
data.gnc_acc = gnc_acc;
data.importer = importer_gui;
trans_list = HBCI_OutboxJobGetTransactions_transactions (trans_job);
printf("gnc_hbci_gettrans: Got %d transactions.\n",
list_HBCI_Transaction_size(trans_list));
list_HBCI_Transaction_foreach (trans_list, trans_list_cb, &data);
if (list_HBCI_Transaction_size(trans_list) > 0) {
struct trans_list_data data;
GNCGenTransaction *importer_gui;
importer_gui = gnc_gen_trans_new (NULL, NULL);
gnc_gen_trans_freeze (importer_gui);
gnc_gen_trans_set_fuzzy_amount (importer_gui, 0.0);
data.gnc_acc = gnc_acc;
data.importer = importer_gui;
list_HBCI_Transaction_foreach (trans_list, trans_list_cb, &data);
gnc_gen_trans_thaw (importer_gui);
GNCInteractor_hide (interactor);
gnc_gen_trans_run (importer_gui);
}
else {
GNCInteractor_hide (interactor);
gnome_ok_dialog_parented
(_("The HBCI import returned no transactions for the selected time period."),
GTK_WINDOW (parent));
}
}
gnc_gen_trans_thaw (importer_gui);
GNCInteractor_hide (interactor);
/* Clean up behind ourself. */
HBCI_API_clearQueueByStatus (api, HBCI_JOB_STATUS_DONE);
gnc_gen_trans_run (importer_gui);
}
}