#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 )
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)
Change History (14)
comment:1 by , 2 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 2 years ago
comment:3 by , 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:6 by , 23 months ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
comment:8 by , 23 months ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
comment:9 by , 23 months ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
by , 23 months ago
| Attachment: | Trac_3037_Updated.sql added |
|---|
comment:10 by , 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 , 23 months ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
by , 23 months ago
| Attachment: | Trac_3037_3038_Modification.sql added |
|---|

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.