Opened 2 years ago

Closed 23 months ago

Last modified 23 months ago

#3038 closed gap (fixed)

Retroactive is_SMTA_restricted = "Y" of IPR MTA-SMTA

Reported by: Stacey Owned by: Benjamin Haag
Priority: medium Milestone:
Component: Database, Data Updates Version: N/A
Severity: Keywords: order wizard SMTA restricted MTA-SMTA
Cc: karen.kittell@… Database Engine: N/A
Operating System: N/A

Description

Retroactively fill in the Y/N flag for order items and web order items distributed under SMTA because of an Accession IPR: MTA-SMTA. Setting the Is_SMTA_restricted column to "Y" harmonizes the information already presented in the OW IPR restriction and OW SMTA Warning columns of the OW order item table. 

Update these dataviews:

  • order_wizard_get_order_item
  • order_wizard_get_web_order_request_item

I assume that order_wizard_get_packet_label and the order packing/picking2 report have a greyed out is_SMTA_restricted column that is populated from order_wizard_get_order_item.

Run a script to fill in the new is_SMTA_restricted column(s) in the order_items and web_order_items tables as described.

  • is_smta_restricted column set to "Y" if the distributed item has an MTA-SMTA record in the Accession IPR table AND the item was distributed under the SMTA conditions (order_request_action.action_name_code = SMTAACCEPT).

There is a companion trac #3037 to flag items distributed internationally in 2024 under the blanket SMTA changes.

Attachments (2)

Trac_3038_Updated.sql​ (2.6 KB ) - added by Benjamin Haag 23 months ago.
Trac_3037_3038_Modification.sql​ (659 bytes ) - added by Benjamin Haag 23 months ago.

Download all attachments as: .zip

Change History (12)

comment:1 by Kay Kittell, 2 years ago

I'm assuming you mean order_wizard_get_order_request_item for this as there isn't one with this name: order_wizard_get_order_item

Both these dataviews have been changed and are currently on npgsDev.

comment:2 by Benjamin Haag, 23 months ago

Resolution: → fixed
Status: new → closed

comment:3 by Benjamin Haag, 23 months ago

Correction; wrong SQL had been attached.

comment:4 by Kay Kittell, 23 months ago

Resolution: fixed
Status: closed → reopened

comment:5 by Benjamin Haag, 23 months ago

Ran attached SQL on:
1) DEV
2) TRAINING
3) PROD

comment:6 by Benjamin Haag, 23 months ago

Resolution: → fixed
Status: reopened → closed

comment:7 by Benjamin Haag, 23 months ago

Resolution: fixed
Status: closed → reopened

by Benjamin Haag, 23 months ago

Attachment: Trac_3038_Updated.sql​ added

comment:8 by Benjamin Haag, 23 months ago

1) Modified SQL (attached); updated records regardless of status, per meeting on 1/7/25.
2) Re-ran in all environments listed previously.

comment:9 by Benjamin Haag, 23 months ago

Resolution: → fixed
Status: reopened → closed

comment:10 by Benjamin Haag, 23 months ago

See new attachment Trac_3037_3038_Modification.sql.

by Benjamin Haag, 23 months ago

Note: See TracTickets for help on using tickets.