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)
Change History (3)
by , 3 years ago
| Attachment: | Trac_2843.sql added |
|---|
comment:1 by , 3 years ago
| Status: | new → accepted |
|---|
comment:2 by , 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.
- Accession + accession_ child,
- SYSTEM inventory + SYSTEM_ child
Note:
See TracTickets
for help on using tickets.

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.