Skip to content

Commit

Permalink
fix: changing code (#1378)
Browse files Browse the repository at this point in the history
Co-authored-by: Ricardo Campos <[email protected]>
  • Loading branch information
mgaseta and Ricardo Campos authored Jul 10, 2024
1 parent fd7423d commit 03baa5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
UPDATE spar.seedlot
SET pollen_contamination_mthd_code = 'RPM'
WHERE pollen_contamination_mthd_code = 'REG';
4 changes: 2 additions & 2 deletions frontend/src/views/Seedlot/ContextContainerClassA/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -921,8 +921,8 @@ export const convertOrchard = (
pollenContaminationPct: +calcAverage(Object.values(parentTreeRows), 'nonOrchardPollenContam'),
contaminantPollenBv: +orchardData.breedingPercentage.value,
// This is a fixed field (for now at least) with the regional code,
// so the methodology code is always set to 'REG'
pollenContaminationMthdCode: 'REG'
// so the methodology code is always set to 'RPM'
pollenContaminationMthdCode: 'RPM'
});
};

Expand Down

0 comments on commit 03baa5c

Please sign in to comment.