Revert behavior of 40ab813080

This commit is contained in:
John Wiegley 2012-02-26 16:42:01 -06:00
parent 7553df5600
commit bb0c534414
2 changed files with 7 additions and 4 deletions

View file

@ -176,11 +176,14 @@ namespace {
string amt; string amt;
if (post->amount_expr) { if (post->amount_expr) {
amt = post->amount_expr->text(); amt = post->amount_expr->text();
} } else
else if (! (count == 2 && index == 2 && #if 0
if (! (count == 2 && index == 2 &&
(*xact.posts.begin())->amount.commodity() == (*xact.posts.begin())->amount.commodity() ==
post->amount.commodity() && post->amount.commodity() &&
! (*xact.posts.begin())->cost && ! post->cost)) { ! (*xact.posts.begin())->cost && ! post->cost))
#endif
{
int amount_width = int amount_width =
(report.HANDLER(amount_width_).specified ? (report.HANDLER(amount_width_).specified ?
report.HANDLER(amount_width_).value.to_int() : 12); report.HANDLER(amount_width_).value.to_int() : 12);

View file

@ -5,5 +5,5 @@
test equity assets test equity assets
2007/02/02 Opening Balances 2007/02/02 Opening Balances
Assets:Investments:Vanguard:VMMXX 0.350 VMMXX Assets:Investments:Vanguard:VMMXX 0.350 VMMXX
Equity:Opening Balances Equity:Opening Balances -0.350 VMMXX
end test end test