Class CalculateContingentTotalServiceImpl

java.lang.Object
ch.tocco.nice2.optional.contingent.impl.services.CalculateContingentTotalServiceImpl
All Implemented Interfaces:
CalculateContingentTotalService

@Component public class CalculateContingentTotalServiceImpl extends Object implements CalculateContingentTotalService
Calculates the Totals on as well Movements as Contingents Takes a Tuple2 of Entity (Contingent) and Iterable<Entity> (all related Movements) as parameter. 1. Calculates the Movement-Total of every Movement that was passed to this task 2. Calculates the total of all Movements of a given Contingent and writes it to the Contingent-Total field