diff options
author | John Wiegley <johnw@newartisans.com> | 2006-02-25 13:40:14 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:26 -0400 |
commit | 3ba15e81a40d32c1db2f284d55b39a3f3e0f341f (patch) | |
tree | 073a9253273a8fff38625cd690c483d4df7b760f /valexpr.cc | |
parent | 5874af2058d39416fc4fc85899fe95ec106c5cf4 (diff) | |
download | fork-ledger-3ba15e81a40d32c1db2f284d55b39a3f3e0f341f.tar.gz fork-ledger-3ba15e81a40d32c1db2f284d55b39a3f3e0f341f.tar.bz2 fork-ledger-3ba15e81a40d32c1db2f284d55b39a3f3e0f341f.zip |
*** no comment ***
Diffstat (limited to 'valexpr.cc')
-rw-r--r-- | valexpr.cc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -348,6 +348,8 @@ void value_expr_t::compute(value_t& result, const details_t& details) const if (right) { assert(right->kind == O_ARG); switch (right->left->kind) { + case F_NOW: + break; // already set to now case DATE: if (details.xact && transaction_has_xdata(*details.xact) && transaction_xdata_(*details.xact).date) @@ -377,6 +379,8 @@ void value_expr_t::compute(value_t& result, const details_t& details) const std::time_t moment = terminus; if (right) { switch (right->kind) { + case F_NOW: + break; // already set to now case DATE: if (details.xact && transaction_has_xdata(*details.xact) && transaction_xdata_(*details.xact).date) |