diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-22 20:56:35 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-22 20:56:35 -0400 |
commit | 266dee564fe19fccb03e0d3df1c933674868431d (patch) | |
tree | daf24d96086f4846b578d959a6ca4e372b428382 /test/baseline/opt-lots-actual.test | |
parent | 1f3dba77565b976a61eca73084e51518acee1736 (diff) | |
download | fork-ledger-266dee564fe19fccb03e0d3df1c933674868431d.tar.gz fork-ledger-266dee564fe19fccb03e0d3df1c933674868431d.tar.bz2 fork-ledger-266dee564fe19fccb03e0d3df1c933674868431d.zip |
Price annotation no longer inject an implied cost
Consider the following transaction:
2010-06-22 Sample
Assets:Brokerage 10 AAPL {$30}
Assets:Brokerage
Previously, this would have been equivalent to:
2010-06-22 Sample
Assets:Brokerage 10 AAPL @ $30
Assets:Brokerage
However, this is not always what the user expects to happen. When @ is
not being used, the transaction should reflect a mere transfer of
commodities. This is now how it works, and thus the above transaction
is now equivalent to the following instead:
2010-06-22 Sample
Assets:Brokerage 10 AAPL {$30}
Assets:Brokerage -10 AAPL {$30}
Diffstat (limited to 'test/baseline/opt-lots-actual.test')
-rw-r--r-- | test/baseline/opt-lots-actual.test | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/test/baseline/opt-lots-actual.test b/test/baseline/opt-lots-actual.test index d77e4674..96141e01 100644 --- a/test/baseline/opt-lots-actual.test +++ b/test/baseline/opt-lots-actual.test @@ -4,24 +4,22 @@ D 1.0000s 2006/03/14 Opening Balances Assets:Tajer 1339829c @ 1.86590975416s - Assets:Gruulmorg 248720c {10.051463493s} + Assets:Gruulmorg 248720c @ 10.051463493s Equity:Gold -5000000s >>>1 1339829c {1.86590975416s} [2006/03/14] 1339829c {1.86590975416s} [2006/03/14] - 248720c {10.051463493s} + 248720c {10.051463493s} [2006/03/14] 1339829c {1.86590975416s} [2006/03/14] - 248720c {10.051463493s} + 248720c {10.051463493s} [2006/03/14] -1388.9h >>>2 === 0 reg --format '%(justify(scrub(total_expr), 40, 40, true))\n' --lots-actual >>>1 1339829c - 1339829c - 248720c {10.051463493s} - 1339829c - 248720c {10.051463493s} + 1588549c + 1588549c -1388.9h >>>2 === 0 |