~ubuntu-branches/ubuntu/wily/ledger/wily

« back to all changes in this revision

Viewing changes to src/post.h

  • Committer: Package Import Robot
  • Author(s): David Bremner
  • Date: 2014-10-08 19:20:38 UTC
  • mfrom: (1.1.3) (9.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20141008192038-py5cxm93rdt3x2uz
Tags: 3.1+dfsg1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
#define POST_COST_FIXATED    0x0200 // cost is fixed using = indicator
61
61
#define POST_COST_VIRTUAL    0x0400 // cost is virtualized: (@)
62
62
#define POST_ANONYMIZED      0x0800 // a temporary, anonymous posting
 
63
#define POST_DEFERRED        0x1000 // the account was specified with <angles>
63
64
 
64
65
  xact_t *    xact;             // only set for posts of regular xacts
65
66
  account_t * account;
67
68
  amount_t             amount;  // can be null until finalization
68
69
  optional<expr_t>     amount_expr;
69
70
  optional<amount_t>   cost;
 
71
  optional<amount_t>   given_cost;
70
72
  optional<amount_t>   assigned_amount;
71
73
  optional<datetime_t> checkin;
72
74
  optional<datetime_t> checkout;
203
205
  mutable optional<xdata_t> xdata_;
204
206
 
205
207
  bool has_xdata() const {
 
208
#if BOOST_VERSION >= 105600
 
209
    return xdata_ != NULL;
 
210
#else
206
211
    return xdata_;
 
212
#endif
207
213
  }
208
214
  void clear_xdata() {
209
215
    xdata_ = none;