Retroactive is_SMTA_restricted = "Y" of IPR MTA-SMTA
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.
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.