Exemplo n.º 1
0
        public override void Handle(Post post)
        {
            // If we've reached a new xact, report on the subtotal
            // accumulated thus far.
            if (LastXact != post.Xact && Count > 0)
            {
                ReportSubtotal();
            }

            Subtotal = post.AddToValue(Subtotal, AmountExpr);

            ComponentPosts.Add(post);

            LastXact = post.Xact;
            LastPost = post;
            Count++;
        }