#3066 closed enhancement (fixed)

Change order_packing2 to get SMTA information

Reported by: Kay Kittell Owned by: Kurt Endress
Priority: medium Milestone: Server 2.3.12
Component: Dataviews (CT) Version: N/A
Severity: 1 -- Low Effort Keywords:
Cc: Database Engine: N/A
Operating System: N/A

Description

Change order_packing2 to look at is_smta_restricted = 'y' in the portion that looks for ipr information to get the SMTA status from only that and not the ipr record. This will make it work correctly for the Crystal Reports for packing lists.

Change History (4)

comment:1 by Kurt Endress, 21 months ago

Modified order_packing2_20250220 on npgsDev for testing.

comment:2 by Kurt Endress, 21 months ago

Modified how the ipr_restriction field is calculated in order_packing2 dataview on npgsDev

comment:3 by Stacey, 21 months ago

Works as expected on DEV.

Part of Kurt's modification to the ipr_restriction field:

(SELECT STRING_AGG(type_code, ', ') FROM

(SELECT type_code FROM accession_ipr WHERE accession_id = i.accession_id AND expired_date IS NULL AND type_code != 'MTA-SMTA'

UNION SELECT 'MTA-SMTA' AS type_code WHERE xori.is_smta_restricted = 'Y') xipr7

) AS ipr_restriction,

comment:4 by Benjamin Haag, 15 months ago

Resolution: → fixed
Severity: → 1 -- Low Effort
Status: assigned → closed

Deployed to prod on 7/28/2025.

Note: See TracTickets for help on using tickets.