diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-16 01:19:59 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-16 01:19:59 -0400 |
commit | 17a0ab84075c8f323dc70e82717ae6c10ae5eb56 (patch) | |
tree | 8b343b8a4295c8db11302b061fcbf43ccdc66035 | |
parent | be208ef260998615d7bf59066e851b30d3164a33 (diff) | |
download | fork-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.cc | 6 |
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; |