Made "convert" command insensitive to null amounts

This commit is contained in:
John Wiegley 2010-06-18 07:27:18 -04:00
parent 5da1e7756d
commit 6f73a4db0c

View file

@ -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);