GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
|
#include <Item.h>
Public Member Functions | |
Item (GCW::Dbo::Vars::Item::Ptr _varItem) | |
auto | guid () const -> std::string |
Item GUID. | |
auto | accountGuid () const -> std::string |
Account GUID. | |
auto | payFromGuid () const -> std::string |
Pay-From Account. | |
auto | accountFullName () const -> std::string |
auto | dueDay () const -> std::string |
auto | minimum () const -> std::string |
auto | budget () const -> std::string |
auto | nickname () const -> std::string |
auto | group () const -> std::string |
auto | limit () const -> std::string |
auto | actual () const -> std::string |
auto | url () const -> std::string |
auto | ap () const -> std::string |
auto | isActive () const -> std::string |
auto | isVisible () const -> std::string |
auto | autoPay () const -> std::string |
auto | payNow () const -> std::string |
auto | last4 () const -> std::string |
auto | note () const -> std::string |
auto | cb (int _index) const -> std::string |
Check Box Value as text. | |
auto | cbtr (int _index) const -> std::string |
Check Box Value as Translated text. | |
auto | set_accountGuid (const Wt::WString &_value) -> void |
auto | set_dueDay (const Wt::WString &_value) -> void |
auto | set_minimum (const Wt::WString &_value) -> void |
auto | set_budget (const Wt::WString &_value) -> void |
auto | set_nickname (const Wt::WString &_value) -> void |
auto | set_group (const Wt::WString &_value) -> void |
auto | set_limit (const Wt::WString &_value) -> void |
auto | set_actual (const Wt::WString &_value) -> void |
auto | set_url (const Wt::WString &_value) -> void |
auto | set_ap (const Wt::WString &_value) -> void |
auto | set_isActive (const Wt::WString &_value) -> void |
auto | set_isVisible (const Wt::WString &_value) -> void |
auto | set_autoPay (const Wt::WString &_value) -> void |
auto | set_payNow (const Wt::WString &_value) -> void |
auto | set_last4 (const Wt::WString &_value) -> void |
auto | set_note (const Wt::WString &_value) -> void |
auto | set_cb (int _index, const Wt::WString &_value) -> void |
auto | sortValue () const -> float |
Sort Value. | |
auto | setVar (const std::string &_key, const Wt::WString &_value) -> void |
Private Attributes | |
GCW::Dbo::Vars::Item::Ptr | m_varItem |
Bill Pay Item.
This item contains all the bits of the bill-pay tool. This object is a controller for a single bill-pay-item. It is used to receive payments and assist with the process of paying bills and recording the confirmation codes and so on.
Definition at line 22 of file Gui/BillPay/Item.h.
GCW::Gui::BillPay::Item::Item | ( | GCW::Dbo::Vars::Item::Ptr | _varItem | ) |
Definition at line 32 of file Gui/BillPay/Item.cpp.
auto GCW::Gui::BillPay::Item::accountFullName | ( | ) | const -> std::string |
Definition at line 90 of file Gui/BillPay/Item.cpp.
References GCW::Dbo::Accounts::fullName().
auto GCW::Gui::BillPay::Item::accountGuid | ( | ) | const -> std::string |
Account GUID.
This is the account that this bill-pay item is tied to. When a payment is made, from some other account, it is posted to .this. account.
Definition at line 65 of file Gui/BillPay/Item.cpp.
References FN_ACCOUNTGUID.
Referenced by GCW::Gui::BillPay::EditWidget::accountIsDuplicated().
auto GCW::Gui::BillPay::Item::actual | ( | ) | const -> std::string |
Definition at line 153 of file Gui/BillPay/Item.cpp.
References FN_ACTUAL.
auto GCW::Gui::BillPay::Item::ap | ( | ) | const -> std::string |
Definition at line 171 of file Gui/BillPay/Item.cpp.
References FN_AP.
auto GCW::Gui::BillPay::Item::autoPay | ( | ) | const -> std::string |
Definition at line 198 of file Gui/BillPay/Item.cpp.
References FN_AUTOPAY.
auto GCW::Gui::BillPay::Item::budget | ( | ) | const -> std::string |
Definition at line 117 of file Gui/BillPay/Item.cpp.
References FN_BUDGET.
auto GCW::Gui::BillPay::Item::cb | ( | int | _index | ) | const -> std::string |
Check Box Value as text.
This will return 'yes', 'no', 'maybe' depending on the value of the check box. These are consistent with the tri-state capable check boxes.
Definition at line 235 of file Gui/BillPay/Item.cpp.
References FN_CB, and GCW::Gui::BillPay::toString().
auto GCW::Gui::BillPay::Item::cbtr | ( | int | _index | ) | const -> std::string |
Check Box Value as Translated text.
This will return the 'translated' yes, no, maybe of the check-box values. For English this can translate to 'yes' (paid), 'no' (not paid), and 'pen' (pending) payments.
This will also satisfy the requirements for multi-language translations.
Definition at line 244 of file Gui/BillPay/Item.cpp.
References TR8.
auto GCW::Gui::BillPay::Item::dueDay | ( | ) | const -> std::string |
Definition at line 99 of file Gui/BillPay/Item.cpp.
References FN_DUEDAY.
auto GCW::Gui::BillPay::Item::group | ( | ) | const -> std::string |
Definition at line 135 of file Gui/BillPay/Item.cpp.
References FN_GROUP.
auto GCW::Gui::BillPay::Item::guid | ( | ) | const -> std::string |
Item GUID.
Definition at line 56 of file Gui/BillPay/Item.cpp.
Referenced by GCW::Gui::BillPay::EditWidget::accountIsDuplicated().
auto GCW::Gui::BillPay::Item::isActive | ( | ) | const -> std::string |
Definition at line 180 of file Gui/BillPay/Item.cpp.
References FN_ISACTIVE.
auto GCW::Gui::BillPay::Item::isVisible | ( | ) | const -> std::string |
Definition at line 189 of file Gui/BillPay/Item.cpp.
References FN_ISVISIBLE.
auto GCW::Gui::BillPay::Item::last4 | ( | ) | const -> std::string |
Definition at line 216 of file Gui/BillPay/Item.cpp.
References FN_LAST4.
auto GCW::Gui::BillPay::Item::limit | ( | ) | const -> std::string |
Definition at line 144 of file Gui/BillPay/Item.cpp.
References FN_LIMIT.
auto GCW::Gui::BillPay::Item::minimum | ( | ) | const -> std::string |
Definition at line 108 of file Gui/BillPay/Item.cpp.
References FN_MINIMUM.
auto GCW::Gui::BillPay::Item::nickname | ( | ) | const -> std::string |
Definition at line 126 of file Gui/BillPay/Item.cpp.
References FN_NICKNAME.
auto GCW::Gui::BillPay::Item::note | ( | ) | const -> std::string |
Definition at line 225 of file Gui/BillPay/Item.cpp.
References FN_NOTE.
auto GCW::Gui::BillPay::Item::payFromGuid | ( | ) | const -> std::string |
Pay-From Account.
This holds the GUID of the account that last made the payment. This ID will get recalled on subsequent payments, to faciliate rapid payment processing functions.
Definition at line 74 of file Gui/BillPay/Item.cpp.
auto GCW::Gui::BillPay::Item::payNow | ( | ) | const -> std::string |
Definition at line 207 of file Gui/BillPay/Item.cpp.
References FN_PAYNOW.
auto GCW::Gui::BillPay::Item::set_accountGuid | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 262 of file Gui/BillPay/Item.cpp.
References FN_ACCOUNTGUID.
auto GCW::Gui::BillPay::Item::set_actual | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 318 of file Gui/BillPay/Item.cpp.
References FN_ACTUAL.
auto GCW::Gui::BillPay::Item::set_ap | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 334 of file Gui/BillPay/Item.cpp.
References FN_AP.
auto GCW::Gui::BillPay::Item::set_autoPay | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 358 of file Gui/BillPay/Item.cpp.
References FN_AUTOPAY.
auto GCW::Gui::BillPay::Item::set_budget | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 286 of file Gui/BillPay/Item.cpp.
References FN_BUDGET.
auto GCW::Gui::BillPay::Item::set_cb | ( | int | _index, |
const Wt::WString & | _value | ||
) | -> void |
Definition at line 390 of file Gui/BillPay/Item.cpp.
References FN_CB, and GCW::Gui::BillPay::toString().
auto GCW::Gui::BillPay::Item::set_dueDay | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 270 of file Gui/BillPay/Item.cpp.
References FN_DUEDAY.
auto GCW::Gui::BillPay::Item::set_group | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 302 of file Gui/BillPay/Item.cpp.
References FN_GROUP.
auto GCW::Gui::BillPay::Item::set_isActive | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 342 of file Gui/BillPay/Item.cpp.
References FN_ISACTIVE.
auto GCW::Gui::BillPay::Item::set_isVisible | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 350 of file Gui/BillPay/Item.cpp.
References FN_ISVISIBLE.
auto GCW::Gui::BillPay::Item::set_last4 | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 374 of file Gui/BillPay/Item.cpp.
References FN_LAST4.
auto GCW::Gui::BillPay::Item::set_limit | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 310 of file Gui/BillPay/Item.cpp.
References FN_LIMIT.
auto GCW::Gui::BillPay::Item::set_minimum | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 278 of file Gui/BillPay/Item.cpp.
References FN_MINIMUM.
auto GCW::Gui::BillPay::Item::set_nickname | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 294 of file Gui/BillPay/Item.cpp.
References FN_NICKNAME.
auto GCW::Gui::BillPay::Item::set_note | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 382 of file Gui/BillPay/Item.cpp.
References FN_NOTE.
auto GCW::Gui::BillPay::Item::set_payNow | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 366 of file Gui/BillPay/Item.cpp.
References FN_PAYNOW.
auto GCW::Gui::BillPay::Item::set_url | ( | const Wt::WString & | _value | ) | -> void |
Definition at line 326 of file Gui/BillPay/Item.cpp.
References FN_URL.
auto GCW::Gui::BillPay::Item::setVar | ( | const std::string & | _key, |
const Wt::WString & | _value | ||
) | -> void |
Definition at line 253 of file Gui/BillPay/Item.cpp.
References GCW::app().
auto GCW::Gui::BillPay::Item::sortValue | ( | ) | const -> float |
Sort Value.
This produces a value suitable for sorting the model.
The model gets sorted on the 'group.dueDay' value. This provides a nice group/sorted display of the bills-due view. All items that share the same group appear in the same area and subsequent items are sorted on the dueDay value.
Definition at line 40 of file Gui/BillPay/Item.cpp.
auto GCW::Gui::BillPay::Item::url | ( | ) | const -> std::string |
Definition at line 162 of file Gui/BillPay/Item.cpp.
References FN_URL.
|
private |
Definition at line 135 of file Gui/BillPay/Item.h.