summaryrefslogtreecommitdiff
path: root/src/post.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-10 12:29:58 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-10 12:29:58 -0400
commit685b12d8d3d225498f6dfdbe7b17056684cc2ca8 (patch)
tree1077572642a7ac55f29a31d95288c79e1dc03a74 /src/post.h
parenta2bcfe4338801d1979ee859a3ce6cc289f80a5aa (diff)
downloadfork-ledger-685b12d8d3d225498f6dfdbe7b17056684cc2ca8.tar.gz
fork-ledger-685b12d8d3d225498f6dfdbe7b17056684cc2ca8.tar.bz2
fork-ledger-685b12d8d3d225498f6dfdbe7b17056684cc2ca8.zip
Allow fixated costs, as well as prices
You can now establish a fixated price automatically by way of a fixated cost. The syntax for this is: 2009/11/01 Sample Assets 1 apple @ =$0.10 Equity
Diffstat (limited to 'src/post.h')
-rw-r--r--src/post.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/post.h b/src/post.h
index 51cbad64..eef58e52 100644
--- a/src/post.h
+++ b/src/post.h
@@ -52,12 +52,13 @@ class account_t;
class post_t : public item_t
{
public:
-#define POST_VIRTUAL 0x04 // the account was specified with (parens)
-#define POST_MUST_BALANCE 0x08 // posting must balance in the transaction
-#define POST_CALCULATED 0x10 // posting's amount was calculated
-#define POST_COST_CALCULATED 0x20 // posting's cost was calculated
-#define POST_COST_IN_FULL 0x40 // cost specified using @@
-#define POST_ANONYMIZED 0x80 // a temporary, anonymous posting
+#define POST_VIRTUAL 0x0010 // the account was specified with (parens)
+#define POST_MUST_BALANCE 0x0020 // posting must balance in the transaction
+#define POST_CALCULATED 0x0040 // posting's amount was calculated
+#define POST_COST_CALCULATED 0x0080 // posting's cost was calculated
+#define POST_COST_IN_FULL 0x0100 // cost specified using @@
+#define POST_COST_FIXATED 0x0200 // cost is fixed using = indicator
+#define POST_ANONYMIZED 0x0400 // a temporary, anonymous posting
xact_t * xact; // only set for posts of regular xacts
account_t * account;