Fix the following situation:
GIVEN that a customer orders a case with a sample
GIVEN that a customer orders a new case with the same sample (without the first case having been delivered)
GIVEN that the second order finishes first
WHEN delivering the second order
THEN the order will never be closed in StatusDB and the ticket will never be closed in Freshdesk (automatically)
Fix the following situation:
GIVEN that a customer orders a case with a sample
GIVEN that a customer orders a new case with the same sample (without the first case having been delivered)
GIVEN that the second order finishes first
WHEN delivering the second order
THEN the order will never be closed in StatusDB and the ticket will never be closed in Freshdesk (automatically)