+ DB( g_print("\n[filter] set date bounds %p\n", flt) );
+
+ flt->mindate = 0;
+ flt->maxdate = 0;
+
+ lst_acc = g_hash_table_get_values(GLOBALS->h_acc);
+ lnk_acc = g_list_first(lst_acc);
+ while (lnk_acc != NULL)
+ {
+ Account *acc = lnk_acc->data;
+
+ //#1674045 only rely on nosummary
+ //if( !(acc->flags & AF_CLOSED) )
+ {
+ Transaction *txn;
+
+ DB( g_print(" - do '%s'\n", acc->name) );
+
+ lnk_txn = g_queue_peek_head_link(acc->txn_queue);
+ if(lnk_txn) {
+ txn = lnk_txn->data;
+ if( (kacc == 0) || (txn->kacc == kacc) )
+ {
+ if( flt->mindate == 0 )
+ flt->mindate = txn->date;
+ else
+ flt->mindate = MIN(flt->mindate, txn->date);
+ }
+ }