Diffstat (limited to 'noncore/apps/qashmoney/transfer.cpp') (more/less context) (show whitespace changes)
-rwxr-xr-x | noncore/apps/qashmoney/transfer.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/noncore/apps/qashmoney/transfer.cpp b/noncore/apps/qashmoney/transfer.cpp index 77cbb4e..568d584 100755 --- a/noncore/apps/qashmoney/transfer.cpp +++ b/noncore/apps/qashmoney/transfer.cpp @@ -66,5 +66,5 @@ int Transfer::getNumberOfTransfers ( int accountid ) } -void Transfer::displayTransfers ( QListView *listview, int accountid, bool children ) +void Transfer::displayTransfers ( QListView *listview, int accountid, bool children, QDate displaydate ) { int showcleared = preferences->getPreference ( 3 ); @@ -101,4 +101,5 @@ void Transfer::displayTransfers ( QListView *listview, int accountid, bool child int year = yearstring.toInt (); QString date = preferences->getDate ( year, month, day ); + QDate testdate ( year, month, day ); //construct the amount and id strings @@ -113,4 +114,6 @@ void Transfer::displayTransfers ( QListView *listview, int accountid, bool child QString toaccount = account->getAccountName ( atol ( results [ counter + 6 ] ) ); + if ( testdate >= displaydate || showcleared == 0 ) + { // display this transfer if ( account->getParentAccountID ( accountid ) == -1 ) @@ -128,5 +131,5 @@ void Transfer::displayTransfers ( QListView *listview, int accountid, bool child QListViewItem *item = new QListViewItem ( listview, date, transactionname, amount, id ); } - + } counter = counter + 7; } @@ -164,4 +167,5 @@ void Transfer::displayTransfers ( QListView *listview, int accountid, bool child int year = yearstring.toInt (); QString date = preferences->getDate ( year, month, day ); + QDate testdate ( year, month, day ); //construct the amount and id strings @@ -177,4 +181,6 @@ void Transfer::displayTransfers ( QListView *listview, int accountid, bool child QString fromaccount = account->getAccountName ( atol ( toresults [ counter + 5 ] ) ); + if ( testdate >= displaydate || showcleared == 0 ) + { // display this transfer if ( account->getParentAccountID ( accountid ) == -1 ) @@ -192,4 +198,5 @@ void Transfer::displayTransfers ( QListView *listview, int accountid, bool child QListViewItem *item = new QListViewItem ( listview, date, transactionname, amount, id ); } + } counter = counter + 7; |