diff options
author | Oleg Bulatov <oleg@bulatov.me> | 2022-05-05 08:11:05 +0200 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2022-05-06 06:47:07 +0800 |
commit | 54991cc22e51733bfeadb1fdd8b3001b06df4d74 (patch) | |
tree | 98015b5e3abf3ce4352997bf1802afbc5e26e178 /test | |
parent | ed0b99fcfc37844f5d88eb7678ca23b490fd5b98 (diff) | |
download | fork-ledger-54991cc22e51733bfeadb1fdd8b3001b06df4d74.tar.gz fork-ledger-54991cc22e51733bfeadb1fdd8b3001b06df4d74.tar.bz2 fork-ledger-54991cc22e51733bfeadb1fdd8b3001b06df4d74.zip |
Fix unrounding for equity
Diffstat (limited to 'test')
-rw-r--r-- | test/regress/equity-unround.test | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/regress/equity-unround.test b/test/regress/equity-unround.test new file mode 100644 index 00000000..0fae2c9d --- /dev/null +++ b/test/regress/equity-unround.test @@ -0,0 +1,30 @@ +commodity EUR + note Euro + format 1,000.00 EUR + +2022/05/04 * Test 1 + Assets:Foo 1.0001 EUR + Income + +2022/05/04 * Test 2 + Assets:Bar 0.0002 EUR + Income + +2022/05/04 * Test 3 + Assets:Baz 3 EUR + Income + +test equity ^Assets: --unround +2022/05/04 Opening Balances + Assets:Bar 0.0002 EUR + Assets:Baz 3.00 EUR + Assets:Foo 1.0001 EUR + Equity:Opening Balances -4.0003 EUR +end test + +test reg --equity ^Assets: --unround +22-May-04 Opening Balances Assets:Bar 0.0002 EUR 0.0002 EUR + Assets:Baz 3.00 EUR 3.0002 EUR + Assets:Foo 1.0001 EUR 4.0003 EUR + Equit:Opening Balances -4.0003 EUR 0 +end test |