Document reworked. Now it calculate the sum according to amount values of all its fields.
merged