Click or drag to resize
Infosoft Logo

IDailyNewspaperNumberServiceGetActiveDailyNewspaperNumberSumInPeriod Method

Gets the sum for all given editions of the currently active daily newspaper numbers of a retailer, for some given title/period.

Namespace: Infosoft.Common.Contracts.ServiceContracts.Retail
Assembly: Infosoft.Common.Contracts (in Infosoft.Common.Contracts.dll) Version: 4.00.0.0
Syntax

Parameters

request  GetActiveDailyNewspaperNumberSumInPeriodRequest
A request object, containing a retailer number, a title code, a list of edition codes, and a date.

Return Value

GetActiveDailyNewspaperNumberSumInPeriodResponse
A response object, containing a list of numbers for each day of the week.
Remarks

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.

See Also