Opened 10 years ago

#1364 new enhancement

crop_trait_observation possible trigger addition

Reported by: dbmuqs Owned by: dbmuqs
Priority: minor Milestone: 1.10.2
Component: Database, Custom Reports Version: N/A
Severity: Keywords: trigger
Cc: Database Engine: N/A
Operating System: N/A

Description

The cto trigger checks that the proper column has data as per the information in the crop_trait row. If is_coded = 'Y' then data must be in the coded column, if not coded then the data_type_code is checked, NUMERIC - numeric column filled in, CHAR then string column.

What it doesn't do is prevent 2 or all three to have data. Just that the correct column has data. Having the extra columns shouldn't be a huge problem other than extra work for the person entering the data. But it seems the PW does not check the crop_trait table to see what column to display, instead it seems to have a fixed method of going through the 3 columns and showing not necessarily the correct column.

Change History (0)

Note: See TracTickets for help on using tickets.