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
 Load Transaction by Guid.
 
auto add (const std::string &_txGuid) -> Item::Ptr
 Add Transaction with Guid.
 
auto byAccount (const std::string &_accountGuid) -> Item::Vector
 Load Transactions for Account Guid.
 
auto byAccountMonth (const std::string &_accountGuid, int _month) -> Item::Vector
 
auto byNumMonth (const std::string &_num, int _month) -> Item::Vector
 Load Transactions for 'num' and Month.
 

Variables

const char * s_tableName = "transactions"
 

Function Documentation

◆ add()

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

Add Transaction with Guid.

Definition at line 116 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

Load Transactions for Account Guid.

Definition at line 127 of file Transactions.cpp.

References GCW::app().

◆ byAccountMonth()

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

Definition at line 165 of file Transactions.cpp.

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

◆ byGuid()

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

Load Transaction by Guid.

Definition at line 108 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 Transactions for 'num' and Month.

The 'num' column is the column immediately to the right of the date field. This query is used to find all the transactions that have this value in the 'num' field for a particular month.

Definition at line 187 of file Transactions.cpp.

References GCW::app(), Wt::WDate::currentDate(), and Wt::WDate::toString().

Referenced by GCW::Gui::BillPay::SummaryWidget::Splits::Splits().

◆ load()

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

Load Transaction by Guid.

Definition at line 80 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.