Opened 2 years ago

Closed 23 months ago

Last modified 23 months ago

#3037 closed gap (fixed)

Retroactive is_SMTA_restricted = "Y" of 2024 international web items

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

Description (last modified by Stacey)

Retroactively fill in the Y/N flag for order items and web order items distributed under SMTA in 2024.

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. Kay has a SQL to identify web items where the SMTA was accepted on the PW.

  • web request submitted Jan 1, 2024 to Dec 31, 2024 that were distributed internationally with the SMTA.

There is a companion trac #3038 to flag items distributed under the accession IPR: MTA-SMTA

Attachments (2)

Trac_3037_Updated.sql​ (1.9 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 (14)

comment:1 by Stacey, 2 years ago

Description: modified (diff)

comment:2 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.

Kay has a SQL to identify web items where the SMTA was accepted on the PW. - I do not have SQL for this. Items are identified as SMTA using the c# code.

comment:3 by Benjamin Haag, 23 months ago

I do not have SQL for this. Items are identified as SMTA using the c# code.

What is the exact logic that determines whether a past order was distributed under the SMTA? Is it *all* international orders, or is there an additional factor (an action of SMTAACCEPT)?

comment:4 by Benjamin Haag, 23 months ago

Resolution: → fixed
Status: new → closed

Ran attached SQL on prod.

comment:5 by Benjamin Haag, 23 months ago

Correction; wrong SQL had been attached.

comment:6 by Kay Kittell, 23 months ago

Resolution: fixed
Status: closed → reopened

comment:7 by Benjamin Haag, 23 months ago

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

comment:8 by Benjamin Haag, 23 months ago

Resolution: → fixed
Status: reopened → closed

comment:9 by Benjamin Haag, 23 months ago

Resolution: fixed
Status: closed → reopened

by Benjamin Haag, 23 months ago

Attachment: Trac_3037_Updated.sql​ added

comment:10 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:11 by Benjamin Haag, 23 months ago

Resolution: → fixed
Status: reopened → closed

comment:12 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.