GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Classes | Functions | Variables
GCW::Dbo::Transactions Namespace Reference

Classes

class  Item
 Transaction Item. More...
 

Functions

auto load (const std::string &_txGuid) -> Item::Ptr
 Load Transaction by Guid.
 
auto byGuid (const std::string &_txGuid) -> Item::Ptr
 
auto add (const std::string &_txGuid) -> Item::Ptr
 
auto byAccount (const std::string &_accountGuid) -> Item::Vector
 
auto byAccountMonth (const std::string &_accountGuid, int _month) -> Item::Vector
 
auto byNumMonth (const std::string &_num, int _month) -> Item::Vector
 

Variables

const char * s_tableName = "transactions"
 

Function Documentation

◆ add()

auto GCW::Dbo::Transactions::add ( const std::string &  _txGuid) -> Item::Ptr

Definition at line 98 of file Transactions.cpp.

References GCW::app().

Referenced by GCW::Eng::Transaction::Manager::newTransaction().

◆ byAccount()

auto GCW::Dbo::Transactions::byAccount ( const std::string &  _accountGuid) -> Item::Vector

Definition at line 109 of file Transactions.cpp.

References GCW::app().

◆ byAccountMonth()

auto GCW::Dbo::Transactions::byAccountMonth ( const std::string &  _accountGuid,
int  _month 
) -> Item::Vector

Definition at line 147 of file Transactions.cpp.

References Wt::WDate::currentDate(), and Wt::WDate::year().

◆ byGuid()

auto GCW::Dbo::Transactions::byGuid ( const std::string &  _txGuid) -> Item::Ptr

Definition at line 90 of file Transactions.cpp.

Referenced by GCW::Gui::BillPay::PaymentWidget::lastTx().

◆ byNumMonth()

auto GCW::Dbo::Transactions::byNumMonth ( const std::string &  _num,
int  _month 
) -> Item::Vector

◆ load()

auto GCW::Dbo::Transactions::load ( const std::string &  _txGuid) -> Item::Ptr

Load Transaction by Guid.

Definition at line 62 of file Transactions.cpp.

References GCW::app().

Referenced by GCW::Eng::Transaction::Manager::loadTransaction().

Variable Documentation

◆ s_tableName

const char * GCW::Dbo::Transactions::s_tableName = "transactions"
extern

Definition at line 6 of file Transactions.cpp.