Skip to contents

Flags submissions whose revenue per kilo of estimated catch falls outside the configured band, and propagates the regularity, revenue and individuals-count alerts onto both the price and the catch frames. Price per kilo (17), regularity (22) and revenue (6) share one alert number per submission; the individuals count (11) is reported on its own, so 6 or 17 no longer hide it.

Usage

validate_price_weight(
  catch_params = NULL,
  price_alerts = NULL,
  non_regular_ids = NULL,
  cook_dist = NULL,
  price_weight_min = NULL,
  price_weight_max = NULL
)

Arguments

catch_params

Output of validate_catch_params(): alerts (one row per submission) and catch (the long table).

price_alerts

The data frame of price alerts.

non_regular_ids

The data frame of landings regularity alerts.

cook_dist

Unused. See above.

price_weight_min

Min price per weight value threshold.

price_weight_max

Max price per weight value threshold.

Value

A list with alerts (one row per submission, carrying the validated catch_price), individuals (the submissions with alert 11) and catch (the long table with blanked measurements).

Details

The cook_dist parameter is unused and retained only because config.yml still supplies it.