Opened 12 years ago

Closed 12 years ago

#1665 closed defect (fixed)

Sample batch importer ignore parent used quantity

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: BASE 3.0.4
Component: coreplugins Version:
Keywords: Cc:

Description

Use the "Sample batch importer" to import child samples to already existing samples in the database. The existing samples should have values for the "Original quantity".

The import configuration should specify a "Parent" item (sample) and a "Parent used quantity".

The child and parent items are linked correctly, but the remaining quantity of the parent is not affected.

The only workaround is to manually update the used quantity with the web interface.

Change History (2)

comment:1 by Nicklas Nordborg, 12 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:2 by Nicklas Nordborg, 12 years ago

Resolution: fixed
Status: assignedclosed

(In [5988]) Fixes #1665: Sample batch importer ignore parent used quantity

There was also a problem with "updating" to the same parent item. Eg. calling BioMaterialEvent.setParent() with an item that was already a parent. This caused a duplicate key violation in the database since the code created a new link, before removing the old one. The updated code re-uses the existing link to avoid the problem.

Note: See TracTickets for help on using tickets.