bikalims / bika.lims

Open Source Web-based Laboratory Information Management System
http://www.bikalims.org
Other
223 stars 168 forks source link

NG flush breaks id server #2323

Closed mikejmets closed 6 years ago

mikejmets commented 6 years ago

Description of the issue/feature this PR addresses

Items in the bika_setup_catalog do not continue in sequence after flushing the number generator

Linked issue: https://github.com/bikalims/bika.lims/issues/2322

Current behavior before PR

After a flush, BSC items get new IDs from 1 instead of the next in the sequence

Desired behavior after PR is merged

All items continue in the sequence after ng_flush

-- I confirm I have tested this PR thoroughly and coded it according to PEP8 standards.