Skip to content

Commit 7084895

Browse files
authored
feat(ssd2): ajoute des références manquantes (#332)
1 parent 143e822 commit 7084895

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

server/services/imapService/analysis-handler.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ export const analysisHandler = async (
128128
residues.forEach((r) => {
129129
if (
130130
r.result_kind !== 'ND' &&
131+
!!r.ssd2Id &&
131132
!LmrIsValid({
132133
stage: sampleStage,
133134
specificData: sampleSpecificData,
@@ -136,7 +137,10 @@ export const analysisHandler = async (
136137
lmr: r.result_kind === 'Q' ? r.lmr : null
137138
})
138139
) {
139-
throw new ExtractError(`Le résidu ${r.ssd2Id} n'a pas de LMR`);
140+
throw new ExtractError(
141+
//@ts-expect-error TS7053
142+
`Le résidu ${SSD2Referential[r.ssd2Id].name} ${r.ssd2Id} n'a pas de LMR`
143+
);
140144
}
141145
});
142146

server/services/imapService/cereco/cerecoReferential.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const cerecoReferential: Record<string, SSD2Id> = {
5757
Acetochlor: 'RF-0015-001-PPP',
5858
'Acibenzolar s methyl': 'RF-0016-002-PPP',
5959
'acide gibbérellique': 'RF-0230-001-PPP',
60-
'Acide phosphonique (somme)': 'RF-00004675-PAR',
60+
'Acide phosphonique (somme)': 'RF-0225-001-PPP',
6161
Aclonifen: 'RF-0017-001-PPP',
6262
Acrinathrin: 'RF-0018-001-PPP',
6363
Alachlor: 'RF-0019-001-PPP',
@@ -115,6 +115,7 @@ export const cerecoReferential: Record<string, SSD2Id> = {
115115
'Bitertanol I et II': 'RF-0048-001-PPP',
116116
Bixafen: 'RF-1056-001-PPP',
117117
'Boscalid (nicobifen)': 'RF-0049-001-PPP',
118+
Boscalid: 'RF-0049-001-PPP',
118119
Bromacil: 'RF-0511-001-PPP',
119120
Bromadialone: 'RF-00002596-PAR',
120121
Bromophos: 'RF-0517-001-PPP',

server/services/imapService/girpa.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,8 @@ const girpaReferences: Record<string, SSD2Id> = {
704704
valifenalate: 'RF-1057-001-PPP',
705705
vamidothion: 'RF-0969-001-PPP',
706706
vinclozolin: 'RF-0450-003-PPP',
707-
zoxamide: 'RF-0452-001-PPP'
707+
zoxamide: 'RF-0452-001-PPP',
708+
'zoxamide according reg.': 'RF-0452-001-PPP'
708709
};
709710

710711
const codeMethods = ['M1', 'M26', 'M3', 'M18', 'M21', 'M23', 'M27'] as const;

0 commit comments

Comments
 (0)