Merge pull request #306 from maxsatula/status-behavior

Status (cleared/pending/uncleared) processing behavior
This commit is contained in:
John Wiegley 2014-06-30 11:15:06 -08:00
commit 2634013884

View file

@ -1434,8 +1434,7 @@ post_t * instance_t::parse_post(char * line,
}
if (xact &&
((xact->_state == item_t::CLEARED && post->_state != item_t::CLEARED) ||
(xact->_state == item_t::PENDING && post->_state == item_t::UNCLEARED)))
(xact->_state != item_t::UNCLEARED && post->_state == item_t::UNCLEARED))
post->set_state(xact->_state);
// Parse the account name