From 43cede24302003552832f8ebd5364483837a1ddd Mon Sep 17 00:00:00 2001 From: Adri?n Bernardi Date: Thu, 31 Jan 2019 17:15:29 -0300 Subject: [PATCH] lims_instrument: "Load Results from File" wizard: check dates: injection vs end --- lims_instrument/resultsimport.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lims_instrument/resultsimport.py b/lims_instrument/resultsimport.py index 97190925..438750f1 100644 --- a/lims_instrument/resultsimport.py +++ b/lims_instrument/resultsimport.py @@ -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'