|
GnuCash 038f90a+
|
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 1104 of file assistant-stock-transaction.cpp.
|
inline |
Definition at line 1128 of file assistant-stock-transaction.cpp.
|
inline |
Definition at line 1146 of file assistant-stock-transaction.cpp.
|
inline |
Definition at line 1241 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1218 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1203 of file assistant-stock-transaction.cpp.
| std::tuple< bool, Transaction * > StockAssistantModel::create_transaction | ( | ) |
Generate a GnuCash transaction from the active entries.
Definition at line 1439 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1213 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1208 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 1317 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 1162 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1223 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 1250 of file assistant-stock-transaction.cpp.
|
inline |
Setter.
| time64 | for the transaction date. |
Definition at line 1178 of file assistant-stock-transaction.cpp.
|
inline |
Setter.
| null-terminated | string containing the transaction description. |
Definition at line 1183 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 1267 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1198 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1188 of file assistant-stock-transaction.cpp.
|
inline |
Accessor.
Definition at line 1173 of file assistant-stock-transaction.cpp.