summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-16 01:19:59 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-16 01:19:59 -0400
commit17a0ab84075c8f323dc70e82717ae6c10ae5eb56 (patch)
tree8b343b8a4295c8db11302b061fcbf43ccdc66035
parentbe208ef260998615d7bf59066e851b30d3164a33 (diff)
downloadfork-ledger-17a0ab84075c8f323dc70e82717ae6c10ae5eb56.tar.gz
fork-ledger-17a0ab84075c8f323dc70e82717ae6c10ae5eb56.tar.bz2
fork-ledger-17a0ab84075c8f323dc70e82717ae6c10ae5eb56.zip
Propagate xact effective date in two places
-rw-r--r--src/filters.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/filters.cc b/src/filters.cc
index 57ab2e7c..d345ee0c 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -574,7 +574,8 @@ void set_comm_as_payee::operator()(xact_t& xact)
{
entry_temps.push_back(*xact.entry);
entry_t& entry = entry_temps.back();
- entry._date = xact.date();
+ entry._date = xact._date;
+ entry._date_eff = xact._date_eff;
entry.code = xact.entry->code;
if (xact.amount.commodity())
@@ -597,7 +598,8 @@ void set_code_as_payee::operator()(xact_t& xact)
{
entry_temps.push_back(*xact.entry);
entry_t& entry = entry_temps.back();
- entry._date = xact.date();
+ entry._date = xact._date;
+ entry._date_eff = xact._date_eff;
if (xact.entry->code)
entry.payee = *xact.entry->code;