GnuCash c935c2f+
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
DraftTransaction Struct Reference

The final form of a transaction to import before it is passed on to the generic importer. More...

#include <gnc-imp-props-tx.hpp>

Public Member Functions

 DraftTransaction (Transaction *tx)
 

Data Fields

Transaction * trans
 
std::optional< GncNumericm_price
 
std::optional< std::string > m_taction
 
std::optional< std::string > m_tmemo
 
std::optional< GncNumericm_tamount
 
std::optional< Account * > m_taccount
 
std::optional< char > m_trec_state
 
std::optional< GncDatem_trec_date
 
std::optional< std::string > void_reason
 

Detailed Description

The final form of a transaction to import before it is passed on to the generic importer.

Parameters
transa possibly incomplete transaction created based on the data collected from the PreTrans and PreSplit records
m_price...values harvested from the import data in single line mode and for which the transfer split could not yet be created (due to a missing transfer account value). These parameters will be passed on to the generic importer which can use this to complete information on the balancing split for an incomplete transaction

Definition at line 137 of file gnc-imp-props-tx.hpp.

Constructor & Destructor Documentation

◆ DraftTransaction()

DraftTransaction::DraftTransaction ( Transaction *  tx)
inline

Definition at line 139 of file gnc-imp-props-tx.hpp.

139: trans(tx) {}

◆ ~DraftTransaction()

DraftTransaction::~DraftTransaction ( )
inline

Definition at line 140 of file gnc-imp-props-tx.hpp.

140{ if (trans) { xaccTransDestroy (trans); trans = nullptr; } }
void xaccTransDestroy(Transaction *trans)
Destroys a transaction.

Field Documentation

◆ m_price

std::optional<GncNumeric> DraftTransaction::m_price

Definition at line 143 of file gnc-imp-props-tx.hpp.

◆ m_taccount

std::optional<Account*> DraftTransaction::m_taccount

Definition at line 147 of file gnc-imp-props-tx.hpp.

◆ m_taction

std::optional<std::string> DraftTransaction::m_taction

Definition at line 144 of file gnc-imp-props-tx.hpp.

◆ m_tamount

std::optional<GncNumeric> DraftTransaction::m_tamount

Definition at line 146 of file gnc-imp-props-tx.hpp.

◆ m_tmemo

std::optional<std::string> DraftTransaction::m_tmemo

Definition at line 145 of file gnc-imp-props-tx.hpp.

◆ m_trec_date

std::optional<GncDate> DraftTransaction::m_trec_date

Definition at line 149 of file gnc-imp-props-tx.hpp.

◆ m_trec_state

std::optional<char> DraftTransaction::m_trec_state

Definition at line 148 of file gnc-imp-props-tx.hpp.

◆ trans

Transaction* DraftTransaction::trans

Definition at line 141 of file gnc-imp-props-tx.hpp.

◆ void_reason

std::optional<std::string> DraftTransaction::void_reason

Definition at line 151 of file gnc-imp-props-tx.hpp.


The documentation for this struct was generated from the following file: