Added the 'note' value expression identifier.
This commit is contained in:
parent
5ec2b74f56
commit
24e64c202e
1 changed files with 6 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ namespace {
|
||||||
}
|
}
|
||||||
|
|
||||||
value_t get_note(xact_t& xact) {
|
value_t get_note(xact_t& xact) {
|
||||||
return string_value(xact.note ? *xact.note : ":NOTELESS:");
|
return string_value(xact.note ? *xact.note : empty_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
value_t get_account(call_scope_t& scope)
|
value_t get_account(call_scope_t& scope)
|
||||||
|
|
@ -212,6 +212,11 @@ expr_t::ptr_op_t xact_t::lookup(const string& name)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'n':
|
||||||
|
if (name == "note")
|
||||||
|
return WRAP_FUNCTOR(get_wrapper<&get_note>);
|
||||||
|
break;
|
||||||
|
|
||||||
case 'p':
|
case 'p':
|
||||||
if (name == "pending")
|
if (name == "pending")
|
||||||
return WRAP_FUNCTOR(get_wrapper<&get_pending>);
|
return WRAP_FUNCTOR(get_wrapper<&get_pending>);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue