GnuCashew ~ GnuCash Enabled Web
GCW
|
Classes | |
class | Item |
Split Item Class. More... | |
Functions | |
auto | load (const std::string &_splitGuid) -> Item::Ptr |
Load a single split. More... | |
auto | find (const std::string &_splitGuid) -> Item::Ptr |
Find a single split. More... | |
auto | add (const std::string &_splitGuid) -> Item::Ptr |
Add a single split. More... | |
auto | byAccount (const std::string &_accountGuid) -> Item::Vector |
Load Splits by Account. More... | |
auto | bySplit (const std::string &_splitGuid) -> Item::Vector |
Load Splits by Split. More... | |
auto | byTransaction (const std::string &_txGuid) -> Item::Vector |
Load Splits by Transaction. More... | |
Variables | |
const char * | s_tableName = "splits" |
auto GCW::Dbo::Splits::add | ( | const std::string & | _splitGuid | ) | -> Item::Ptr |
Add a single split.
This adds a new split item containing the guid requested
Definition at line 117 of file Splits.cpp.
References GCW::app().
Referenced by GCW::Dbo::Transactions::Manager::newTransaction().
auto GCW::Dbo::Splits::byAccount | ( | const std::string & | _accountGuid | ) | -> Item::Vector |
Load Splits by Account.
This function returns a vector of Split items, sorted by transaction date. The result includes ~all~ splits associated with a single account.
Definition at line 128 of file Splits.cpp.
References GCW::app().
Referenced by GCW::Eng::AccountRegisterModel::refreshFromDisk().
auto GCW::Dbo::Splits::bySplit | ( | const std::string & | _splitGuid | ) | -> Item::Vector |
Load Splits by Split.
This function returns a vector of Split items, sorted by transaction date. The result includes ~all~ splits associated with a transaction except for the split ID used to identify the transaction. This function acts as a convenience function for a split to quickly identify all of the 'other' splits in the transaction.
The vector is sorted by transction-date before returning to the caller.
Definition at line 165 of file Splits.cpp.
References GCW::app(), GCW::Dbo::Accounts::Field::guid, and load().
Referenced by GCW::Eng::AccountRegisterModel::refreshFromDisk().
auto GCW::Dbo::Splits::byTransaction | ( | const std::string & | _txGuid | ) | -> Item::Vector |
Load Splits by Transaction.
This function returns a vector of Split items, sorted by transaction date. The result includes ~all~ splits associated with a transaction
The vector is sorted by transction-date before returning to the caller.
Definition at line 210 of file Splits.cpp.
References GCW::app().
Referenced by GCW::Dbo::Transactions::Manager::loadTransaction().
auto GCW::Dbo::Splits::find | ( | const std::string & | _splitGuid | ) | -> Item::Ptr |
Find a single split.
This function returns a split based on the GUID. If the split is not found, a simple empty object is returned.
Definition at line 84 of file Splits.cpp.
References GCW::app().
Referenced by HtmlResource::handleRequest(), MonitResource::handleRequest(), and ApiResource::handleRequest().
auto GCW::Dbo::Splits::load | ( | const std::string & | _splitGuid | ) | -> Item::Ptr |
Load a single split.
This function returns a split based on the GUID.
Definition at line 65 of file Splits.cpp.
References GCW::app().
Referenced by bySplit(), and GCW::Dbo::Transactions::Manager::loadSplit().
|
extern |
Definition at line 8 of file Splits.cpp.