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 );
44
45 auto bpGuid() const-> const std::string & { return m_bpGuid; }
46
47 auto loadData()-> void ;
48 auto saveData()-> bool ;
49
50 auto paymentDate() const-> std::string ;
51
52 private:
53
54 auto table()-> Wt::WTable * { return m_table; }
55
56 /*!
57 ** \brief Last Transaction
58 **
59 */
61
62 /*!
63 ** \brief Last Split
64 **
65 ** This returns the last split that was used on a bill
66 ** pay for this account. This returns the split that
67 ** contains the 'other' account number used in the
68 ** bill pay. That allows us to post the account number
69 ** as a memory-recall function for setting up a new
70 ** payment.
71 **
72 */
74
75 /*!
76 ** \brief Value
77 **
78 ** This returns +val or -val depending on if the value
79 ** was entered in to the 'debit' 'credit' column.
80 **
81 */
82 auto value()-> GCW_NUMERIC ;
83
84 std::string m_bpGuid ;
91// Wt::WLineEdit * m_debit = nullptr ;
94
95 std::vector< std::vector< Wt::WFormWidget * > > m_tableWidgets ;
96
97}; // endclass PaymentWidget
98
99/*!
100** \brief Edit Widget Dialog
101**
102** Bill Pay Payment Form editor dialog.
103**
104*/
106: public Wt::WDialog
107{
108 public:
109
110 PaymentWidgetDialog( const std::string & _bpGuid );
111
112 auto paymentDate() const-> std::string ;
113
114 private:
115
116 auto saveData()-> void ;
117
119
120}; // endclass PaymentWidgetDialog
121
122 } // endnamespace BillPay {
123 } // endnamespace Gui {
124} // endnamespace GCW {
125
126#endif // __GUI_BILLPAY_PAYMENTWIDGET_H___
127
128
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:38
Definition App.h:18