Replace Planning Schedules

For each incoming EDI customer order that was created from an 830 (Planning Schedule) or 862 (Shipping Schedule) transaction and that is associated with this trading partner: