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 so that a single alert number per submission survives the assembly.

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) and catch (the long table with blanked measurements).

Details

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