diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-20 02:51:14 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-20 02:51:14 -0400 |
commit | 19de076b4d2419411363c82d216e6b71ff96b18a (patch) | |
tree | d23875db0632c91ab8df38b33404335196d25a15 /valexpr.cc | |
parent | 3934d558e120f15f481daf4083b1e91918fb7495 (diff) | |
download | fork-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.cc | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 '-': |