|
GnuCash c935c2f+
|
available transaction types based on the state of the account, the collection and validation of input data from the StockAssistantView and conversion of the data into a GnuCash transaction. More...
Public Member Functions | |
| StockAssistantModel (Account *account) | |
| bool | maybe_reset_txn_types () |
| Selects a TxnTypevec for the user to pick from depending on whether the account has a positive, negative, or zero share balance on the selected transaction date. | |
| const std::optional< TxnTypeVec > & | get_txn_types () |
| Accessor function. | |
| bool | set_txn_type (guint type_idx) |
| Setter. | |
| bool | txn_type_valid () |
| Accessor. | |
| void | set_transaction_date (time64 date) |
| Setter. | |
| void | set_transaction_desc (const char *desc) |
| Setter. | |
| const std::optional< TxnTypeInfo > & | txn_type () |
| Accessor. | |
| std::string | get_new_amount_str () const |
| Accessor. | |
| StockTransactionEntry * | stock_entry () |
| Accessor. | |
| StockTransactionEntry * | cash_entry () |
| Accessor. | |
| StockTransactionEntry * | fees_entry () |
| Accessor. | |
| StockTransactionEntry * | dividend_entry () |
| Accessor. | |
| StockTransactionEntry * | capgains_entry () |
| Accessor. | |
| Logger & | logger () |
| Accessor. | |
| std::tuple< bool, std::string, EntryVec > | generate_list_of_splits () |
| Generate the proposed list of splits. | |
| std::tuple< bool, Transaction * > | create_transaction () |
| Generate a GnuCash transaction from the active entries. | |
| Account * | account () |
available transaction types based on the state of the account, the collection and validation of input data from the StockAssistantView and conversion of the data into a GnuCash transaction.
Definition at line 1101 of file assistant-stock-transaction.cpp.
|
inline |
Definition at line 1125 of file assistant-stock-transaction.cpp.
|
inline |
Definition at line 1143 of file assistant-stock-transaction.cpp.
|
inline |
Definition at line 1238 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1215 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1200 of file assistant-stock-transaction.cpp.
| std::tuple< bool, Transaction * > StockAssistantModel::create_transaction | ( | ) |
Generate a GnuCash transaction from the active entries.
Definition at line 1436 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1210 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1205 of file assistant-stock-transaction.cpp.
| std::tuple< bool, std::string, EntryVec > StockAssistantModel::generate_list_of_splits | ( | ) |
Generate the proposed list of splits.
This is used to display the proposal to the user in the last page of the assistant and to select on which entries to call create_split.
Definition at line 1314 of file assistant-stock-transaction.cpp.
| std::string StockAssistantModel::get_new_amount_str | ( | ) | const |
Accessor.
return string representing the new balance in a split/reverse split transaction.
|
inline |
Accessor function.
Definition at line 1159 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1220 of file assistant-stock-transaction.cpp.
| bool StockAssistantModel::maybe_reset_txn_types | ( | ) |
Selects a TxnTypevec for the user to pick from depending on whether the account has a positive, negative, or zero share balance on the selected transaction date.
Definition at line 1247 of file assistant-stock-transaction.cpp.
|
inline |
Setter.
| time64 | for the transaction date. |
Definition at line 1175 of file assistant-stock-transaction.cpp.
|
inline |
Setter.
| null-terminated | string containing the transaction description. |
Definition at line 1180 of file assistant-stock-transaction.cpp.
| bool StockAssistantModel::set_txn_type | ( | guint | type_idx | ) |
Setter.
| the | index into the current Transaction Types indicating the selection. |
Definition at line 1264 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1195 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1185 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1170 of file assistant-stock-transaction.cpp.