GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
GCW::Gui::BillPay::Item Class Reference

Bill Pay Item. More...

#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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Item()

GCW::Gui::BillPay::Item::Item ( GCW::Dbo::Vars::Item::Ptr  _varItem)

Definition at line 32 of file Gui/BillPay/Item.cpp.

Member Function Documentation

◆ accountFullName()

auto GCW::Gui::BillPay::Item::accountFullName ( ) const -> std::string

Definition at line 90 of file Gui/BillPay/Item.cpp.

References GCW::Dbo::Accounts::fullName().

◆ accountGuid()

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().

◆ actual()

auto GCW::Gui::BillPay::Item::actual ( ) const -> std::string

Definition at line 153 of file Gui/BillPay/Item.cpp.

References FN_ACTUAL.

◆ ap()

auto GCW::Gui::BillPay::Item::ap ( ) const -> std::string

Definition at line 171 of file Gui/BillPay/Item.cpp.

References FN_AP.

◆ autoPay()

auto GCW::Gui::BillPay::Item::autoPay ( ) const -> std::string

Definition at line 198 of file Gui/BillPay/Item.cpp.

References FN_AUTOPAY.

◆ budget()

auto GCW::Gui::BillPay::Item::budget ( ) const -> std::string

Definition at line 117 of file Gui/BillPay/Item.cpp.

References FN_BUDGET.

◆ cb()

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().

◆ cbtr()

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.

<message id="gcw.billPay.tableView.yes" >yes</message>
<message id="gcw.billPay.tableView.maybe" >pen</message>
<message id="gcw.billPay.tableView.no" >no</message>

This will also satisfy the requirements for multi-language translations.

Definition at line 244 of file Gui/BillPay/Item.cpp.

References TR8.

◆ dueDay()

auto GCW::Gui::BillPay::Item::dueDay ( ) const -> std::string

Definition at line 99 of file Gui/BillPay/Item.cpp.

References FN_DUEDAY.

◆ group()

auto GCW::Gui::BillPay::Item::group ( ) const -> std::string

Definition at line 135 of file Gui/BillPay/Item.cpp.

References FN_GROUP.

◆ guid()

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().

◆ isActive()

auto GCW::Gui::BillPay::Item::isActive ( ) const -> std::string

Definition at line 180 of file Gui/BillPay/Item.cpp.

References FN_ISACTIVE.

◆ isVisible()

auto GCW::Gui::BillPay::Item::isVisible ( ) const -> std::string

Definition at line 189 of file Gui/BillPay/Item.cpp.

References FN_ISVISIBLE.

◆ last4()

auto GCW::Gui::BillPay::Item::last4 ( ) const -> std::string

Definition at line 216 of file Gui/BillPay/Item.cpp.

References FN_LAST4.

◆ limit()

auto GCW::Gui::BillPay::Item::limit ( ) const -> std::string

Definition at line 144 of file Gui/BillPay/Item.cpp.

References FN_LIMIT.

◆ minimum()

auto GCW::Gui::BillPay::Item::minimum ( ) const -> std::string

Definition at line 108 of file Gui/BillPay/Item.cpp.

References FN_MINIMUM.

◆ nickname()

auto GCW::Gui::BillPay::Item::nickname ( ) const -> std::string

Definition at line 126 of file Gui/BillPay/Item.cpp.

References FN_NICKNAME.

◆ note()

auto GCW::Gui::BillPay::Item::note ( ) const -> std::string

Definition at line 225 of file Gui/BillPay/Item.cpp.

References FN_NOTE.

◆ payFromGuid()

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.

◆ payNow()

auto GCW::Gui::BillPay::Item::payNow ( ) const -> std::string

Definition at line 207 of file Gui/BillPay/Item.cpp.

References FN_PAYNOW.

◆ set_accountGuid()

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.

◆ set_actual()

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.

◆ set_ap()

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.

◆ set_autoPay()

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.

◆ set_budget()

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.

◆ set_cb()

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().

◆ set_dueDay()

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.

◆ set_group()

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.

◆ set_isActive()

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.

◆ set_isVisible()

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.

◆ set_last4()

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.

◆ set_limit()

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.

◆ set_minimum()

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.

◆ set_nickname()

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.

◆ set_note()

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.

◆ set_payNow()

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.

◆ set_url()

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.

◆ setVar()

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().

◆ sortValue()

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.

◆ url()

auto GCW::Gui::BillPay::Item::url ( ) const -> std::string

Definition at line 162 of file Gui/BillPay/Item.cpp.

References FN_URL.

Member Data Documentation

◆ m_varItem

GCW::Dbo::Vars::Item::Ptr GCW::Gui::BillPay::Item::m_varItem
private

Definition at line 135 of file Gui/BillPay/Item.h.


The documentation for this class was generated from the following files: