|
EvEmu
0.8.4
11 September 2021
|
#include "AccountDB.h"
Public Member Functions | |
| PyRep * | GetWalletDivisionsInfo (uint32 corpID) |
| PyRep * | GetJournal (uint32 ownerID, int8 entryTypeID, uint16 accountKey, int64 fromDate, bool reverse=false) |
Static Public Member Functions | |
| static double | OfflineFundXfer (uint32 charID, double amount, uint8 type=Account::CreditType::ISK) |
| static double | GetCorpBalance (uint32 corpID, uint16 accountKey) |
| static void | UpdateCorpBalance (uint32 corpID, uint16 accountKey, double amount) |
| static void | AddJournalEntry (uint32 ownerID, int8 entryTypeID, uint32 ownerFromID, uint32 ownerToID, int8 currency, uint16 accountKey, double amount, double newBalance, std::string description, uint32 referenceID=0) |
Definition at line 32 of file AccountDB.h.
|
static |
Definition at line 166 of file AccountDB.cpp.
References DBerror::c_str(), Account::KeyType::Cash, GetFileTimeNow(), IsCorp, sDatabase, and Journal::EntryType::SkipLog.
Referenced by AccountService::HandleCorpTransaction(), and AccountService::TranserFunds().


Definition at line 69 of file AccountDB.cpp.
References DBerror::c_str(), Account::KeyType::Cash, Account::KeyType::Cash2, Account::KeyType::Cash3, Account::KeyType::Cash4, Account::KeyType::Cash5, Account::KeyType::Cash6, Account::KeyType::Cash7, codelog, DBQueryResult::error, DBResultRow::GetDouble(), DBQueryResult::GetRow(), and sDatabase.
Referenced by AccountService::HandleCorpTransaction().


| PyRep * AccountDB::GetJournal | ( | uint32 | ownerID, |
| int8 | entryTypeID, | ||
| uint16 | accountKey, | ||
| int64 | fromDate, | ||
| bool | reverse = false |
||
| ) |
Definition at line 135 of file AccountDB.cpp.
References DBerror::c_str(), codelog, DBResultToCRowset(), DBQueryResult::error, IsCorp, and sDatabase.

Definition at line 109 of file AccountDB.cpp.
References PyList::AddItem(), DBerror::c_str(), codelog, PyRep::Dump(), DBQueryResult::error, DBResultRow::GetDouble(), DBQueryResult::GetRow(), is_log_enabled, sDatabase, and PyDict::SetItemString().

|
static |
Definition at line 46 of file AccountDB.cpp.
References Account::CreditType::AURUM, DBerror::c_str(), DBResultRow::GetDouble(), DBQueryResult::GetRow(), Account::CreditType::ISK, Account::CreditType::MPLEX, and sDatabase.
Referenced by AccountService::TranserFunds().


Definition at line 92 of file AccountDB.cpp.
References DBerror::c_str(), Account::KeyType::Cash, Account::KeyType::Cash2, Account::KeyType::Cash3, Account::KeyType::Cash4, Account::KeyType::Cash5, Account::KeyType::Cash6, Account::KeyType::Cash7, and sDatabase.
Referenced by AccountService::HandleCorpTransaction().

