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

« back to all changes in this revision

Viewing changes to src/pool.cc

  • 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:
267
267
  // Do not record commodity exchanges where amount's commodity has a
268
268
  // fixated price, since this does not establish a market value for the
269
269
  // base commodity.
270
 
  if (! per_unit_cost.is_realzero() &&
 
270
  if (add_price &&
 
271
      ! per_unit_cost.is_realzero() &&
271
272
      (current_annotation == NULL ||
272
273
       ! (current_annotation->price &&
273
274
          current_annotation->has_flags(ANNOTATION_PRICE_FIXATED))) &&