(actual_date, effective_date): Changed an assert for non-NULL to a
mere check (it happens with the 'output' command).
This commit is contained in:
parent
e22fa78e84
commit
10fc16e114
1 changed files with 2 additions and 6 deletions
|
|
@ -15,19 +15,15 @@ bool transaction_t::use_effective_date = false;
|
||||||
|
|
||||||
std::time_t transaction_t::actual_date() const
|
std::time_t transaction_t::actual_date() const
|
||||||
{
|
{
|
||||||
if (_date == 0) {
|
if (_date == 0 && entry)
|
||||||
assert(entry);
|
|
||||||
return entry->actual_date();
|
return entry->actual_date();
|
||||||
}
|
|
||||||
return _date;
|
return _date;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::time_t transaction_t::effective_date() const
|
std::time_t transaction_t::effective_date() const
|
||||||
{
|
{
|
||||||
if (_date_eff == 0) {
|
if (_date_eff == 0 && entry)
|
||||||
assert(entry);
|
|
||||||
return entry->effective_date();
|
return entry->effective_date();
|
||||||
}
|
|
||||||
return _date_eff;
|
return _date_eff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue