Change from quality inspection to ordinary PP_Order:
select "de.metas.materialtracking".pp_order_correct_type_to_nonqi('DocumentNo');
Change from ordinary PP_Order to quality inspection to
select "de.metas.materialtracking".pp_order_correct_type_to_qi('DocumentNo');
Don’t forget to
select "de.metas.materialtracking".c_invoice_candidate_delete_for_m_material_tracking_lot('<PP_Orders-Material_Trackings-Lot-No');
to delete the now-stale ICs.PP_Order_MaterialTracking_Handler
) from its window to recreate the ICs.