LADMR
Mandatory returns
The ERS reporting regime introduced the recording of sub-MLS disposals as destination code Y and required (not sub-MLS) returns of CRA under code K. Likewise code G was introduced for returns above a maximum legal size.
The fish that are returned against these codes should not be included in catch estimates which are defined as applying only to fish that can be legally retained
-- © Copyright 2026 The Kahawai Collective
-- SPDX-License-Identifier: MIT
INSERT INTO grooming_rules
VALUES ('LADMR', 'edw', 'landings', 'Drop', 'Mandatory returns (e.g. sub-MLS)');
CREATE OR REPLACE FUNCTION LADMR() RETURNS VOID AS $$
INSERT INTO groomed.checks(code, "table", "column", id)
SELECT 'LADMR', 'landings', 'destination_type', id
FROM groomed.landings
WHERE (source_identifier_key = 2 AND destination_type IN ('Y','K','G'));
UPDATE groomed.landings
SET checks=array_append(checks, 'LADMR'), dropped=TRUE
WHERE id IN (SELECT id FROM groomed.checks WHERE code = 'LADMR');
$$ LANGUAGE SQL;
SELECT LADMR();Effects of grooming