GnuCashew ~ GnuCash Enabled Web
GCW
|
#include <Transactions.h>
Inherits Wt::Dbo::Dbo< Item >.
Public Types | |
using | Ptr = Wt::Dbo::ptr< Item > |
using | Collection = Wt::Dbo::collection< Ptr > |
using | Vector = std::vector< Ptr > |
Public Member Functions | |
Item () | |
Item (const std::string &_txGuid) | |
auto | guid () const -> const std::string & |
auto | currency_guid () const -> const std::string & |
auto | num () const -> const std::string & |
auto | post_date () const -> const std::string & |
auto | enter_date () const -> const std::string & |
auto | description () const -> const std::string & |
auto | set_currency_guid (const std::string &_guid) -> void |
auto | set_enter_date (const std::string &_value) -> void |
auto | set_enter_date (const Wt::WDateTime &_value) -> void |
auto | set_num (const std::string &_value) -> void |
auto | post_date_as_string (const std::string &_format) const -> std::string |
Post Date as String. More... | |
auto | post_date_as_date () const -> Wt::WDateTime |
Date as WDate. More... | |
auto | set_post_date (const std::string &_value) -> void |
auto | set_post_date (const Wt::WDateTime &_value) -> void |
auto | set_description (const std::string &_value) -> void |
template<class Action > | |
void | persist (Action &action) |
Public Attributes | |
std::string | m_guid |
std::string | m_currency_guid |
std::string | m_num |
std::string | m_post_date |
std::string | m_enter_date |
std::string | m_description |
Transaction Item.
Definition at line 72 of file Transactions.h.
using GCW::Dbo::Transactions::Item::Collection = Wt::Dbo::collection< Ptr > |
Definition at line 78 of file Transactions.h.
using GCW::Dbo::Transactions::Item::Ptr = Wt::Dbo::ptr< Item > |
Definition at line 77 of file Transactions.h.
using GCW::Dbo::Transactions::Item::Vector = std::vector< Ptr > |
Definition at line 79 of file Transactions.h.
|
inline |
Definition at line 81 of file Transactions.h.
|
inline |
Definition at line 82 of file Transactions.h.
References m_guid.
|
inline |
Definition at line 85 of file Transactions.h.
References m_currency_guid.
|
inline |
Definition at line 89 of file Transactions.h.
References m_description.
|
inline |
Definition at line 88 of file Transactions.h.
References m_enter_date.
|
inline |
Definition at line 84 of file Transactions.h.
References m_guid.
|
inline |
Definition at line 86 of file Transactions.h.
References m_num.
|
inline |
Definition at line 133 of file Transactions.h.
References GCW::Dbo::Entries::Field::action, GCW::Dbo::Invoices::Field::id, m_currency_guid, m_description, m_enter_date, m_guid, m_num, and m_post_date.
|
inline |
Definition at line 87 of file Transactions.h.
References m_post_date.
Referenced by post_date_as_date(), and post_date_as_string().
|
inline |
Date as WDate.
This will take the stored string-date of the transaction and covert it to a system WDateTime value.
Definition at line 122 of file Transactions.h.
References post_date().
|
inline |
Post Date as String.
This pulls the post-date from the back-end and formats it with the requested format. This is used for screen-representations of the date.
Definition at line 109 of file Transactions.h.
References post_date().
|
inline |
Definition at line 91 of file Transactions.h.
References m_currency_guid.
auto GCW::Dbo::Transactions::Item::set_description | ( | const std::string & | _value | ) | -> void |
Definition at line 45 of file Transactions.cpp.
auto GCW::Dbo::Transactions::Item::set_enter_date | ( | const std::string & | _value | ) | -> void |
Definition at line 17 of file Transactions.cpp.
auto GCW::Dbo::Transactions::Item::set_enter_date | ( | const Wt::WDateTime & | _value | ) | -> void |
Definition at line 24 of file Transactions.cpp.
References GCW_DATE_FORMAT_STORAGE.
auto GCW::Dbo::Transactions::Item::set_num | ( | const std::string & | _value | ) | -> void |
Definition at line 9 of file Transactions.cpp.
auto GCW::Dbo::Transactions::Item::set_post_date | ( | const std::string & | _value | ) | -> void |
Definition at line 31 of file Transactions.cpp.
auto GCW::Dbo::Transactions::Item::set_post_date | ( | const Wt::WDateTime & | _value | ) | -> void |
Definition at line 38 of file Transactions.cpp.
std::string GCW::Dbo::Transactions::Item::m_currency_guid |
Definition at line 144 of file Transactions.h.
Referenced by currency_guid(), persist(), and set_currency_guid().
std::string GCW::Dbo::Transactions::Item::m_description |
Definition at line 148 of file Transactions.h.
Referenced by description(), and persist().
std::string GCW::Dbo::Transactions::Item::m_enter_date |
Definition at line 147 of file Transactions.h.
Referenced by enter_date(), and persist().
std::string GCW::Dbo::Transactions::Item::m_guid |
Definition at line 143 of file Transactions.h.
std::string GCW::Dbo::Transactions::Item::m_num |
Definition at line 145 of file Transactions.h.
std::string GCW::Dbo::Transactions::Item::m_post_date |
Definition at line 146 of file Transactions.h.
Referenced by persist(), and post_date().