2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | void cancelPickingRoute() { WMSPickingRoute WMSPickingRoute = WMSPickingRoute::findBySalesId("SO024406"); WMSPickingLineCancel WMSPickingLineCancel; WMSOrderTrans WMSOrderTrans; WMSOrderTransUnPick WMSOrderTransUnPick; ; switch (WMSPickingRoute.expeditionStatus) { case WMSExpeditionStatus::Complete : while select forupdate WMSOrderTrans index hint OrderIdx where WMSOrderTrans.fullPallet == 0 && WMSOrderTrans.routeId == WMSPickingRoute.pickingRouteID { ttsbegin; WMSOrderTransUnPick::newWMSOrderTrans(WMSOrderTrans).unPick(WMSOrderTrans.qty); ttscommit; } while select WMSOrderTrans index hint OrderIdx where WMSOrderTrans.fullPallet == 0 && WMSOrderTrans.routeId == WMSPickingRoute.pickingRouteID { |
This is my blog for storing and sharing my programming knowledge with all other programmers
Monday, 6 January 2020
AX X++ cancel and UnPick PickList
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment