Made "convert" command insensitive to null amounts
This commit is contained in:
parent
5da1e7756d
commit
6f73a4db0c
1 changed files with 14 additions and 12 deletions
|
|
@ -97,6 +97,7 @@ value_t convert_command(call_scope_t& args)
|
||||||
}
|
}
|
||||||
|
|
||||||
bool matched = false;
|
bool matched = false;
|
||||||
|
if (! xact->posts.front()->amount.is_null()) {
|
||||||
post_map_t::iterator i = post_map.find(- xact->posts.front()->amount);
|
post_map_t::iterator i = post_map.find(- xact->posts.front()->amount);
|
||||||
if (i != post_map.end()) {
|
if (i != post_map.end()) {
|
||||||
std::list<post_t *>& post_list((*i).second);
|
std::list<post_t *>& post_list((*i).second);
|
||||||
|
|
@ -112,6 +113,7 @@ value_t convert_command(call_scope_t& args)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (matched) {
|
if (matched) {
|
||||||
DEBUG("convert.csv", "Ignored xact with code: " << *xact->code);
|
DEBUG("convert.csv", "Ignored xact with code: " << *xact->code);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue