GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
PaymentWidget.h
Go to the documentation of this file.
1#line 2 "src/Gui/BillPay/PaymentWidget.h"
2
3#ifndef __GUI_BILLPAY_PAYMENTWIDGET_H___
4#define __GUI_BILLPAY_PAYMENTWIDGET_H___
5
6#include <Wt/WCheckBox.h>
7#include <Wt/WComboBox.h>
8#include <Wt/WContainerWidget.h>
9#include <Wt/WDateEdit.h>
10#include <Wt/WDialog.h>
11#include <Wt/WImage.h>
12#include <Wt/WLabel.h>
13#include <Wt/WLineEdit.h>
14#include <Wt/WSpinBox.h>
15#include <Wt/WPushButton.h>
16#include <Wt/WTable.h>
17#include <Wt/WTemplate.h>
18#include <Wt/WTabWidget.h>
19#include <Wt/WText.h>
20#include <Wt/WTextArea.h>
21#include <Wt/WTextEdit.h>
22
23#include "../AccountComboBox.h"
24#include "../AccountRegister/LineEdit.h"
25#include "../../Dbo/Transactions/Transactions.h"
26#include "Item.h"
27
28namespace GCW {
29 namespace Gui {
30 namespace BillPay {
31
32/*!
33** \brief Payment Widget
34**
35** This will pop a dialog to accept a payment
36**
37*/
40{
41 public:
42
43 PaymentWidget( const std::string & _bpGuid );
45 {
46 std::cout << __FILE__ << ":" << __LINE__ << " ~PaymentWidget(" + m_bpGuid + ")" << std::endl;
47 }
48
49
50 auto bpGuid() const-> const std::string & { return m_bpGuid; }
51
52 auto loadData()-> void ;
53 auto saveData()-> bool ;
54
55 auto paymentDate() const-> std::string ;
56
57 private:
58
59 auto table()-> Wt::WTable * { return m_table; }
60
61 /*!
62 ** \brief Last Transaction
63 **
64 */
66
67 /*!
68 ** \brief Last Split
69 **
70 ** This returns the last split that was used on a bill
71 ** pay for this account. This returns the split that
72 ** contains the 'other' account number used in the
73 ** bill pay. That allows us to post the account number
74 ** as a memory-recall function for setting up a new
75 ** payment.
76 **
77 */
79
80 /*!
81 ** \brief Value
82 **
83 ** This returns +val or -val depending on if the value
84 ** was entered in to the 'debit' 'credit' column.
85 **
86 */
87 auto value()-> GCW_NUMERIC ;
88
89 std::string m_bpGuid ;
96// Wt::WLineEdit * m_debit = nullptr ;
99
100 std::vector< std::vector< Wt::WFormWidget * > > m_tableWidgets ;
101
102}; // endclass PaymentWidget
103
104/*!
105** \brief Edit Widget Dialog
106**
107** Bill Pay Payment Form editor dialog.
108**
109*/
111: public Wt::WDialog
112{
113 public:
114
115 PaymentWidgetDialog( const std::string & _bpGuid );
116
117 auto paymentDate() const-> std::string ;
118
119 private:
120
121 auto saveData()-> void ;
122
124
125}; // endclass PaymentWidgetDialog
126
127 } // endnamespace BillPay {
128 } // endnamespace Gui {
129} // endnamespace GCW {
130
131#endif // __GUI_BILLPAY_PAYMENTWIDGET_H___
132
133
Wt::Dbo::ptr< Item > Ptr
Definition BaseItem.h:39
Wt::Dbo::ptr< Item > Ptr
auto paymentDate() const -> std::string
auto lastSplit() -> GCW::Dbo::Splits::Item::Ptr
Last Split.
std::vector< std::vector< Wt::WFormWidget * > > m_tableWidgets
auto table() -> Wt::WTable *
auto bpGuid() const -> const std::string &
AccountRegister::SuggestionEdit * m_acct
auto value() -> GCW_NUMERIC
Value.
auto paymentDate() const -> std::string
auto lastTx() -> GCW::Dbo::Transactions::Item::Ptr
Last Transaction.
Widget * addNew(Args &&...args)
#define GCW_NUMERIC
Internal Numeric Type.
Definition gcwglobal.h:40
Definition App.h:18