diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-27 15:32:38 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-27 15:32:38 -0400 |
commit | cbd66ba1c9805f03a5682f78ee1f830de8266fa4 (patch) | |
tree | 13a440d9a2428e1818d5e3e0f69540dbc7aa0a37 /src/xact.cc | |
parent | f881bf131985b52566e606f34b07f5f3c4df244c (diff) | |
download | fork-ledger-cbd66ba1c9805f03a5682f78ee1f830de8266fa4.tar.gz fork-ledger-cbd66ba1c9805f03a5682f78ee1f830de8266fa4.tar.bz2 fork-ledger-cbd66ba1c9805f03a5682f78ee1f830de8266fa4.zip |
Changed "priced" to "cost_calculated" for clarity
Diffstat (limited to 'src/xact.cc')
-rw-r--r-- | src/xact.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xact.cc b/src/xact.cc index e9d22da1..0db98c9f 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -92,7 +92,7 @@ bool xact_base_t::finalize() "annotation price = " << *post->amount.annotation().price); DEBUG("xact.finalize", "amount = " << post->amount); DEBUG("xact.finalize", "priced cost = " << *post->cost); - post->add_flags(POST_PRICED); + post->add_flags(POST_COST_CALCULATED); add_or_set_value(balance, post->cost->rounded().reduced()); } else { // If the amount was a cost, it very likely has the "keep_precision" @@ -185,7 +185,7 @@ bool xact_base_t::finalize() else if (! top_post) top_post = post; - if (post->cost && ! post->has_flags(POST_PRICED)) { + if (post->cost && ! post->has_flags(POST_COST_CALCULATED)) { saw_cost = true; break; } @@ -240,7 +240,7 @@ bool xact_base_t::finalize() if (post->must_balance() && amt.commodity() == comm) { balance -= amt; post->cost = per_unit_cost * amt; - post->add_flags(POST_PRICED); + post->add_flags(POST_COST_CALCULATED); balance += *post->cost; DEBUG("xact.finalize", "set post->cost to = " << *post->cost); |