From 266dee564fe19fccb03e0d3df1c933674868431d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 22 Jun 2010 20:56:35 -0400 Subject: 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} --- test/baseline/opt-lots-actual.test | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'test/baseline/opt-lots-actual.test') 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 -- cgit v1.2.3