New icons
This commit is contained in:
parent
3e53e67859
commit
420ceb688b
|
@ -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
BIN
ressources/Search-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
BIN
ressources/system-log-out.png
Normal file
BIN
ressources/system-log-out.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
BIN
ressources/tick-icon.png
Normal file
BIN
ressources/tick-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 592 B |
BIN
ressources/windows-users-icon.png
Normal file
BIN
ressources/windows-users-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Loading…
Reference in New Issue
Block a user