New icons

This commit is contained in:
Grégory Soutadé 2010-07-03 14:54:58 +02:00
parent 3e53e67859
commit 420ceb688b
5 changed files with 3 additions and 5 deletions

View File

@ -342,9 +342,7 @@ void Database::UpdateOperation(Operation op)
req += wxT(", checked='0'");
req += wxT(" WHERE id='") + op.id + wxT("'");
//std::cout << req.mb_str() << "\n";
EXECUTE_SQL_UPDATE(req, );
}
wxString Database::AddOperation(User* user, Operation op)
@ -704,15 +702,15 @@ void Database::GenerateMonth(User* user, int monthFrom, int yearFrom, int monthT
for (it = user->_accounts.begin(); it != user->_accounts.end(); it++)
{
amount = 0.0;
req = wxT("SELECT amount FROM operation WHERE") ;
req = wxT("SELECT SUM(amount) AS total FROM operation WHERE") ;
req += wxT(" account='") + it->id + wxT("'");
req += wxT(" AND year='") + wxString::Format(wxT("%d"), yearFrom) + wxT("'");
req += wxT(" AND month='") + wxString::Format(wxT("%d"), monthFrom) + wxT("'");
EXECUTE_SQL_QUERY(req, set, );
while (set.NextRow())
amount += set.GetDouble(wxT("amount"));
if (set.NextRow())
amount += set.GetDouble(wxT("total"));
req = wxT("SELECT amount FROM account_amount WHERE") ;
req += wxT(" account='") + it->id + wxT("'");

BIN
ressources/Search-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
ressources/tick-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB