rename payee_mappings to payee_alias_mappings
(and similar renames) in preparation for payee_uuid_mappings
This commit is contained in:
parent
973cda8d78
commit
bcb28b066f
4 changed files with 39 additions and 39 deletions
|
|
@ -186,7 +186,7 @@ xact_t * csv_reader::read_xact(bool rich_data)
|
||||||
|
|
||||||
case FIELD_PAYEE: {
|
case FIELD_PAYEE: {
|
||||||
bool found = false;
|
bool found = false;
|
||||||
foreach (payee_mapping_t& value, context.journal->payee_mappings) {
|
foreach (payee_alias_mapping_t& value, context.journal->payee_alias_mappings) {
|
||||||
DEBUG("csv.mappings", "Looking for payee mapping: " << value.first);
|
DEBUG("csv.mappings", "Looking for payee mapping: " << value.first);
|
||||||
if (value.first.match(field)) {
|
if (value.first.match(field)) {
|
||||||
xact->payee = value.second;
|
xact->payee = value.second;
|
||||||
|
|
|
||||||
|
|
@ -249,7 +249,7 @@ string journal_t::register_payee(const string& name, xact_t * xact)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (payee_mapping_t& value, payee_mappings) {
|
foreach (payee_alias_mapping_t& value, payee_alias_mappings) {
|
||||||
if (value.first.match(name)) {
|
if (value.first.match(name)) {
|
||||||
payee = value.second;
|
payee = value.second;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -61,8 +61,8 @@ class parse_context_stack_t;
|
||||||
typedef std::list<xact_t *> xacts_list;
|
typedef std::list<xact_t *> xacts_list;
|
||||||
typedef std::list<auto_xact_t *> auto_xacts_list;
|
typedef std::list<auto_xact_t *> auto_xacts_list;
|
||||||
typedef std::list<period_xact_t *> period_xacts_list;
|
typedef std::list<period_xact_t *> period_xacts_list;
|
||||||
typedef std::pair<mask_t, string> payee_mapping_t;
|
typedef std::pair<mask_t, string> payee_alias_mapping_t;
|
||||||
typedef std::list<payee_mapping_t> payee_mappings_t;
|
typedef std::list<payee_alias_mapping_t> payee_alias_mappings_t;
|
||||||
typedef std::pair<mask_t, account_t *> account_mapping_t;
|
typedef std::pair<mask_t, account_t *> account_mapping_t;
|
||||||
typedef std::list<account_mapping_t> account_mappings_t;
|
typedef std::list<account_mapping_t> account_mappings_t;
|
||||||
typedef std::map<string, account_t *> accounts_map;
|
typedef std::map<string, account_t *> accounts_map;
|
||||||
|
|
@ -133,7 +133,7 @@ public:
|
||||||
bool day_break;
|
bool day_break;
|
||||||
bool recursive_aliases;
|
bool recursive_aliases;
|
||||||
bool no_aliases;
|
bool no_aliases;
|
||||||
payee_mappings_t payee_mappings;
|
payee_alias_mappings_t payee_alias_mappings;
|
||||||
account_mappings_t account_mappings;
|
account_mappings_t account_mappings;
|
||||||
accounts_map account_aliases;
|
accounts_map account_aliases;
|
||||||
account_mappings_t payees_for_unknown_accounts;
|
account_mappings_t payees_for_unknown_accounts;
|
||||||
|
|
|
||||||
|
|
@ -1041,8 +1041,8 @@ void instance_t::payee_directive(char * line)
|
||||||
void instance_t::payee_alias_directive(const string& payee, string alias)
|
void instance_t::payee_alias_directive(const string& payee, string alias)
|
||||||
{
|
{
|
||||||
trim(alias);
|
trim(alias);
|
||||||
context.journal->payee_mappings
|
context.journal->payee_alias_mappings
|
||||||
.push_back(payee_mapping_t(mask_t(alias), payee));
|
.push_back(payee_alias_mapping_t(mask_t(alias), payee));
|
||||||
}
|
}
|
||||||
|
|
||||||
void instance_t::commodity_directive(char * line)
|
void instance_t::commodity_directive(char * line)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue