Description: Sums eventProduction values for a selected dryer, product, calendar week and calendar year.
Calling convention: WES_SI_getAmountOfProduct(TrocknerSelectListEntryID: Integer, CalendarWeek: Double, CalendarYear: Double, ProductID: Integer): Float
Parameters:
TrocknerSelectListEntryID: SelectListEntries ID used to resolve the dryer number.
CalendarWeek: requested week.
CalendarYear: requested calendar year.
ProductID: requested product.
Returns: Summed production, 0 when no rows match, or NULL when an argument is NULL.
Availability: Default; Wesseling Silica-specific and dependent on Trockner_N.
Example:
Amount := WES_SI_getAmountOfProduct(DryerChoice, Week, Year, ProductID);