summaryrefslogtreecommitdiff
path: root/valexpr.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-20 02:51:14 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-20 02:51:14 -0400
commit19de076b4d2419411363c82d216e6b71ff96b18a (patch)
treed23875db0632c91ab8df38b33404335196d25a15 /valexpr.cc
parent3934d558e120f15f481daf4083b1e91918fb7495 (diff)
downloadfork-ledger-19de076b4d2419411363c82d216e6b71ff96b18a.tar.gz
fork-ledger-19de076b4d2419411363c82d216e6b71ff96b18a.tar.bz2
fork-ledger-19de076b4d2419411363c82d216e6b71ff96b18a.zip
updated gnucash support
Diffstat (limited to 'valexpr.cc')
-rw-r--r--valexpr.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/valexpr.cc b/valexpr.cc
index 536b2255..d4c31085 100644
--- a/valexpr.cc
+++ b/valexpr.cc
@@ -187,8 +187,8 @@ void value_expr_t::compute(value_t& result, const details_t& details,
case INDEX:
if (details.xact)
result = details.xact->index + 1;
- else
- result = 0U;
+ else if (details.account)
+ result = details.account->count;
break;
case DEPTH:
@@ -424,8 +424,6 @@ value_expr_t * parse_value_term(std::istream& in)
case 'V': node.reset(parse_value_term("P(O,d)")); break;
case 'g': node.reset(parse_value_expr("v-c")); break;
case 'G': node.reset(parse_value_expr("V-C")); break;
- case 'o': node.reset(parse_value_expr("d-b")); break;
- case 'w': node.reset(parse_value_expr("e-d")); break;
// Functions
case '-':