Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicated as late when Turnaround Time is zero #2568

Open
DanE417 opened this issue Jun 2, 2024 · 0 comments
Open

Indicated as late when Turnaround Time is zero #2568

DanE417 opened this issue Jun 2, 2024 · 0 comments

Comments

@DanE417
Copy link

DanE417 commented Jun 2, 2024

Description

When Turnaround time has a value of zero (0 days, 0 hours, 0 minutes), the analysis is still marked as late. This is because in src/bika/lims/content/abstractroutineanalysis.py, line 209, "if not tat:” does not meet the condition to be accessed because variable "tat" is not None but of zero value. This will then not return the correct value. This is also true for src/bika/lims/content/abstractanalysis.py, line 688, "if not maxtime:".

Reproduction guide

Create an Analysis service and set the "Maximum turn-around time" to Days 0, Hours 0, Minutes 0.
Create a sample with the newly created analysis service.
Receive the sample.
It should now show as late.

Observed behaviour

When the Sample is received and it has a maximum turn-around time of zero (0) it shows as late.

Expected behaviour

When the Sample is received and it has a maximum turn-around time of zero (0) it shows as not late.

Versions

  • OS: Linux

  • senaite.core: master

  • senaite.impress: master

  • senaite.core.listing: master

  • senaite.core.supermodel: master

Traceback

<<BACKTRACE IF RELEVANT>>

Screenshot

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant