GnuCash
5.6-150-g038405b370+
|
Public Member Functions | |
GncPreTrans (int date_format, bool multi_split) | |
void | set (GncTransPropType prop_type, const std::string &value) |
void | set_date_format (int date_format) |
void | set_multi_split (bool multi_split) |
void | reset (GncTransPropType prop_type) |
StrVec | verify_essentials (void) |
std::shared_ptr< DraftTransaction > | create_trans (QofBook *book, gnc_commodity *currency) |
bool | is_part_of (std::shared_ptr< GncPreTrans > parent) |
Check whether the harvested transaction properties for this instance match those of another one (the "parent"). More... | |
std::optional< std::string > | get_void_reason () |
ErrMap | errors () |
void | reset_cross_split_counters () |
bool | is_multi_currency () |
Friends | |
class | GncPreSplit |
Definition at line 154 of file gnc-imp-props-tx.hpp.
bool GncPreTrans::is_part_of | ( | std::shared_ptr< GncPreTrans > | parent | ) |
Check whether the harvested transaction properties for this instance match those of another one (the "parent").
Note this function is not symmetrical. This instance can have empty properties and still be considered part of the parent if the other properties match the parent's. A fully empty instance will equally be considered part of the parent.
This function is intended to discover multi-split transaction lines in an import file where the first line defines the transaction (with a first split) and subsequent lines add splits. These subsequent lines can either have all transaction related columns be empty or the same as the first line.
parent | the parent transaction property object to test against |
Definition at line 361 of file gnc-imp-props-tx.cpp.