# * commodity styles

# ** 1. Test whether only the style without a symbol is changed
<
2021-07-09 no symbol
    (a)   1234

2021-07-09 Euro
    (a)    EUR 1.234,56

2021-07-09 Dollar
    (a)      $ 1,234.56

$ hledger -f- print -c '10 00'
2021-07-09 no symbol
    (a)          12 34.

2021-07-09 Euro
    (a)    EUR 1.234,56

2021-07-09 Dollar
    (a)      $ 1,234.56

>=

# ** 2. Test whether setting the style of multiple symbols work
<
2021-07-09 Euro
    (a)    EUR 1,234.56

2021-07-09 Dollar
    (a)      $ 1.234,56

$ hledger -f- print -c 'EUR 1.000,00' -c '$ 1,000.00'
2021-07-09 Euro
    (a)    EUR 1.234,56

2021-07-09 Dollar
    (a)      $ 1,234.56

>=

# ** 3. When setting the same symbol multiple times, the last one is in effect
<
2021-07-09 Euro
    (a)    EUR 1234

$ hledger -f- print -c 'EUR 1.000,00' -c 'EUR 1,000.00'
2021-07-09 Euro
    (a)      EUR 1,234.

>=

# ** 4. Commodity styles are applied to quantity and price of a commodity (except for precision)
<
2021-09-12 buy A
    (a)    1,234 A @ 1234,56 $

$ hledger -f- print -c '$1,000.0' -c 'A1000.0'
2021-09-12 buy A
    (a)    A1.234 @ $1,234.56

>=
