GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Gui/BillPay/Item.h
Go to the documentation of this file.
1#line 2 "src/Gui/BillPay/Item.h"
2
3#ifndef __GCW_GUI_BILLPAYITEM_H___
4#define __GCW_GUI_BILLPAYITEM_H___
5
6#include "../../Dbo/Vars/Vars.h"
7
8namespace GCW {
9 namespace Gui {
10 namespace BillPay {
11
12/*!
13** \brief Bill Pay Item
14**
15** This item contains all the bits of the bill-pay
16** tool. This object is a controller for a single
17** bill-pay-item. It is used to receive payments
18** and assist with the process of paying bills and
19** recording the confirmation codes and so on.
20**
21*/
22class Item
23{
24 public:
25
27
28 /*!
29 ** \brief Item GUID
30 **
31 */
32 auto guid() const-> std::string ;
33
34 /*!
35 ** \brief Account GUID
36 **
37 ** This is the account that this bill-pay item is
38 ** tied to. When a payment is made, from some
39 ** other account, it is posted to .this. account.
40 **
41 */
42 auto accountGuid() const-> std::string ;
43
44 /*!
45 ** \brief Pay-From Account
46 **
47 ** This holds the GUID of the account that last made
48 ** the payment. This ID will get recalled on subsequent
49 ** payments, to faciliate rapid payment processing
50 ** functions.
51 **
52 */
53 auto payFromGuid () const-> std::string ;
54 auto accountFullName () const-> std::string ;
55 auto dueDay () const-> std::string ;
56 auto minimum () const-> std::string ;
57 auto budget () const-> std::string ;
58 auto nickname () const-> std::string ;
59 auto group () const-> std::string ;
60 auto limit () const-> std::string ;
61 auto actual () const-> std::string ;
62 auto url () const-> std::string ;
63 auto ap () const-> std::string ;
64 auto isActive () const-> std::string ;
65 auto isVisible () const-> std::string ;
66 auto autoPay () const-> std::string ;
67 auto payNow () const-> std::string ;
68 auto last4 () const-> std::string ;
69 auto note () const-> std::string ;
70
71 /*!
72 ** \brief Check Box Value as text
73 **
74 ** This will return 'yes', 'no', 'maybe' depending on the
75 ** value of the check box. These are consistent with
76 ** the tri-state capable check boxes.
77 **
78 */
79 auto cb( int _index ) const-> std::string ;
80
81 /*!
82 ** \brief Check Box Value as Translated text
83 **
84 ** This will return the 'translated' yes, no, maybe of the
85 ** check-box values. For English this can translate to
86 ** 'yes' (paid), 'no' (not paid), and 'pen' (pending)
87 ** payments.
88 **
89 ** \code
90 ** <message id="gcw.billPay.tableView.yes" >yes</message>
91 ** <message id="gcw.billPay.tableView.maybe" >pen</message>
92 ** <message id="gcw.billPay.tableView.no" >no</message>
93 ** \endcode
94 **
95 ** This will also satisfy the requirements for multi-language
96 ** translations.
97 **
98 */
99 auto cbtr( int _index ) const-> std::string ;
100
101 auto set_accountGuid ( const Wt::WString & _value )-> void ;
102 auto set_dueDay ( const Wt::WString & _value )-> void ;
103 auto set_minimum ( const Wt::WString & _value )-> void ;
104 auto set_budget ( const Wt::WString & _value )-> void ;
105 auto set_nickname ( const Wt::WString & _value )-> void ;
106 auto set_group ( const Wt::WString & _value )-> void ;
107 auto set_limit ( const Wt::WString & _value )-> void ;
108 auto set_actual ( const Wt::WString & _value )-> void ;
109 auto set_url ( const Wt::WString & _value )-> void ;
110 auto set_ap ( const Wt::WString & _value )-> void ;
111 auto set_isActive ( const Wt::WString & _value )-> void ;
112 auto set_isVisible ( const Wt::WString & _value )-> void ;
113 auto set_autoPay ( const Wt::WString & _value )-> void ;
114 auto set_payNow ( const Wt::WString & _value )-> void ;
115 auto set_last4 ( const Wt::WString & _value )-> void ;
116 auto set_note ( const Wt::WString & _value )-> void ;
117 auto set_cb( int _index, const Wt::WString & _value )-> void ;
118
119 /*!
120 ** \brief Sort Value
121 **
122 ** This produces a value suitable for sorting the model.
123 **
124 ** The model gets sorted on the 'group.dueDay' value. This
125 ** provides a nice group/sorted display of the bills-due view.
126 ** All items that share the same group appear in the same area
127 ** and subsequent items are sorted on the dueDay value.
128 */
129 auto sortValue() const -> float ;
130
131 auto setVar( const std::string & _key, const Wt::WString & _value )-> void ;
132
133 private:
134
136
137}; // endclass Item
138
139//using std::vector< Item > as Vector;
140
141 } // endnamespace BillPay {
142 } // endnamespace Gui {
143} // endnamespace GCW {
144
145#endif // __GCW_GUI_BILLPAYITEM_H___
146
147
148
Wt::Dbo::ptr< Item > Ptr
Definition BaseItem.h:39
auto set_url(const Wt::WString &_value) -> void
auto url() const -> std::string
auto set_last4(const Wt::WString &_value) -> void
auto note() const -> std::string
auto accountFullName() const -> std::string
auto limit() const -> std::string
auto setVar(const std::string &_key, const Wt::WString &_value) -> void
auto guid() const -> std::string
Item GUID.
auto payNow() const -> std::string
auto set_autoPay(const Wt::WString &_value) -> void
auto isVisible() const -> std::string
auto set_limit(const Wt::WString &_value) -> void
auto last4() const -> std::string
auto cb(int _index) const -> std::string
Check Box Value as text.
auto set_budget(const Wt::WString &_value) -> void
auto payFromGuid() const -> std::string
Pay-From Account.
auto set_note(const Wt::WString &_value) -> void
auto nickname() const -> std::string
GCW::Dbo::Vars::Item::Ptr m_varItem
auto set_actual(const Wt::WString &_value) -> void
auto set_payNow(const Wt::WString &_value) -> void
auto autoPay() const -> std::string
auto set_nickname(const Wt::WString &_value) -> void
auto dueDay() const -> std::string
auto isActive() const -> std::string
auto sortValue() const -> float
Sort Value.
auto set_ap(const Wt::WString &_value) -> void
auto accountGuid() const -> std::string
Account GUID.
auto set_group(const Wt::WString &_value) -> void
auto set_accountGuid(const Wt::WString &_value) -> void
auto minimum() const -> std::string
auto set_isVisible(const Wt::WString &_value) -> void
auto cbtr(int _index) const -> std::string
Check Box Value as Translated text.
auto actual() const -> std::string
auto group() const -> std::string
auto set_minimum(const Wt::WString &_value) -> void
auto budget() const -> std::string
auto set_dueDay(const Wt::WString &_value) -> void
auto ap() const -> std::string
auto set_cb(int _index, const Wt::WString &_value) -> void
auto set_isActive(const Wt::WString &_value) -> void
Definition App.h:18