IDaily |
GetActiveDailyNewspaperNumberSumInPeriodResponse GetActiveDailyNewspaperNumberSumInPeriod( GetActiveDailyNewspaperNumberSumInPeriodRequest request )
The active daily newspaper number is the number with the latest start date, provided that its start date is on or before the given start date, and its end date is either null (i.e. the number is permanent) or after (not on) the given end date.
The difference between this operation and GetActiveDailyNewspaperNumberSum is that the latter will retrieve data only from a single DailyNewspaperNumber, while this one will look at multiple DailyNewspaperNumber objects and determine which one will be active for each day in the given period. For example, consider the following scenario (numbers in parentheses are amounts from Monday-Sunday): DailyNewspaperNumber 1: (1, 2, 3, 4, 5, 6, 0) (period = 01.01.2012 - 03.01.2012) DailyNewspaperNumber 2: (0, 1, 2, 3, 4, 0, 2) (period = 03.01.2012-) Now if a query is given for the period 01.01.2012 - 04.01.2012, the resulting list will look as follows: (1, 2, 2, 3). The amounts for the two first days are taken from DailyNewspaperNumber 1, while the two last days are from DailyNewspaperNumber 2.
In addition to the above, amounts will be summed together for daily newspaper numbers for all the given editions for each date. See the description for the GetActiveDailyNewspaperNumberSum operation for details on how this works.