summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-26 16:42:01 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-26 16:42:50 -0600
commitbb0c5344145cd79fa54a92f236628eebbe6f2f68 (patch)
tree31b2362c11f73c685d474d6991960f339e25639e
parent7553df5600c89b6724e83b72c7f78e85fa090a32 (diff)
downloadfork-ledger-bb0c5344145cd79fa54a92f236628eebbe6f2f68.tar.gz
fork-ledger-bb0c5344145cd79fa54a92f236628eebbe6f2f68.tar.bz2
fork-ledger-bb0c5344145cd79fa54a92f236628eebbe6f2f68.zip
Revert behavior of 40ab81308025e9655074da37671c444b4257f867
-rw-r--r--src/print.cc9
-rw-r--r--test/baseline/opt-equity.test2
2 files changed, 7 insertions, 4 deletions
diff --git a/src/print.cc b/src/print.cc
index 6725a336..a90ea220 100644
--- a/src/print.cc
+++ b/src/print.cc
@@ -176,11 +176,14 @@ namespace {
string amt;
if (post->amount_expr) {
amt = post->amount_expr->text();
- }
- else if (! (count == 2 && index == 2 &&
+ } else
+#if 0
+ if (! (count == 2 && index == 2 &&
(*xact.posts.begin())->amount.commodity() ==
post->amount.commodity() &&
- ! (*xact.posts.begin())->cost && ! post->cost)) {
+ ! (*xact.posts.begin())->cost && ! post->cost))
+#endif
+ {
int amount_width =
(report.HANDLER(amount_width_).specified ?
report.HANDLER(amount_width_).value.to_int() : 12);
diff --git a/test/baseline/opt-equity.test b/test/baseline/opt-equity.test
index 90f4743a..d8695759 100644
--- a/test/baseline/opt-equity.test
+++ b/test/baseline/opt-equity.test
@@ -5,5 +5,5 @@
test equity assets
2007/02/02 Opening Balances
Assets:Investments:Vanguard:VMMXX 0.350 VMMXX
- Equity:Opening Balances
+ Equity:Opening Balances -0.350 VMMXX
end test