summaryrefslogtreecommitdiff
path: root/src/commodity.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-02 02:39:31 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-02 02:39:31 -0500
commit094794c640dafaab37a0b227908d8602d29f7daa (patch)
tree8e439162a8bc0cc60eea27ba1ca647d5683ba8db /src/commodity.cc
parent0a9cc833adebadc876e3e09f1c344b08b23e59f8 (diff)
downloadfork-ledger-094794c640dafaab37a0b227908d8602d29f7daa.tar.gz
fork-ledger-094794c640dafaab37a0b227908d8602d29f7daa.tar.bz2
fork-ledger-094794c640dafaab37a0b227908d8602d29f7daa.zip
Added a --european flag, to use commas for decimals
Ledger can often figure this out for itself, but this flag just makes it the default behavior. It is meant to be added to one's ~/.ledgerrc file.
Diffstat (limited to 'src/commodity.cc')
-rw-r--r--src/commodity.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commodity.cc b/src/commodity.cc
index de529ac4..689cf466 100644
--- a/src/commodity.cc
+++ b/src/commodity.cc
@@ -38,6 +38,8 @@
namespace ledger {
+bool commodity_t::base_t::european_by_default = false;
+
void commodity_t::base_t::history_t::add_price(commodity_t& source,
const datetime_t& date,
const amount_t& price,