You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement validation checks for the Crop Areas and Residue Management table in the Feed Production tab to ensure data consistency and logical correctness. The goal is to catch illogical or invalid fraction values and guide users with clear, actionable warning messages.
Validation must operate per row for individual fractions and overall (sum) where relevant.
Actionable Items / Acceptance Criteria
Intercropping Fraction Validation (per row): Targeting "IF intercropping, fraction of field occupied by this crop" column
Currently, If Intercropping (yes / no) column is unchecked → column gets 0 (already implemented).
If Intercropping (yes / no) column is checked → value must be > 0 and < 1.
Assign a default value of 0.01 when the Intercropping (yes / no) column gets checked.
Warning message should be on top of the table: "IF intercropping, fraction of field occupied by this crop" column values should be > 0 and < 1.
Residue Fractions Validation (per row)
Target columns:
Cut-and-carry (fraction)
Main Product removal (fraction)
Crop residue removal from field (fraction)
Crop residue burnt (fraction)
Each value must be ≥ 0 and ≤ 1 so add warning if value < 0 or > 1.
Warning message should be on top of the table, mention the offending column.
Timeline
Estimated Completion Date: 08/10/2025
Description
Implement validation checks for the Crop Areas and Residue Management table in the Feed Production tab to ensure data consistency and logical correctness. The goal is to catch illogical or invalid fraction values and guide users with clear, actionable warning messages.
Validation must operate per row for individual fractions and overall (sum) where relevant.
Actionable Items / Acceptance Criteria
Intercropping Fraction Validation (per row): Targeting "IF intercropping, fraction of field occupied by this crop" column
Currently, If
Intercropping (yes / no)column is unchecked → column gets 0 (already implemented).If
Intercropping (yes / no)column is checked → value must be > 0 and < 1.Assign a default value of 0.01 when the
Intercropping (yes / no)column gets checked.Warning message should be on top of the table: "IF intercropping, fraction of field occupied by this crop" column values should be > 0 and < 1.
Residue Fractions Validation (per row)
Target columns:
Cut-and-carry (fraction)
Main Product removal (fraction)
Crop residue removal from field (fraction)
Crop residue burnt (fraction)
Each value must be ≥ 0 and ≤ 1 so add warning if value < 0 or > 1.
Warning message should be on top of the table, mention the offending column.