diff options
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/textual.cc b/src/textual.cc index a0efd4ef..13cf8ea4 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -285,14 +285,8 @@ xact_t * parse_xact(char * line, account_t * account, entry_t * entry = NULL) per_unit_cost /= xact->amount; if (xact->amount.commodity() && - ! xact->amount.commodity().annotated) { - if (xact->entry) - xact->amount.annotate(annotation_t(per_unit_cost, - xact->entry->actual_date(), - xact->entry->code)); - else - xact->amount.annotate(annotation_t(per_unit_cost)); - } + ! xact->amount.commodity().annotated) + xact->amount.annotate(annotation_t(per_unit_cost)); DEBUG("ledger.textual.parse", "line " << linenum << ": " << "Total cost is " << *xact->cost); |