lims_instrument: "Load Results from File" wizard: check dates: injection vs end

This commit is contained in:
Adri?n Bernardi 2019-01-31 17:15:29 -03:00
parent 430a72d8b0
commit 43cede2430
1 changed files with 5 additions and 0 deletions

View File

@ -488,6 +488,11 @@ class NotebookLoadResultsFile(Wizard):
prevent_line = True
outcome = ('Injection date cannot be lower than '
'Start date')
if line.imported_inj_date > line.imported_end_date:
prevent_line = True
outcome = ('Injection date cannot be upper than '
'End date')
else:
line.result = None
line.result_modifier = 'na'