summaryrefslogtreecommitdiff
path: root/walk.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-24 01:41:22 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:31 -0400
commit44561c1c1d233d9432de319a71b44a3e05275d49 (patch)
tree3b9fa53fa4bd0e50e0890f6aafea69533e89832c /walk.h
parent964e74e333cb20d3519be64f79e19224f2bcc84e (diff)
downloadfork-ledger-44561c1c1d233d9432de319a71b44a3e05275d49.tar.gz
fork-ledger-44561c1c1d233d9432de319a71b44a3e05275d49.tar.bz2
fork-ledger-44561c1c1d233d9432de319a71b44a3e05275d49.zip
Further refinement of commodity lot information.
Diffstat (limited to 'walk.h')
-rw-r--r--walk.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/walk.h b/walk.h
index 505d27a7..25a36b4e 100644
--- a/walk.h
+++ b/walk.h
@@ -579,6 +579,22 @@ class set_comm_as_payee : public item_handler<transaction_t>
virtual void operator()(transaction_t& xact);
};
+class set_code_as_payee : public item_handler<transaction_t>
+{
+ std::list<entry_t> entry_temps;
+ std::list<transaction_t> xact_temps;
+
+ public:
+ set_code_as_payee(item_handler<transaction_t> * handler)
+ : item_handler<transaction_t>(handler) {}
+
+ ~set_code_as_payee() {
+ clear_entries_transactions(entry_temps);
+ }
+
+ virtual void operator()(transaction_t& xact);
+};
+
class dow_transactions : public subtotal_transactions
{
transactions_list days_of_the_week[7];