summaryrefslogtreecommitdiff
path: root/src/py_balance.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-05 17:40:07 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-05 17:43:28 -0500
commit5e3f3d7f4730dd2990b6b56352e4a09cdde9a234 (patch)
treed9418af372ffea3886f15f5faf562ac852a0daa9 /src/py_balance.cc
parent1bdb9330e56e49ecd660f3aafdc2d349a20e3044 (diff)
downloadfork-ledger-5e3f3d7f4730dd2990b6b56352e4a09cdde9a234.tar.gz
fork-ledger-5e3f3d7f4730dd2990b6b56352e4a09cdde9a234.tar.bz2
fork-ledger-5e3f3d7f4730dd2990b6b56352e4a09cdde9a234.zip
Report sought magnitude when balancing errors occur
Diffstat (limited to 'src/py_balance.cc')
-rw-r--r--src/py_balance.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/py_balance.cc b/src/py_balance.cc
index 60df1317..73049c99 100644
--- a/src/py_balance.cc
+++ b/src/py_balance.cc
@@ -209,6 +209,8 @@ void export_balance()
.def("commodity_amount", py_commodity_amount_0)
.def("commodity_amount", py_commodity_amount_1)
+ .def("number", &balance_t::number)
+
.def("strip_annotations", &balance_t::strip_annotations)
.def("valid", &balance_t::valid)