summaryrefslogtreecommitdiff
path: root/src/post.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-03-07 22:47:07 -0500
committerJohn Wiegley <johnw@newartisans.com>2010-03-08 01:11:48 -0500
commit75b7294a6db10e7f7b18b6aeef1aa0f568124a1d (patch)
tree0fecbc12acaacb33cf3c241c536de3347d2742ed /src/post.h
parent7e79cd82cd4ad5f87f40e6beebdb53e65bb11168 (diff)
downloadfork-ledger-75b7294a6db10e7f7b18b6aeef1aa0f568124a1d.tar.gz
fork-ledger-75b7294a6db10e7f7b18b6aeef1aa0f568124a1d.tar.bz2
fork-ledger-75b7294a6db10e7f7b18b6aeef1aa0f568124a1d.zip
Rewrite the "print" command as a custom function
There ended up being too many corner cases for the generalized formatter to handle.
Diffstat (limited to 'src/post.h')
-rw-r--r--src/post.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/post.h b/src/post.h
index 99fd841e..272cd9d8 100644
--- a/src/post.h
+++ b/src/post.h
@@ -52,10 +52,11 @@ class account_t;
class post_t : public item_t
{
public:
-#define POST_VIRTUAL 0x10 // the account was specified with (parens)
-#define POST_MUST_BALANCE 0x20 // posting must balance in the transaction
-#define POST_CALCULATED 0x40 // posting's amount was calculated
-#define POST_COST_CALCULATED 0x80 // posting's cost was calculated
+#define POST_VIRTUAL 0x08 // the account was specified with (parens)
+#define POST_MUST_BALANCE 0x10 // posting must balance in the transaction
+#define POST_CALCULATED 0x20 // posting's amount was calculated
+#define POST_COST_CALCULATED 0x40 // posting's cost was calculated
+#define POST_COST_IN_FULL 0x80 // cost specified using @@
xact_t * xact; // only set for posts of regular xacts
account_t * account;