[storage] Factor out 'recognized amount' (bug #123)
commit12f7775968a3b65f359826305c8bba2671bd5a6d
authorSergey Yanovich <ynvich@gmail.com>
Thu, 20 Dec 2007 11:55:49 +0000 (20 13:55 +0200)
committerSergey Yanovich <ynvich@gmail.com>
Thu, 20 Dec 2007 11:55:49 +0000 (20 13:55 +0200)
treec8506f0806d6179d9e456703f8368d3a5005444a
parent0fbcf88074571761905ea77b5488d5fc859b648d
[storage] Factor out 'recognized amount' (bug #123)

We establish two important invariant:
* value only goes forward;
* non-monetary balance must always have value.

The immediate consquence is that we either recognize transfer as
revenue entirely, or not at all.
storage/aaSaveTransaction.cpp
storage/aaSaveTransaction.h