hledger/hledger-lib
Simon Michael b8d75b7728 balance, etc: fix amount style loss (fixes #230, #276)
hledger-lib-0.24's "track the commodity of zero amounts when
possible (useful eg for hledger-web's multi-commodity charts)" preserved
the commodity when normalising a zero mixed amount, but not the amount
style. This showed up as occasionally incorrect amount style (commodity
symbol placement, decimal point character, etc.) in balance reports with
certain journals, like this:

  $ hledger bal
              €3000.00  a     <------ not using the canonical € style
              4000,58€    1
             -1000,58€    D
             -3000,00€  e
  --------------------
                     0

I thought this would require a big rewrite of amount arithmetic, but it
seems that just being a little more careful is enough. When normalising
a mixed amount containing multiple zeros in the same commodity, we now
preserve the last zero with its amount style, instead of replacing them
all with a new one.
2015-09-02 16:21:56 -07:00
..
Hledger balance, etc: fix amount style loss (fixes #230, #276) 2015-09-02 16:21:56 -07:00
tests Add cabal testsuite for hledger-lib. 2013-05-15 15:56:01 -04:00
CHANGES 0.26 changelogs/release notes 2015-07-12 17:58:02 -07:00
hledger-lib.cabal fix cabal file regression breaking GHC<7.10 (#280) 2015-08-21 12:19:43 -07:00
Hledger.hs promote Hledger.Query to second level 2012-05-16 07:57:10 +00:00
LICENSE split off hledger-lib package, containing core types & utils 2010-03-22 01:44:59 +00:00
package.yaml lib: split up Utils more 2015-08-19 20:53:50 -07:00
Setup.hs Revert "remove Setup.hs files again, fixing a yesod devel warning" 2014-05-24 13:39:09 -07:00