From 1c7de0f9e4d6372ab80a90f0ccd8ce7314466686 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 2 Mar 2009 16:39:26 -0400 Subject: Added "fixated commodity pricing" If you put '=' before an annotated commodity's price, it will cause any future market valuation of that commodity to use that price, and ignore whatever changes may have happened since in the market price. This can be useful if you are tracking gas expenses based on a standard rate which, although it changes over time, should not adjust the historical valuation of how much the gas cost at the time it was purchased: 2009/01/01 Payee Expenses:Gas 100 GAL {=$2} Liabilities:MasterCard $-200 --- test/baseline/feature-fixated-prices.test | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/baseline/feature-fixated-prices.test (limited to 'test/baseline/feature-fixated-prices.test') diff --git a/test/baseline/feature-fixated-prices.test b/test/baseline/feature-fixated-prices.test new file mode 100644 index 00000000..3b6c42dd --- /dev/null +++ b/test/baseline/feature-fixated-prices.test @@ -0,0 +1,18 @@ +reg -V gas +<<< +2009/01/01 Payee + Expenses:Gas 100 GAL {=$2} + Liabilities:MasterCard $-200 + +2009/01/01 Payee + Expenses:Gas 100 FOO {$2} + Liabilities:MasterCard $-200 + +P 2009/03/01 12:00:00 GAL $3 +P 2009/03/01 12:00:00 FOO $3 +>>>1 +09-Jan-01 Payee Expenses:Gas $200 $200 +09-Jan-01 Payee Expenses:Gas $200 $400 +09-Mar-02 Commodities revalued $100 $500 +>>>2 +=== 0 -- cgit v1.2.3