GnuCash
5.6-150-g038405b370+
|
Holds the configuration information from the fieldmask and the data to create a single split. More...
Public Member Functions | |
StockTransactionEntry (const char *action, const char *kvp_tag) | |
StockTransactionEntry (const StockTransactionEntry &)=default | |
virtual void | set_fieldmask (FieldMask mask) |
Set up the state variables from the FieldMask. More... | |
virtual bool | enabled () const |
virtual bool | debit_side () const |
virtual void | set_capitalize (bool capitalize) |
virtual bool | input_new_balance () const |
virtual bool | do_capitalize () const |
virtual void | set_account (Account *account) |
virtual Account * | account () const |
virtual const char * | print_account () const |
virtual void | set_memo (const char *memo) |
virtual const char * | get_kvp_tag () |
virtual const char * | memo () const |
virtual void | set_value (gnc_numeric amount) |
virtual GncNumeric | value () |
virtual void | set_amount (gnc_numeric) |
virtual gnc_numeric | amount () const |
virtual bool | has_amount () const |
virtual bool | marker_split () const |
virtual void | validate_amount (Logger &) const |
virtual void | set_balance (gnc_numeric balance) |
virtual gnc_numeric | get_balance () const |
virtual void | create_split (Transaction *trans, AccountVec &commits) const |
virtual const char * | print_value () const |
virtual const char * | print_amount (gnc_numeric amt) const |
virtual std::string | amount_str_for_display () const |
Generate a string representation of the value. More... | |
virtual gnc_numeric | calculate_price () const |
Calculate the price (amount/value) for non-currency accounts. More... | |
virtual const char * | print_price () const |
Protected Attributes | |
bool | m_enabled |
bool | m_debit_side |
bool | m_allow_zero |
bool | m_allow_negative |
bool | m_input_new_balance = false |
Account * | m_account |
gnc_numeric | m_value |
const char * | m_memo |
const char * | m_action |
gnc_numeric | m_balance = gnc_numeric_zero() |
const char * | m_kvp_tag |
int | m_qof_event_handler |
Holds the configuration information from the fieldmask and the data to create a single split.
The base class is used for cash splits to currency accounts. Except as noted the functions are simple accessors and setters that don't need much documentation.
Definition at line 534 of file assistant-stock-transaction.cpp.
|
inlinevirtual |
Generate a string representation of the value.
Internally uses xaccPrintAmount, which writes to a static string, so the result is copied to a std::string to prevent it being replaced by subsequent calls.
Reimplemented in StockTransactionStockEntry.
Definition at line 613 of file assistant-stock-transaction.cpp.
|
inlinevirtual |
Calculate the price (amount/value) for non-currency accounts.
Note that multiple currencies in stock transaction s are not supported.
Reimplemented in StockTransactionStockEntry.
Definition at line 620 of file assistant-stock-transaction.cpp.
|
virtual |
Definition at line 730 of file assistant-stock-transaction.cpp.
|
virtual |
Definition at line 766 of file assistant-stock-transaction.cpp.
|
virtual |
Definition at line 709 of file assistant-stock-transaction.cpp.
|
virtual |
Set up the state variables from the FieldMask.
A | Fieldmast to configure the StockTransactionEntry. |
Reimplemented in StockTransactionFeesEntry, and StockTransactionStockEntry.
Definition at line 640 of file assistant-stock-transaction.cpp.