Opened 3 years ago

Last modified 15 months ago

#2843 accepted defect

Ensure Ownership of System Inv Record matches Acession ownership

Reported by: Martin Reisinger Owned by: Benjamin Haag
Priority: medium Milestone:
Component: Database, Data Updates Version: N/A
Severity: Keywords:
Cc: Database Engine: N/A
Operating System: N/A

Description

When an accession ownership is transferred to a different owner, the system inventory ownership doesn't change but should.

Some mechanism/trigger should be written to enforce matching ownership - the accession and the system inventory records.

Attachments (1)

Trac_2843.sql​ (356 bytes ) - added by Benjamin Haag 3 years ago.

Download all attachments as: .zip

Change History (3)

by Benjamin Haag, 3 years ago

Attachment: Trac_2843.sql​ added

comment:1 by Benjamin Haag, 3 years ago

Status: new → accepted

Summarizing the business rule as I understand it; please correct if needed.

If accession record is assigned to a new owner, the following records must also be assigned to that same owner:
1) All accession_ child records
2) The related SYSTEM inventory record, only -- not necessarily other related inventory records.

comment:2 by Stacey, 15 months ago

Yes, harmonize record ownership of Accession and SYSTEM inventory records. Ignore related inventory records not assigned to "SYSTEM" Inventory Maintenace Policy

When the accession ownership is transferred, a trigger should duplicate ownership transfer for the SYSTEM inventory and child records.

  1. Accession + accession_ child,
  2. SYSTEM inventory + SYSTEM_ child
Note: See TracTickets for help on using tickets.